/* Import Montserrat Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&display=swap');

:root {
    /* Background Colors */
    --bg-beige: #C0BAB1;
    --bg-black: #000000;
    
    /* Main Accent Colors */
    --accent-yellow: #EDE115;
    --accent-gold: #ECBC2C;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif; /* Montserrat Black (weight 900) */
    --font-body: 'Montserrat', sans-serif;    /* Montserrat Bold (weight 700) */
}

/* Reset and Core Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-beige);
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--bg-black);
    line-height: 1.4;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 15px 10px;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header Styling */
.header {
    text-align: center;
    padding: 10px 0 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-wrapper {
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: center;
}

.main-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.15));
}

.main-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: -1px;
    color: var(--bg-black);
    text-transform: uppercase;
    text-shadow: 2px 2px 0px var(--accent-yellow);
    margin-top: -15px;
}

.current-time-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-black);
    color: var(--accent-yellow);
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.2);
    border: 2px solid var(--bg-black);
}

#current-date {
    color: var(--bg-beige);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#current-time {
    font-family: var(--font-heading);
    font-weight: 900;
}


/* Schedule List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Program Item Styling */
.program-item {
    background-color: var(--bg-black);
    color: var(--bg-beige);
    border: 3px solid var(--bg-black);
    border-radius: 12px 8px 14px 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    box-shadow: 4px 4px 0px var(--bg-black);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}


/* Time Indicator inside card */
.item-time {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--accent-yellow);
    min-width: 65px;
    display: flex;
    align-items: center;
}

.item-details {
    flex: 1;
}

.item-title {
    font-size: 1.15rem;
    font-weight: 700;
    word-break: break-word;
    letter-spacing: -0.3px;
    color: var(--bg-beige);
}

/* Status Badge on items */
.item-status-badge {
    display: none;
    background-color: var(--accent-yellow);
    color: var(--bg-black);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    border: 1.5px solid var(--bg-black);
    text-transform: uppercase;
}

/* Active Schedule Item State */
.program-item.active {
    border-color: var(--accent-yellow);
    box-shadow: 5px 5px 0px var(--accent-yellow);
}

.program-item.active .item-title {
    color: var(--accent-yellow);
}

.program-item.active .item-status-badge {
    display: inline-block;
}

/* Past Items State (faded) */
.program-item.past {
    opacity: 0.6;
    box-shadow: 2px 2px 0px var(--bg-black);
}

/* Future Items State */
.program-item.future {
    opacity: 0.95;
}

/* Footer & Debug Controls */
.footer {
    text-align: center;
    padding: 25px 0 40px;
    color: var(--bg-black);
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.btn-download {
    display: inline-block;
    background-color: var(--bg-black);
    color: var(--bg-beige);
    text-decoration: none;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    border: 3px solid var(--bg-black);
    border-radius: 12px 8px 14px 10px;
    box-shadow: 4px 4px 0px var(--bg-black);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    margin: 25px auto 15px; /* Centering and larger gap */
    width: 100%;
    max-width: 280px; /* Narrower width */
    text-align: center;
}

.btn-download:hover {
    color: var(--accent-yellow);
}

.btn-download:active {
    transform: translateY(2px) translateX(2px);
    box-shadow: 1px 1px 0px var(--bg-black);
}

/* Responsiveness adjustments */
@media (max-width: 360px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .item-time {
        font-size: 1.15rem;
        min-width: 55px;
    }
    
    .item-title {
        font-size: 1rem;
    }
}
