/* TV Display Styles - Optimized for 16:9 Aspect Ratio */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Top App Bar */
.app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-image-container {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 55px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Main Display Container */
.display-container {
    margin-top: 60px;
    height: calc(100vh - 60px);
    width: 100vw;
    position: relative;
}

/* Three Event Cards Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
    height: 100%;
    width: 100%;
}

.event-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
}

.event-card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.event-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 30px;
    z-index: 2;
}

.event-card-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.event-card-date {
    font-size: 20px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
}

.event-card-qr {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.event-card-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Fullscreen Event View */
.fullscreen-event {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.fullscreen-event.active {
    opacity: 1;
}

.fullscreen-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.6);
}

.fullscreen-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    text-align: center;
}

.fullscreen-qr-container {
    position: absolute;
    bottom: 40px;
    right: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.fullscreen-qr {
    width: 250px;
    height: 250px;
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.fullscreen-info {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.fullscreen-title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
    max-width: 90%;
}

.fullscreen-date {
    font-size: 36px;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    font-weight: 500;
}

/* Loading Message */
.loading-message {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #666;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #666;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1920px) {
    .fullscreen-title {
        font-size: 64px;
    }
    
    .fullscreen-date {
        font-size: 32px;
    }
    
    .fullscreen-qr {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 1366px) {
    .event-card-title {
        font-size: 28px;
    }
    
    .event-card-date {
        font-size: 18px;
    }
    
    .fullscreen-title {
        font-size: 56px;
    }
    
    .fullscreen-date {
        font-size: 28px;
    }
    
    .fullscreen-qr {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .event-card-title {
        font-size: 24px;
    }
    
    .event-card-date {
        font-size: 16px;
    }
    
    .fullscreen-title {
        font-size: 48px;
    }
    
    .fullscreen-date {
        font-size: 24px;
    }
    
    .fullscreen-qr {
        width: 180px;
        height: 180px;
    }
}

/* High Contrast Mode for Better TV Visibility */
.event-card-title,
.fullscreen-title {
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
}

.event-card-date,
.fullscreen-date {
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
}

