/**
 * Display Screen (TV Mode) Styles
 * Full-screen, high contrast, TV-friendly design
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

body {
    background: #000;
    position: relative;
}

/* Video Container - Optimized for 16:9 videos */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ad-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Maintains 16:9 aspect ratio without cropping */
    background: #000;
}

/* Order Overlay - Modern Full Screen Design */
.order-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), gradientShift 8s ease infinite;
}

.order-overlay.hidden {
    display: none;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Modern Order Card */
.order-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px 80px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    text-align: center;
    max-width: 800px;
    width: 90%;
    animation: cardFloat 3s ease-in-out infinite;
    overflow: hidden;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Order Icon */
.order-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: iconPulse 2s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.order-icon svg {
    width: 60px;
    height: 60px;
    animation: iconRotate 1.5s ease-in-out;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    }
}

@keyframes iconRotate {
    0% {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Order Content */
.order-content {
    position: relative;
    z-index: 2;
}

.order-label {
    font-size: 1.8em;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    animation: slideDown 0.6s ease-out 0.2s both;
}

.order-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    animation: slideUp 0.6s ease-out 0.4s both;
}

.order-hash {
    font-size: 5em;
    font-weight: 700;
    color: #764ba2;
    opacity: 0.3;
}

.order-number {
    font-size: 6.5em;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 5px;
    animation: numberGlow 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

@keyframes numberGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.order-message-text {
    font-size: 1.8em;
    color: #333;
    font-weight: 500;
    margin-top: 20px;
    animation: slideUp 0.6s ease-out 0.6s both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative Circles */
.order-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: -50px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.4;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .order-card {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .order-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .order-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .order-label {
        font-size: 1.2em;
        letter-spacing: 2px;
    }
    
    .order-hash {
        font-size: 3em;
    }
    
    .order-number {
        font-size: 4em;
        letter-spacing: 3px;
    }
    
    .order-message-text {
        font-size: 1.3em;
    }
}

/* Ensure video is paused when overlay is shown */
.order-overlay:not(.hidden) ~ .video-container #ad-video {
    display: none;
}

