/* ============================================================
   FaWoWa - components.css
   Buttons, Cards, Modals, Badges
   ============================================================ */

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none !important;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    gap: 0.75rem;
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

.btn-primary, .btn-secondary, .btn-info, .btn-warning, .btn-danger {
    min-height: 3.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
}
.btn i, .btn span { color: inherit !important; }

.btn-primary   { background: var(--primary); color: white !important; }
.btn-primary:hover  { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(39,174,96,0.3); color: white !important; }

.btn-secondary { background: var(--secondary); color: white !important; }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(230,126,34,0.3); color: white !important; }

.btn-info      { background: #4f46e5; color: white !important; }
.btn-info:hover { background: #4338ca; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79,70,229,0.3); color: white !important; }

.btn-warning   { background: #f59e0b; color: white !important; }
.btn-warning:hover { background: #d97706; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(245,158,11,0.3); color: white !important; }

.btn-danger    { background: #ef4444; color: white !important; }
.btn-danger:hover { background: #dc2626; transform: translateY(-2px); color: white !important; }

/* Small button variant */
.fww-btn-sm {
    padding: 0.45rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.fww-btn-sm:hover { background: #f1f5f9; border-color: #cbd5e1; }
.fww-btn-sm.fww-btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.fww-btn-sm.fww-btn-primary:hover { background: var(--primary-dark); }

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.5rem; }

/* HF Card (homepage featured) */
.hf-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem;
    border: none;
    box-shadow: var(--shadow);
}

/* --- Globale Modals --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    overflow: visible;
    position: relative;
    transition: all 0.3s ease;
}

#newsModal .modal-content {
    width: 95%;
    max-width: 1000px;
    margin: 5vh auto;
}

.modal-header-shared {
    background: var(--dark);
    color: white;
    padding: 3.5rem 2.5rem;
    position: relative;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.modal-body-shared {
    padding: 2.5rem;
}
.modal-body-shared p { margin-bottom: 0.5rem; }

.modal-close-btn {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    width: 45px;
    height: 45px;
    background: #22c55e !important;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 2px solid white;
}
.modal-close-btn:hover { background: #16a34a !important; transform: scale(1.1); }

#newsModal .modal-body-shared { padding-top: 5rem !important; }
#blockModal .modal-body-shared { padding: 1.25rem !important; padding-top: 3.5rem !important; }

/* --- FWW Modal (meetings pagina) --- */
.fww-modal-backdrop {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(3px);
    overflow-y: auto;
}
.fww-modal-content {
    background: white;
    margin: 5vh auto;
    width: 95%;
    max-width: 950px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.fww-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 5;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}
.fww-modal-close:hover { background: rgba(255,255,255,0.25); }
.modal-label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* --- Badges & Tags --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }

/* --- Alerts --- */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border-left: 4px solid;
}
.alert-success { background: #dcfce7; border-color: var(--primary); color: #166534; }
.alert-danger  { background: #fee2e2; border-color: #ef4444; color: #991b1b; }
.alert-warning { background: #fef9c3; border-color: #f59e0b; color: #854d0e; }
.alert-info    { background: #dbeafe; border-color: #3b82f6; color: #1e40af; }

/* Mobiel */
@media (max-width: 768px) {
    .hf-card, .card {
        max-width: 540px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }
    .modal-content {
        margin: 5rem auto 2rem auto !important;
        width: 95% !important;
        border-radius: 0 !important;
    }
    .modal-close-btn {
        right: 1rem !important;
        top: 1rem !important;
    }
    .modal-body-shared { padding: 1.25rem !important; }
    .modal-header-shared { padding: 2.5rem 1.25rem 1.5rem !important; }
    #newsModal .modal-body-shared { padding-top: 3.5rem !important; }
    #newsModalTitle { font-size: 1.3rem !important; }
    .fww-modal-content { margin: 5rem auto; }
    .btn-primary, .btn-secondary, .btn-info, .btn-warning, .btn-danger {
        width: 100%;
        justify-content: center;
    }
}

/* --- Map Picker --- */
#map-picker {
    height: 350px !important;
    width: 100% !important;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    z-index: 10 !important;
    position: relative;
    overflow: hidden;
}

.map-search-group {
    display: flex !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
    width: 100%;
}

.map-search-group input {
    flex: 1;
}
