/* === VV Leusden Training Schedule — Frontend Styles === */

:root {
    --vvts-navy:        #192656;
    --vvts-blue:        #2848A0;
    --vvts-orange:      #F37634;
    --vvts-orange-hover: #D9632A;
    --vvts-mango:       #F6A321;
    --vvts-grey:        #C8C7C7;
    --vvts-body:        #333333;
    --vvts-base:        #fafaf7;
    --vvts-border:      #e5e5e0;

    --vvts-shadow-md:   0 2px 6px rgba(25, 38, 86, 0.08);
    --vvts-shadow-lg:   0 4px 12px rgba(25, 38, 86, 0.10);

    --vvts-radius-sm:   8px;
    --vvts-radius-md:   12px;
    --vvts-radius-lg:   16px;
    --vvts-radius-pill: 30px;
}

/* === Container === */
.vvts-schedule-container {
    max-width: 1200px; /* overridden inline by PHP */
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: var(--vvts-radius-lg);
    box-shadow: var(--vvts-shadow-lg);
    overflow: hidden;
}

.vvts-schedule-inner {
    background-color: #ffffff;
}

/* === Header === */
.vvts-schedule-header {
    color: #fff;
    padding: 28px 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Brand-pattern overlay — opacity wordt via PHP/inline-stijl ingesteld */
.vvts-header-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background-repeat: repeat;
    background-size: 120px auto;
    pointer-events: none;
}

.vvts-schedule-header h1 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    margin-bottom: 6px;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Subtitle as tagline-pill */
.vvts-schedule-header p {
    display: inline-block;
    font-size: 0.875rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid var(--vvts-orange);
    padding: 0.25rem 0.75rem;
    border-radius: 0 var(--vvts-radius-sm) var(--vvts-radius-sm) 0;
    position: relative;
    z-index: 1;
}

/* === Grid wrapper === */
.vvts-schedule-grid {
    padding: 20px;
}

/* === Desktop table === */
.vvts-desktop-view {
    display: block;
}

.vvts-mobile-view {
    display: none;
}

.vvts-schedule-container table {
    width: 100%;
    border-collapse: collapse;
}

.vvts-schedule-container th {
    text-align: center;
    padding: 18px 16px;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid var(--vvts-border);
}

.vvts-schedule-container th:first-child {
    width: 180px;
    background-color: transparent;
    color: var(--vvts-navy);
    text-align: left;
}

.vvts-schedule-container th:nth-child(2) {
    border-top-left-radius: var(--vvts-radius-sm);
}

.vvts-schedule-container th:last-child {
    border-top-right-radius: var(--vvts-radius-sm);
}

.vvts-schedule-container td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--vvts-border);
    text-align: center;
    position: relative;
}

.vvts-schedule-container td:first-child {
    text-align: left;
    background-color: var(--vvts-base);
    font-weight: 600;
    font-size: 1rem;
    color: var(--vvts-navy);
}

.vvts-schedule-container tr:hover td {
    background-color: var(--vvts-base);
}

.vvts-schedule-container tr:hover td:first-child {
    background-color: #f0efe9;
}

/* === Time slot pill — desktop === */
.vvts-time-slot {
    display: inline-block;
    padding: 5px 16px;
    border-radius: var(--vvts-radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    margin: 2px 0;
}

/* === Empty cell === */
.vvts-empty-cell {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--vvts-border);
    margin: 0 auto;
    border-radius: 2px;
}

/* === Mobile cards === */
.vvts-day-card {
    background-color: #fff;
    border: 1px solid var(--vvts-border);
    border-radius: var(--vvts-radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--vvts-shadow-md);
}

/* Card header: white with 4px left-border in category colour */
.vvts-day-card-header {
    background: #fff !important;
    border-left: 4px solid; /* colour set inline by PHP */
    padding: 12px 16px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--vvts-navy);
}

.vvts-day-card-content {
    padding: 12px 16px;
}

.vvts-training-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 10px 12px;
    background-color: var(--vvts-base);
    border-radius: var(--vvts-radius-sm);
    transition: background-color 0.2s ease;
}

.vvts-training-day:last-child {
    margin-bottom: 0;
}

.vvts-training-day:hover {
    background-color: #f0efe9;
}

.vvts-day-name {
    font-weight: 600;
    color: var(--vvts-navy);
}

/* Time badge in category colour */
.vvts-day-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--vvts-radius-pill);
    min-width: 90px;
    display: inline-block;
    text-align: center;
    /* background-color set inline by PHP */
}

/* === Responsive === */
@media screen and (min-width: 1200px) {
    .vvts-schedule-container th:first-child,
    .vvts-schedule-container td:first-child {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .vvts-desktop-view {
        display: none;
    }

    .vvts-mobile-view {
        display: block;
    }

    .vvts-schedule-header h1 {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .vvts-schedule-header {
        padding: 16px;
    }

    .vvts-schedule-header h1 {
        font-size: 1.15rem;
    }
}
