/* ============================================================
   HAFooter – Frontend Styles (v1.0.0)
   Tüm selector'lar .haf- prefix'li — tema çakışması yok
   Üretici: Hakan Aydemir — rafue.com
   ============================================================ */

/* ── Reset ────────────────────────────────────────────────── */
.haf-footer-wrap *,
.haf-footer-wrap *::before,
.haf-footer-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Footer Wrapper ───────────────────────────────────────── */
.haf-footer-wrap {
    width: 100%;
    background: var(--haf-bg, #1a1a2e);
    font-family: var(--haf-font, inherit);
    color: var(--haf-text, #ccc);
    font-size: var(--haf-font-size, 14px);
    font-weight: var(--haf-fw-body, 400);
}

/* ── Inner Container ──────────────────────────────────────── */
.haf-inner {
    width: 100%;
    padding-top:    var(--haf-pt, 60px);
    padding-bottom: var(--haf-pb, 24px);
    padding-left:  32px;
    padding-right: 32px;
}

/* ── BAŞLIK BLOĞU ─────────────────────────────────────────── */
.haf-header-block {
    text-align: center;
    margin-bottom: 40px;
}

.haf-site-title {
    font-size: var(--haf-header-size, 32px);
    font-weight: var(--haf-fw-header, 700);
    color: var(--haf-header-color, #fff);
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.haf-site-sub {
    font-size: var(--haf-header-sub-size, 15px);
    color: var(--haf-header-sub-color, #9999bb);
    font-weight: var(--haf-fw-sub, 400);
    letter-spacing: 0.3px;
}

/* ── AYIRICI ──────────────────────────────────────────────── */
.haf-divider {
    width: 100%;
    height: 1px;
    background: var(--haf-divider, rgba(255,255,255,0.07));
    margin: 0 0 36px;
}

/* ── SOSYAL MEDYA ÇUBUĞU ──────────────────────────────────── */
.haf-social-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.haf-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width:  calc(var(--haf-social-size, 20px) + 20px);
    height: calc(var(--haf-social-size, 20px) + 20px);
    background: var(--haf-social-bg, rgba(255,255,255,0.08));
    border-radius: var(--haf-social-radius, 8px);
    color: var(--haf-social-color, #aaa);
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    flex-shrink: 0;
}

.haf-social-link:hover {
    background: var(--haf-social-bg-hover, rgba(255,255,255,0.18));
    color: var(--haf-social-hover, #fff);
    transform: translateY(-2px);
}

.haf-social-link svg {
    width:  var(--haf-social-size, 20px);
    height: var(--haf-social-size, 20px);
    display: block;
}

/* Platform renkler (hover'da marka rengi) */
.haf-social-twitter:hover    { background: #1da1f2; color: #fff; }
.haf-social-facebook:hover   { background: #1877f2; color: #fff; }
.haf-social-instagram:hover  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.haf-social-linkedin:hover   { background: #0a66c2; color: #fff; }
.haf-social-youtube:hover    { background: #ff0000; color: #fff; }
.haf-social-github:hover     { background: #24292f; color: #fff; }
.haf-social-tiktok:hover     { background: #010101; color: #fff; }
.haf-social-pinterest:hover  { background: #e60023; color: #fff; }
.haf-social-whatsapp:hover   { background: #25d366; color: #fff; }

/* ── 4 KOLON ALANI ────────────────────────────────────────── */
.haf-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 8px;
}

.haf-col { }

.haf-col__title {
    font-size: var(--haf-col-title-size, 13px);
    font-weight: var(--haf-fw-col-title, 600);
    color: var(--haf-col-title-color, #fff);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--haf-divider, rgba(255,255,255,0.07));
}

.haf-col__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.haf-col__item { }

.haf-col__link {
    color: var(--haf-link, #aaa);
    text-decoration: none;
    font-size: var(--haf-font-size, 14px);
    font-weight: var(--haf-fw-link, 400);
    transition: color .2s ease, padding-left .2s ease;
    display: inline-block;
    line-height: 1.4;
}

.haf-col__link:hover {
    color: var(--haf-link-hover, #fff);
    padding-left: 4px;
}

/* ── ALT BAR ──────────────────────────────────────────────── */
.haf-bottom-bar {
    width: 100%;
    background: var(--haf-bottom-bg, #111122);
    border-top: 1px solid var(--haf-bottom-divider, rgba(255,255,255,0.07));
    padding: 16px var(--haf-bottom-padding-h, 32px);
}

.haf-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--haf-bottom-text, #777799);
}

/* Mod: full — tam genişlik, iç boşluk yeterli */
.haf-bottom-mode-full .haf-bottom-inner {
    max-width: 100%;
}

/* Mod: boxed — üst içerik genişliğiyle eşleş */
.haf-bottom-mode-boxed .haf-bottom-inner {
    max-width: var(--haf-boxed-max, 1200px);
    margin-left: auto;
    margin-right: auto;
}

/* Mod: custom — kullanıcı tanımlı max genişlik */
.haf-bottom-mode-custom .haf-bottom-inner {
    max-width: var(--haf-bottom-max-width, 1200px);
    margin-left: auto;
    margin-right: auto;
}

.haf-copyright {
    color: var(--haf-bottom-text, #777799);
    font-weight: var(--haf-fw-copyright, 400);
}

.haf-credit {
    text-align: right;
    font-weight: var(--haf-fw-credit, 400);
}

.haf-credit__link {
    color: var(--haf-bottom-text, #777799);
    text-decoration: none;
    transition: color .2s ease;
}

.haf-credit__link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ── Responsive: Tablet ────────────────────────────────────── */
@media (max-width: 900px) {
    .haf-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ── Responsive: Mobile ────────────────────────────────────── */
@media (max-width: 540px) {
    .haf-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .haf-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .haf-site-title {
        font-size: calc(var(--haf-header-size, 32px) * 0.75);
    }

    .haf-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .haf-credit { text-align: center; }

    .haf-social-bar { gap: 8px; }
}
