/* ==========================================================
   THE VINE
   agenda.css
   Versie 3.0
   ========================================================== */


/* ==========================================================
   Introtekst
   ========================================================== */

.agenda-intro{

    max-width:750px;

    margin:0 auto 30px;

    text-align:center;

    line-height:1.7;

    font-size:18px;

    color:#444;

}


/* ==========================================================
   Kalendercontainer
   ========================================================== */

#calendar{

    width:100%;

    max-width:1180px;

    margin:0 auto;

    padding:22px;

    background:#ffffff;

    border-radius:16px;

    box-shadow:0 8px 24px rgba(0,0,0,.08);

    box-sizing:border-box;

}


/* ==========================================================
   FullCalendar algemeen
========================================================== */

.fc{

    width:100%;

    font-family:Arial, Helvetica, sans-serif;

    font-size:15px;

    color:#2f2f2f;

    overflow-x:hidden;

}

.fc-view-harness{

    width:100%;

}

.fc-scrollgrid{

    width:100% !important;

}

.fc-scroller{

    overflow-x:hidden !important;

}

/* ==========================================================
   Toolbar
   ========================================================== */

.fc-toolbar{

    margin-bottom:24px !important;

}

.fc-toolbar-title{

    font-size:32px !important;

    color:#436652;

    font-weight:700;

}


/* ==========================================================
   Knoppen
   ========================================================== */

.fc .fc-button{

    background:#436652 !important;

    border:none !important;

    border-radius:8px !important;

    padding:9px 15px !important;

    transition:.25s;

    box-shadow:none !important;

}

.fc .fc-button:hover{

    background:#365543 !important;

}

.fc .fc-button-active{

    background:#C9A86A !important;

}

.fc .fc-button:focus{

    box-shadow:none !important;

}


/* Extra ruimte tussen Maand en Lijst */

.fc-button-group{

    display:flex !important;

    gap:12px !important;

}

.fc-button-group .fc-button{

    margin:0 !important;

}


/* ==========================================================
   Dagkoppen
   ========================================================== */

.fc-col-header-cell{

    background:#436652;

    padding:10px 0;

}

.fc-col-header-cell a{

    color:#ffffff !important;

    text-decoration:none;

    font-size:14px;

    font-weight:600;

}


/* ==========================================================
   Dagen
   ========================================================== */

.fc-daygrid-day{

    transition:.25s;

}

.fc-daygrid-day:hover{

    background:#f6f8f5;

}

.fc-day-today{

    background:#f7f2e8 !important;

}


/* ==========================================================
   Evenementen
   ========================================================== */

.fc-event{

    background:#C9A86A !important;

    color:#2f2f2f !important;

    border:none !important;

    border-radius:6px;

    padding:4px 6px;

    font-size:13px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}

.fc-event:hover{

    transform:scale(1.03);

    box-shadow:0 2px 8px rgba(0,0,0,.20);

}


/* Titel mag iets netter afbreken */

.fc-event-title{

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}


/* ==========================================================
   Lijstweergave
   ========================================================== */

.fc-list-day-cushion{

    background:#436652 !important;

    color:white;

}

.fc-list-event-title a{

    color:#436652 !important;

    text-decoration:none;

    font-weight:600;

}


/* ==========================================================
   Mobiel
   ========================================================== */

@media (max-width:768px){

    #calendar{

        padding:12px;

    }

    .agenda-intro{

        font-size:16px;

        padding:0 10px;

    }

/* =====================================================
   Mobiele lijstweergave (Firefox + Samsung + Chrome)
===================================================== */

.fc .fc-list{

    width:100% !important;

}

.fc .fc-list td{

    vertical-align:middle;

}

.fc .fc-list-event-time{

    width:90px !important;

    white-space:nowrap;

}

.fc .fc-list-event-graphic{

    width:24px !important;

    text-align:center;

}

.fc .fc-list-event-title{

    width:auto !important;

    white-space:normal;

    word-break:normal;

    overflow-wrap:break-word;

}


    .fc-toolbar{

        flex-direction:column;

        gap:16px;

    }

    .fc-toolbar-title{

        font-size:24px !important;

        text-align:center;

    }

    .fc .fc-button{

        font-size:14px !important;

        padding:8px 12px !important;

    }

    .fc-button-group{

        gap:8px !important;

    }

}

.fc .fc-list-table{

    width:100% !important;

}

.fc .fc-list-event-graphic{

    width:22px !important;

    text-align:center;

}


/* ==========================================
   Agenda popup
========================================== */

#agenda-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}



#agenda-popup .popup-card {

    width: 420px;
    max-width: 92%;
    max-height: 90vh;

    background: #ffffff;

    border-radius: 18px;

    padding: 32px;

    box-shadow: 0 18px 40px rgba(0,0,0,.25);

    font-family: Arial, Helvetica, sans-serif;

    overflow-y: auto;
}




#agenda-popup h2{

    margin:0 0 24px;

    color:#436652;

    font-size:34px;

}

.popup-info{

    display:flex;

    align-items:flex-start;

    gap:12px;

    margin-bottom:18px;

}

.popup-icon{

    width:28px;

    font-size:22px;

    text-align:center;

}

.popup-label{

    font-weight:bold;

    color:#555;

}

.popup-buttons{

    display:flex;

    justify-content:flex-start;

    align-items:center;

    gap:14px;

    margin-top:32px;

}

.popup-button{

    background:#436652;

    color:white;

    text-decoration:none;

    padding:12px 22px;

    border-radius:10px;

    transition:.2s;

    font-weight:bold;

}

.popup-button:hover{

    background:#557d66;

}

.popup-register{

    background:#C9A86A;

}

.popup-register:hover{

    background:#b99755;

}

.popup-close{

    margin-left:0;

    min-width:120px;

    background:#666;

    border:none;

    color:white;

    padding:12px 22px;

    border-radius:10px;

    cursor:pointer;

}

/* =====================================================
   Agenda popup
===================================================== */

#popup-card{
    width:520px;
    max-width:92%;
    transition:width .35s ease;
}

#popup-card.expanded{
    width:620px;
}

#extra-info{
    transition:opacity .35s ease;
}

/* Meer ruimte tussen pijlen en Vandaag */

.fc .fc-button-group {
    margin-right: 12px;
}

/* Meer ruimte boven de knop Vandaag */

.fc .fc-toolbar-chunk .fc-today-button {
    margin-top: 12px;
}

/* =====================================================
   Popup versie 4.0
   Alleen beschrijving scrollt
===================================================== */

#popup-card{

    display:flex;
    flex-direction:column;

    max-height:90vh;

}

#extra-info{

    display:block;

    height:220px;

    overflow-y:auto;

    padding-right:8px;

}

#extra-info::-webkit-scrollbar{

    width:8px;

}

#extra-info::-webkit-scrollbar-thumb{

    background:#c9a86a;

    border-radius:10px;

}

#extra-info::-webkit-scrollbar-track{

    background:#f3f3f3;

}
