/* Main Styles for Digital Signage */
:root {
    --primary-color: #000000;
    --secondary-color: #ae9142;
    --gold: #ae9142;
    --black: #000000;
    --text-light: #ffffff;
    --text-dark: #2c3e50;
    --background-gradient-1: linear-gradient(135deg, #000000 0%, #ae9142 100%);
    --background-gradient-2: linear-gradient(135deg, #ae9142 0%, #d4af37 100%);
    --background-gradient-3: linear-gradient(135deg, #1a1a1a 0%, #ae9142 100%);
    --background-gradient-4: linear-gradient(135deg, #ae9142 0%, #000000 100%);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: #000;
    color: var(--text-light);
    height: 100vh;
    width: 100vw;
}

#signage-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slide Styles */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

/* Override for standalone debug pages (no wrapper) */
body > .slide,
body > section.slide {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide[data-slide="welcome"] {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #ae9142 100%);
    position: relative;
    overflow: hidden;
}

/* Logo background */
.slide[data-slide="welcome"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url('../assets/images/logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

/* Ken Burns effect background */
.slide[data-slide="welcome"]::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background:
        radial-gradient(circle at 20% 80%, rgba(174, 145, 66, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(174, 145, 66, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(212, 175, 55, 0.3) 0%, transparent 50%);
    animation: kenBurns 20s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(-20px, -20px);
    }
}

.slide[data-slide="weather"] {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    transition: background 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Weather condition backgrounds for weather slide */
.slide[data-slide="weather"].bg-sunny {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.slide[data-slide="weather"].bg-rainy {
    background: linear-gradient(135deg, #283048 0%, #859398 100%);
}

.slide[data-slide="weather"].bg-cloudy {
    background: linear-gradient(135deg, #4b6cb7 0%, #7f8c8d 50%, #95a5a6 100%);
}

.slide[data-slide="weather"].bg-stormy {
    background: linear-gradient(135deg, #141E30 0%, #243B55 100%);
}

.slide[data-slide="weather"].bg-snowy {
    background: linear-gradient(135deg, #E0EAFC 0%, #CFDEF3 100%);
}

.slide[data-slide="weather"].bg-mist {
    background: linear-gradient(135deg, #4b6cb7 0%, #7f8c8d 50%, #95a5a6 100%);
}

.slide[data-slide="weather"].bg-windy {
    background: linear-gradient(135deg, #2c3e50 0%, #4b6cb7 100%);
}

.slide[data-slide="announcements"] {
    background: linear-gradient(135deg, #ae9142 0%, #000000 100%);
}

.slide[data-slide="events"] {
    background: linear-gradient(135deg, #000000 0%, #2a2a2a 50%, #ae9142 100%);
}

.slide-content {
    width: 100%;
    max-width: 1800px;
    text-align: center;
}

/* Typography */
.title-animation {
    font-size: 8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

.subtitle-animation {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 60px;
    opacity: 0.95;
}

.section-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Date & Time Display */
.date-time {
    font-size: 2.5rem;
    margin-top: 80px;
    font-weight: 300;
}

#current-date {
    margin-bottom: 15px;
    font-size: 2rem;
}

#current-time {
    font-size: 4rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

/* Announcements */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.announcement-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px 50px;
    border-radius: 20px;
    text-align: left;
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.announcement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.announcement-item:hover::before {
    left: 100%;
}

.announcement-item:hover {
    transform: translateX(10px);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.announcement-item h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.announcement-item p {
    font-size: 1.8rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Weekly Activities - Optimized for 42" TVs Near Ceiling */
.activities-page {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.activities-page.active {
    display: block;
}

.activities-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
}

.activities-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
}

.activities-dates {
    font-size: 3rem;
    color: #d4af37;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow:
        0 0 40px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
}

.activities-days {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 50px;
}

.activity-day {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 20px 30px;
    border: 2px solid rgba(174, 145, 66, 0.3);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.activity-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.6);
}

.activity-day-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 3px solid rgba(174, 145, 66, 0.4);
    text-shadow:
        0 0 30px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.activity-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.activity-item-sub {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    padding-left: 20px;
}

.activities-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 50px;
    text-align: center;
}

.placeholder-icon {
    font-size: 8rem;
    margin-bottom: 30px;
    animation: bounce 2s ease-in-out infinite;
}

.activities-placeholder h3 {
    font-size: 3rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 20px;
}

.activities-placeholder p {
    font-size: 2rem;
    opacity: 0.8;
    max-width: 800px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Events Calendar - 2 Days Per Page, Stacked Vertically */
.calendar-page {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.calendar-page.active {
    display: block;
}

.days-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.day-card-vertical {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 30px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.day-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.day-card-vertical.today {
    border: 3px solid #ae9142;
    box-shadow: 0 0 40px rgba(174, 145, 66, 0.5), 0 15px 40px rgba(0, 0, 0, 0.3);
}

.day-header-vertical {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid rgba(174, 145, 66, 0.4);
}

.day-name-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.today-badge-large {
    background: linear-gradient(135deg, #ae9142, #d4af37);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(174, 145, 66, 0.4);
}

.day-events-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.event-item-vertical {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #ae9142;
    transition: all 0.3s ease;
}

.event-item-vertical:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(174, 145, 66, 0.4);
    border-left-color: #d4af37;
}

.event-time-vertical {
    font-size: 1.4rem;
    color: #d4af37;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-title-vertical {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #fff;
}

.event-location-vertical {
    font-size: 1.2rem;
    opacity: 0.85;
    font-style: italic;
    color: #d4af37;
}

.no-events-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    opacity: 0.8;
    text-align: center;
}

.star-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: twinkle 2s ease-in-out infinite;
}

.no-events-message p {
    font-size: 2rem;
    font-weight: 400;
    margin: 0;
    color: #d4af37;
}

/* Old 2-day layout - kept for backward compatibility */
.day-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.day-header {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ae9142;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(174, 145, 66, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Individual Event Cards within a Day */
.day-event-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 25px;
    border-left: 4px solid #ae9142;
    transition: all 0.3s ease;
}

.day-event-card:last-child {
    margin-bottom: 0;
}

.day-event-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.event-time-badge {
    min-width: 120px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #d4af37;
    text-align: center;
    padding: 10px;
    background: rgba(174, 145, 66, 0.2);
    border-radius: 8px;
}

.event-info {
    flex: 1;
    min-width: 0;
}

.event-category-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-location {
    font-size: 1.3rem;
    opacity: 0.7;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* No events card styling */
.no-events-card {
    background: rgba(174, 145, 66, 0.15);
    border-left: 4px solid #d4af37;
    justify-content: center;
    padding: 30px;
}

.no-events-message {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.star-icon {
    font-size: 3rem;
    animation: twinkle 2s ease-in-out infinite;
}

.no-events-message h4 {
    font-size: 2rem;
    font-weight: 600;
    color: #d4af37;
    margin: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Old event card styles - kept for backward compatibility */
.event-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    display: flex;
    gap: 30px;
    align-items: center;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ae9142, #d4af37, #f4d03f, #ae9142);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.event-card:hover::after {
    transform: scaleX(1);
}

.event-card:hover {
    transform: translateY(-10px) rotateX(2deg) scale(1.02);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        0 0 40px rgba(174, 145, 66, 0.5);
}

.event-date {
    min-width: 200px;
    text-align: center;
}

.event-day {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ae9142;
    margin-bottom: 5px;
}

.event-time {
    font-size: 1.5rem;
    opacity: 0.8;
}

.event-details {
    flex: 1;
}

.event-category {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.event-location {
    font-size: 1.4rem;
    opacity: 0.7;
    margin-top: 10px;
}

.event-description {
    font-size: 1.5rem;
    opacity: 0.85;
    line-height: 1.5;
}

.no-events {
    text-align: center;
    padding: 100px 20px;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 100;
}

.progress-fill {
    height: 100%;
    background: var(--text-light);
    width: 0%;
    transition: width 0.1s linear;
}

/* Slide Indicators */
.slide-indicators {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--text-light);
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 1400px) {
    .title-animation {
        font-size: 6rem;
    }

    .subtitle-animation {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 900px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .title-animation {
        font-size: 4rem;
    }
}
