/* components.css - modal ve footer katmanı (her sayfada)
   pages.css bölünerek oluşturuldu: her kural yalnızca kullanıldığı sayfada yüklenir. */

/* --- modals.php --- */
.modal-backdrop {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(4px);
    z-index: 99999999 !important;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    box-sizing: border-box;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 680px;
    width: 100%;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
    margin: auto;
}

.modal-header {
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-header h3 { margin: 0; font-size: 15px; color: #0f172a; font-weight: 700; }
.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.modal-close:hover { color: #0f172a; }

.modal-body {
    padding: 20px;
    overflow-y: auto !important;
    flex: 1 1 auto;
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}

.modal-body h4 {
    margin: 16px 0 8px 0;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 4px;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body ul { padding-left: 18px; margin: 8px 0 14px 0; }
.modal-body li { margin-bottom: 6px; }
.modal-body p { margin: 0 0 12px 0; }

.legal-notice {
    background: #fffbe3;
    border-left: 3px solid #d97706;
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    margin: 12px 0;
    font-size: 12px;
    color: #92400e;
}

.contact-card-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    transition: opacity 0.2s;
}
.contact-card-btn:hover { opacity: 0.9; }
.bg-whatsapp { background: #25D366; }
.bg-telegram { background: #0088cc; }
.bg-email { background: #0284c7; }

/* --- footer.php --- */
/* Footer Katman Seviyesi (Modal'ların altında kalmasını sağlar) */
.site-footer {
    position: relative !important;
    z-index: 1 !important;
    padding-top: 20px;
}

/* Modal ve Popup pencerelerini her zaman en üste taşır */
.modal, 
.modal-backdrop, 
[class*="modal"], 
[id*="modal"] {
    z-index: 99999 !important;
}

.footer-info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-info-btn {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.footer-info-btn:hover,
.footer-info-btn:focus,
.footer-info-btn:active {
    color: #000000 !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.85) !important;
}

.footer-info-btn i {
    font-size: 12px !important;
}
