:root {
    /* Color Palette based on Alizetics logo and modern aesthetics */
    --primary-blue: hsl(207, 72%, 40%);
    --secondary-blue: hsl(207, 72%, 95%);
    --accent-magenta: hsl(330, 80%, 55%);
    --accent-cyan: hsl(190, 80%, 45%);
    
    --text-main: hsl(220, 20%, 20%);
    --text-light: hsl(220, 10%, 40%);
    
    --bg-gradient: linear-gradient(135deg, hsl(210, 80%, 98%), hsl(200, 60%, 92%));
    
    --border-color: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0,0,0,0.03);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('gym_background.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: -2;
    pointer-events: none;
}

/* body::after removed to keep background image sharp */

.timetable-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 1300px;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.logo-container {
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
}

.logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 90px;
}

.header-titles {
    text-align: center;
    flex: 1;
    padding: 0 2rem;
}

.header-titles h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-titles h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

/* Timetable Styles */
.table-wrapper {
    overflow-x: hidden;
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--border-color);
    margin-bottom: 2.5rem;
}

.timetable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.timetable th, .timetable td {
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 1rem 0.5rem;
    text-align: center;
    vertical-align: middle;
}

.timetable th:last-child, .timetable td:last-child {
    border-right: none;
}

.timetable tr:last-child td {
    border-bottom: none;
}

.timetable thead th {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.timetable thead th:first-child {
    border-top-left-radius: 12px;
}

.timetable thead th:last-child {
    border-top-right-radius: 12px;
}

.time-col {
    font-weight: 700;
    color: var(--primary-blue);
    background-color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    width: 100px;
    font-size: 1.1rem;
}

/* Session Cell Styles */
.timetable td {
    height: 80px;
    transition: all 0.2s ease;
}

.timetable td:hover:not(.time-col):not(:empty) {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 2;
    position: relative;
    border-radius: 6px;
}

.session {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.session span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Removed custom color for private sessions */

.session.special {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.session.special span {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 1rem;
}

.weekend-session {
    background: linear-gradient(180deg, rgba(0, 188, 212, 0.05) 0%, rgba(0, 188, 212, 0.02) 100%);
}

/* Footer Styles */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.divider {
    color: var(--border-color);
    font-weight: 300;
}

.website a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.website a:hover {
    color: var(--primary-blue);
}

.footer-right {
    display: flex;
    gap: 2rem;
    text-align: right;
    flex-wrap: wrap;
}

.contact-block {
    display: flex;
    flex-direction: column;
}

.contact-block strong {
    color: var(--text-main);
    font-size: 1.1rem;
}

.contact-block .role {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .table-wrapper {
        overflow-x: auto;
    }
    .header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .header-titles {
        order: -1;
    }
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-right {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .timetable-container {
        padding: 1.5rem;
    }
    .header-titles h1 {
        font-size: 1.5rem;
    }
    .timetable th, .timetable td {
        padding: 0.75rem 0.25rem;
    }
    .time-col {
        font-size: 0.9rem;
        width: 70px;
    }
    .session {
        font-size: 0.85rem;
    }
    .session span {
        font-size: 0.75rem;
    }
}
