/* =========================
   GLOBAL
========================= */

html {
    scroll-behavior: smooth;
}

body {
    background: #eef2f5;
}

/* =========================
   LAYOUT
========================= */

.hk-screen {
    width: 100%;
    margin: 0;
    padding: 16px 0 90px;
    /* mobile bottom ad için alan */
    border-radius: 0;
    background: transparent;
}

.hk-content {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    padding-bottom: 10px;
}

/* Hesaplayıcı orta alan */
.hk-main {
    min-height: 50vh;
    max-width: 720px;
    margin: 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.hk-container {
    border: 1px solid #dfe3e8;
    padding: 14px;
    background: #eef2f5;
    border-radius: 12px;
}

.hk-card {
    width: 100%;
}

.hk-results {
    background: whitesmoke;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    padding: 14px;
}

/* =========================
   BUTTONS
========================= */

.hk-clear-btn {
    width: 58px;
    font-size: 20px;
}

.hk-calc-btn {
    border: 2px solid #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .2);
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
}

.hk-pdf-btn {
    border: 2px solid #0d6efd;
    padding: 12px 14px;
    font-weight: 600;
}

/* =========================
   HELP / SSS
========================= */

.hk-helpWide {
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
}

@media (min-width: 992px) {
    .hk-helpWide {
        max-width: min(1100px, calc(100vw - 2*(260px + 16px + 24px)));
    }
}

@media (max-width: 991px) {
    .hk-helpWide {
        max-width: 100%;
        padding: 6px 6px 80px 6px;
    }
}

.hk-helpCard {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    min-height: auto;
}

.hk-helpHeader {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.hk-helpTitle {
    margin: 0;
    font-size: 1.05rem;
}

.hk-helpHint {
    margin: 0;
    font-size: .92rem;
    opacity: .75;
}

.hk-list {
    margin: 8px 0 12px 18px;
    line-height: 1.6;
}

.hk-faqItem {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 10px;
}

.hk-faqSummary {
    cursor: pointer;
    font-weight: 600;
}

.hk-faqBody {
    margin-top: 8px;
    line-height: 1.6;
    opacity: .95;
}

#sss {
    scroll-margin-top: 16px;
}

.hk-helpTopRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hk-topLink {
    font-size: .9rem;
    text-decoration: none;
    opacity: .75;
    white-space: nowrap;
}

.hk-topLink:hover {
    opacity: 1;
    text-decoration: underline;
}

.hk-helpH3 {
    margin: 12px 0 6px;
    font-size: 1rem;
}

.hk-note {
    margin-top: 8px;
    font-size: .92rem;
    opacity: .8;
}

.hk-method {
    border: 1px dashed rgba(0, 0, 0, .15);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(13, 110, 253, .06);
    margin-bottom: 10px;
    font-size: .92rem;
}

/* =========================
   DISCLAIMER
========================= */

.hk-disclaimer {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #e9ecef;
    font-size: .9rem;
    line-height: 1.5;
}

.hk-disclaimer details summary {
    cursor: pointer;
}

.hk-disclaimer details summary:hover {
    text-decoration: underline;
}

/* =========================
   LINKS (contrast fix)
========================= */

.hk-sssLink,
.hk-disclaimer-link,
.hk-container a {
    color: #084298;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hk-sssLink:hover,
.hk-disclaimer-link:hover,
.hk-container a:hover {
    color: #084298;
}

/* =========================
   ADS / CLS FIX
   - Reklam gelmeden de alan ayırır (CLS düşer)
========================= */

/* Ortak reklam kutusu görünümü (placeholder için) */
.hk-adslot {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    color: #6c757d;
}

/* Desktop left/right */
.hk-adslot-left,
.hk-adslot-right {
    width: 260px;
    min-height: 600px;
    overflow: hidden;
}

/* ✅ Mobile bottom: banner gibi sabitle (kocaman görünmesin) */
.mobile-bottom-ad-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;

    background: #fff;
    border-top: 1px solid #e5e5e5;

    padding: 6px 8px;
    min-height: 60px;
    max-height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

/* Mobile bottom slot: 320x50 hissi */
.hk-adslot-mobile-bottom {
    width: 100%;
    max-width: 360px;

    min-height: 50px;
    max-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    padding: 0 !important;
    /* placeholder padding'i ez */
    border: 0 !important;
    /* bar border'ı yeter */
    border-radius: 0 !important;
    background: transparent !important;
}

/* ✅ Adsense ins/iframe mobilde taşmasın */
.hk-adslot-mobile-bottom ins.adsbygoogle {
    display: block !important;
    width: 320px !important;
    height: 50px !important;
}

.hk-adslot-mobile-bottom iframe {
    width: 320px !important;
    height: 50px !important;
}

/* ✅ Genel: Adsense ins beklenmedik genişlemeleri engelle */
ins.adsbygoogle {
    display: block !important;
    max-width: 100% !important;
}

/* Kullanırsan diye bırakıyorum (şu an fixed kullanıyorsun) */
.mobile-bottom-ad-sticky {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 10px 12px;
    z-index: 1050;
}

/* Mobilde içerik fixed reklama girmesin */
@media (max-width: 991px) {
    .hk-screen {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }
}

/* Desktop içerik hizası */
@media (min-width: 992px) {
    .hk-content {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .hk-content>.hk-container,
    .hk-content>h4,
    .hk-content>.d-lg-none {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================
   FOOTER
========================= */

.hk-footer {
    padding: 7px 0;
}

.hk-footer-inner {
    border-top: 1px solid rgba(0, 0, 0, .08);
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.hk-footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .95rem;
}

.hk-footer-links a {
    text-decoration: none;
}

.hk-footer-links a:hover {
    text-decoration: underline;
}

.hk-footer-sep {
    opacity: .5;
}

.hk-footer-copy {
    opacity: .7;
    font-size: .9rem;
}

.hk-backlink {
    display: block;
    margin: 6px 0 8px;
    text-decoration: none;
    font-weight: 600;
    float: right;
}

.hk-backlink:hover {
    text-decoration: underline;
}

/* =========================
   PRINT
========================= */

@media print {
    body * {
        visibility: hidden !important;
    }

    #print-area,
    #print-area * {
        visibility: visible !important;
    }

    #print-area {
        position: fixed !important;
        inset: 0 !important;
        padding: 12px !important;
    }
}