/* 
   PLANNING PAGE STYLES - Circuit 2000 
   Contains styles for the reservation planning and booking modal.
*/

.about-hero {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
}

.about-hero h1 {
    font-family: var(--font-custom), 'Oswald', sans-serif;
    font-size: 5.5vw;
    font-weight: normal;
    color: var(--primary-white);
    text-transform: uppercase;
    letter-spacing: 0.3vw;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.planning-container {
    padding: 100px 5% 60px;
    background-color: #121212;
    color: white;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.planning-header {
    text-align: center;
    margin-bottom: 40px;
}

.planning-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* Monitor Selection Grid */
.monitor-selection-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.monitor-selection-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    width: 220px;
    text-decoration: none;
    color: white;
    transition: 0.4s;
    text-align: center;
}

.monitor-selection-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: #ed1c24;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.monitor-card-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.monitor-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.monitor-selection-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.monitor-loc-badge {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-cta {
    font-size: 0.8rem;
    color: #ed1c24;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    display: block;
}

.no-moniteurs-container {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-moniteurs-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.no-moniteurs-container h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #ed1c24;
}

.no-moniteurs-container p {
    opacity: 0.6;
    line-height: 1.6;
}

/* Planning Grid */
.monitor-selector {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 50px;
    margin-bottom: 40px;
}

.monitor-tab {
    padding: 10px 25px;
    background: transparent;
    border: none;
    color: white;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    font-size: 0.85rem;
    border-radius: 50px;
    opacity: 0.5;
}

.monitor-tab:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.monitor-tab.active {
    background: #ed1c24;
    color: white;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(237, 28, 36, 0.3);
}

.back-to-selection {
    display: block;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.back-to-selection:hover {
    color: white;
}

.planning-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.nav-button {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-button:hover {
    background-color: white;
    color: black;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.current-week {
    font-weight: bold;
    font-size: 1.1rem;
}

.planning-grid-wrapper {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.planning-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.planning-table th, .planning-table td {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.day-name {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
}

.day-date {
    font-size: 0.8rem;
    opacity: 0.6;
}

.time-col {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.05);
    width: 80px;
}

.slot-cell.available {
    cursor: pointer;
    transition: 0.3s;
}

.slot-cell.available:hover {
    background: rgba(255, 255, 255, 0.1);
}

.slot-cell.selected { 
    background: white !important; 
    color: black !important; 
    border-color: white; 
}

.slot-cell.booked {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.3);
}

.status-label {
    font-size: 0.8rem;
    font-style: italic;
}

.break-row { background: rgba(255, 255, 255, 0.02); }

.break-cell {
    font-size: 0.75rem;
    letter-spacing: 5px;
    opacity: 0.3;
    font-weight: bold;
    text-align: center;
    padding: 5px !important;
}

/* Selection Bar */
.selection-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.selection-bar.active { bottom: 30px; }
.selection-info { display: flex; flex-direction: column; gap: 5px; }
#selection-count { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
#selected-list { font-size: 0.8rem; opacity: 0.7; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: #1a1a1a;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: white; font-size: 2rem;
    cursor: pointer; opacity: 0.5;
}

.close-modal:hover { opacity: 1; }

.modal-content h2 { font-family: 'Oswald', sans-serif; text-transform: uppercase; margin-bottom: 10px; }
.modal-subtitle { color: rgba(255, 255, 255, 0.6); margin-bottom: 30px; font-size: 0.9rem; }

.modal-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.form-group label { font-size: 0.8rem; font-weight: bold; color: rgba(255, 255, 255, 0.7); }
.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px; border-radius: 8px;
    color: white; font-family: inherit;
}

.modal-slots-summary { background: rgba(255, 255, 255, 0.03); padding: 15px; border-radius: 8px; font-size: 0.85rem; }
.modal-slots-summary p { font-weight: bold; margin-bottom: 5px; }
.modal-slots-summary ul { list-style: none; padding: 0; margin: 0; }

.submit-btn {
    display: inline-block;
    padding: 1rem;
    background: #ed1c24;
    border: none;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: 0.4s;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(237, 28, 36, 0.2);
    width: 100%;
}

.submit-btn:hover {
    background: #ff2d35;
    box-shadow: 0 10px 20px rgba(237, 28, 36, 0.4);
    letter-spacing: 3px;
}

.modal-error { background: rgba(255, 0, 0, 0.1); color: #ff4d4d; padding: 10px; border-radius: 8px; font-size: 0.85rem; border: 1px solid rgba(255, 0, 0, 0.2); }
.success-icon { font-size: 4rem; color: #4dff4d; margin-bottom: 20px; }

@media (max-width: 768px) {
    .planning-container {
        padding: 60px 15px 40px;
    }

    .planning-header h2 {
        font-size: 1.8rem;
    }

    .about-hero h1 { font-size: 6vw; }
    .planning-nav { flex-direction: row; gap: 10px; }
    .nav-button { padding: 8px 16px; font-size: 0.7rem; }
    .current-week { font-size: 0.9rem; }
    .selection-bar { padding: 10px 20px; width: 95%; flex-direction: row; gap: 15px; bottom: -100px; }
    .selection-bar.active { bottom: 15px; }
    .selection-info { text-align: left; }
    #selection-count { font-size: 0.8rem; }
    #selected-list { font-size: 0.7rem; }
    .cta-button { 
        padding: 10px 20px;
        font-size: 0.8rem;
        letter-spacing: 1px;
        width: auto;
    }
    .monitor-selector {
        display: flex;
        overflow-x: auto;
        width: 100%;
        margin-bottom: 20px;
        scrollbar-width: none;
    }
    .monitor-selector::-webkit-scrollbar {
        display: none;
    }
    .monitor-tab {
        flex: 0 0 auto;
        padding: 8px 15px;
        font-size: 0.75rem;
    }
}

/* Planning Lieu Selector */
.planning-lieu-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.lieu-tab {
    padding: 8px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.lieu-tab:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.lieu-tab.active {
    background: #ed1c24;
    border-color: #ed1c24;
    opacity: 1;
    box-shadow: 0 0 15px rgba(237, 28, 36, 0.4);
}

/* Planning Agency Switch */
.planning-agency-switch {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.agency-tab {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.agency-tab:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.agency-tab.active {
    background: #ed1c24;
    border-color: #ed1c24;
    opacity: 1;
    box-shadow: 0 0 20px rgba(237, 28, 36, 0.4);
}
