/* ============================================================
   footer.css — Daha önce footer.php içindeki <style> bloğuydu.
   header.php <head> içinde yükleniyor (FOUC'u önler).
   ============================================================ */

.site-footer,
.site-footer *,
.site-footer *::before,
.site-footer *::after { box-sizing: border-box !important; }

.site-footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%) !important;
    color: #b0b0b0 !important;
    padding: 60px 0 0 !important;
    margin-top: 60px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    position: relative;
    border-top: 2px solid rgba(200,150,12,.25);
    font-family: 'Barlow', 'Barlow Condensed', -apple-system, sans-serif !important;
}
.site-footer .footer-container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.site-footer .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer .footer-column.brand-column { display: flex; flex-direction: column; gap: 20px; }
.site-footer .footer-logo { color: #fff !important; font-size: 28px !important; font-weight: 800 !important; margin: 0 0 12px !important; letter-spacing: .02em; padding: 0 !important; font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif !important; }
.site-footer .brand-tagline { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #C8960C; font-weight: 700; margin: 0 !important; padding: 0 !important; font-family: 'Barlow Condensed', sans-serif !important; letter-spacing: .06em; text-transform: uppercase; }
.site-footer .footer-desc { color: #9ca3af !important; line-height: 1.8; font-size: 14px; margin: 0 !important; padding: 0 !important; }

.site-footer .footer-heading {
    color: #fff !important; font-size: 13px !important; font-weight: 700 !important;
    margin: 0 0 24px !important; padding: 0 !important; text-transform: uppercase;
    letter-spacing: .1em; position: relative; display: inline-block;
    font-family: 'Barlow Condensed', sans-serif !important;
}
.site-footer .footer-heading::after {
    content: ''; position: absolute; bottom: -8px; left: 0;
    width: 40px; height: 3px;
    background: linear-gradient(90deg, #C8960C 0%, #8B0000 100%);
    border-radius: 2px;
}
.site-footer .footer-nav ul,
.site-footer .contact-links ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.site-footer .footer-nav li,
.site-footer .contact-links li { margin-bottom: 12px; padding: 0 !important; list-style: none !important; }
.site-footer .footer-nav a,
.site-footer .contact-links a {
    color: #9ca3af !important; text-decoration: none !important; font-size: 14px;
    transition: all .3s ease; display: inline-block; margin: 0 !important; padding: 0 !important;
    font-family: 'Barlow', sans-serif !important;
}
.site-footer .footer-nav a:hover,
.site-footer .contact-links a:hover { color: #C8960C !important; transform: translateX(4px); }

.site-footer .social-media { margin-top: 24px; }
.site-footer .social-title { font-size: 14px !important; font-weight: 600 !important; color: #fff !important; margin-bottom: 16px !important; margin-top: 0 !important; padding: 0 !important; text-transform: uppercase; letter-spacing: .5px; }
.site-footer .social-icons { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 !important; padding: 0 !important; }
.site-footer .social-link {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.05) !important; border: 1px solid rgba(200,150,12,.15); border-radius: 10px;
    color: #9ca3af !important; text-decoration: none !important; font-size: 20px;
    transition: all .3s ease; margin: 0 !important; padding: 0 !important;
}
.site-footer .social-link:hover { background: rgba(200,150,12,.2) !important; transform: translateY(-4px); color: #C8960C !important; border-color: rgba(200,150,12,.4) !important; }
.site-footer .social-link svg { display: block; }

.site-footer .footer-contact-section { padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .contact-stats-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.site-footer .contact-links ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.site-footer .footer-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.site-footer .stat-box { background: rgba(200,150,12,.07); padding: 20px; border-radius: 12px; text-align: center; border: 1px solid rgba(200,150,12,.18); transition: all .3s ease; }
.site-footer .stat-box:hover { background: rgba(200,150,12,.13); transform: translateY(-4px); border-color: rgba(200,150,12,.4); }
.site-footer .stat-box .stat-num { display: block; font-size: 26px; font-weight: 800; color: #C8960C; margin-bottom: 8px; padding: 0 !important; font-family: 'Bebas Neue', sans-serif !important; letter-spacing: .04em; }
.site-footer .stat-box .stat-lbl { display: block; font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: .5px; margin: 0 !important; padding: 0 !important; }

.site-footer .footer-bottom { padding: 28px 0; }
.site-footer .copyright { text-align: center; }
.site-footer .copyright p { color: #6b7280 !important; font-size: 13px; margin: 0 !important; padding: 0 !important; line-height: 1.6; font-family: 'Barlow Condensed', sans-serif !important; letter-spacing: .03em; }
.site-footer .copyright strong { color: #fff !important; }

@media (max-width: 1024px) {
    .site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
    .site-footer .footer-column.brand-column { grid-column: 1 / -1; }
    .site-footer .contact-stats-grid { grid-template-columns: 1fr; gap: 32px; }
    .site-footer .footer-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .site-footer { padding: 40px 0 0 !important; }
    .site-footer .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .site-footer .footer-column { text-align: center; }
    .site-footer .footer-heading { width: 100%; text-align: center; display: block; }
    .site-footer .footer-heading::after { left: 50% !important; transform: translateX(-50%) !important; }
    .site-footer .brand-tagline { justify-content: center !important; }
    .site-footer .social-icons { justify-content: center; }
    .site-footer .contact-links ul { grid-template-columns: 1fr !important; text-align: center !important; }
    .site-footer .contact-links a { display: inline-block !important; }
    .site-footer .footer-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .site-footer .contact-stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .site-footer .footer-stats { grid-template-columns: 1fr; }
    .site-footer .footer-logo { font-size: 22px !important; }
}

/* ── AI FAB & Popup ─────────────────────────────────── */
#ai-fab {
    position: fixed; bottom: 28px; right: 28px;
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #C8960C 0%, #8B0000 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 9999;
    box-shadow: 0 4px 20px rgba(200,150,12,0.45);
    border: none;
    transition: transform .2s, box-shadow .2s;
    animation: nefes 3s ease-in-out infinite;
}
#ai-fab:hover { animation: none; transform: scale(1.1); box-shadow: 0 6px 28px rgba(200,150,12,0.65); }
@keyframes nefes {
    0%,100% { transform: scale(1);    box-shadow: 0 4px 20px rgba(200,150,12,0.45); }
    50%      { transform: scale(1.07); box-shadow: 0 6px 26px rgba(200,150,12,0.65); }
}
#ai-fab svg { width: 26px; height: 26px; fill: #fff; display: block; }
#ai-fab-notif {
    position: absolute; top: 1px; right: 1px;
    width: 13px; height: 13px;
    background: #4ade80; border-radius: 50%; border: 2px solid #0a0a0a;
}
#ai-popup {
    position: fixed; bottom: 96px; right: 28px; width: 296px;
    background: #161616; border: 1px solid rgba(200,150,12,0.28);
    border-radius: 16px; padding: 0; z-index: 9998;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    font-family: 'Barlow', sans-serif; overflow: hidden;
    opacity: 0; transform: translateY(12px) scale(.97);
    pointer-events: none; transition: opacity .22s, transform .22s;
}
#ai-popup.acik { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#ai-popup .ap-header {
    background: linear-gradient(135deg, rgba(200,150,12,.18), rgba(139,0,0,.18));
    border-bottom: 1px solid rgba(200,150,12,.18);
    padding: 14px 16px; display: flex; align-items: center; gap: 10px;
}
#ai-popup .ap-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg,#C8960C,#8B0000); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
#ai-popup .ap-name  { color: #fff; font-weight: 700; font-size: 14px; line-height: 1.2; }
#ai-popup .ap-status { color: #4ade80; font-size: 11px; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
#ai-popup .ap-dot   { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
#ai-popup .ap-close {
    margin-left: auto; background: none; border: none;
    color: #6b7280; font-size: 18px; cursor: pointer; line-height: 1; padding: 0; flex-shrink: 0;
}
#ai-popup .ap-close:hover { color: #fff; }
#ai-popup .ap-body { padding: 16px; }
#ai-popup .ap-bubble {
    background: rgba(200,150,12,.09); border: 1px solid rgba(200,150,12,.16);
    border-radius: 4px 14px 14px 14px; padding: 13px 15px;
    color: #d1d5db; font-size: 13.5px; line-height: 1.65;
}
#ai-popup .ap-bubble strong { color: #C8960C; }
#ai-popup .ap-time { text-align: right; color: #4b5563; font-size: 11px; margin-top: 6px; }
