/* ============================================================
   sitemap.css - the site map page (/en/sitemap, /tr/site-haritasi)
   Builds on home2.css (.h2-page tokens, hero, sections).
   ============================================================ */

/* ---- hero: language switch + search ---- */
.sm-hero .h2-hero-inner { padding-bottom: 8px; }

.sm-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.sm-lang {
    display: inline-flex;
    padding: 5px;
    gap: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
}

.h2-page a.sm-lang-opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #c9d4e8;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

    .h2-page a.sm-lang-opt:hover { background: rgba(255, 255, 255, .1); color: #fff; }

    .h2-page a.sm-lang-opt.is-on {
        background: #fff;
        color: var(--ink);
        box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    }

    .h2-page a.sm-lang-opt:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.sm-lang-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--red), #ff7a5c);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
}

.sm-search {
    position: relative;
    flex: 0 1 380px;
    min-width: 240px;
}

    .sm-search i {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
        color: #8a97b4;
        pointer-events: none;
    }

    .h2-page .sm-search input[type="search"] {
        -webkit-appearance: none;
        appearance: none;
        margin: 0;
        box-shadow: none;
        width: 100%;
        height: 52px;
        padding: 0 18px 0 48px !important;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, .16);
        background: rgba(255, 255, 255, .07);
        color: #fff;
        font: inherit;
        font-size: .98rem;
        outline: none;
        transition: border-color .2s ease, background .2s ease;
    }

        .h2-page .sm-search input[type="search"]::placeholder { color: #8a97b4; opacity: 1; }

        .h2-page .sm-search input[type="search"]:focus {
            border-color: var(--red);
            background: rgba(255, 255, 255, .11);
        }

/* ---- featured tiles ---- */
.sm-featured {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.h2-page a.sm-feat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 190px;
    padding: 26px 24px;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 27, 45, .14);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .h2-page a.sm-feat::after {
        content: "";
        position: absolute;
        right: -40px;
        bottom: -40px;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .1);
    }

    .h2-page a.sm-feat:hover {
        transform: translateY(-6px);
        box-shadow: 0 26px 50px rgba(15, 27, 45, .22);
        color: #fff;
    }

    .h2-page a.sm-feat:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.sm-feat-red { background: linear-gradient(135deg, #E84545, #ff7a5c); }
.sm-feat-teal { background: linear-gradient(135deg, #1f9e92, #43c6ac); }
.sm-feat-navy { background: linear-gradient(135deg, #1d3a66, #2f5d9a); }
.sm-feat-ink { background: linear-gradient(135deg, #0f1b2d, #26364f); }

.sm-feat-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    font-size: 1.2rem;
}

.sm-feat-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.sm-feat-text {
    font-size: .9rem;
    opacity: .85;
}

.sm-feat-go {
    position: absolute;
    top: 26px;
    right: 24px;
    opacity: .8;
    transition: transform .25s ease;
}

.h2-page a.sm-feat:hover .sm-feat-go { transform: translateX(4px); }

/* ---- all pages ---- */
.sm-grid {
    column-count: 3;
    column-gap: 24px;
}

    .sm-grid > .sm-card {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        display: inline-block;
        width: 100%;
        margin-bottom: 24px;
        vertical-align: top;
    }

.sm-card {
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 20px;
    padding: 24px 22px 14px;
    box-shadow: 0 12px 30px rgba(15, 27, 45, .05);
}

.sm-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid #eef1f7;
}

    .sm-card-head h3 {
        margin: 2px 0 2px;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--ink);
    }

    .sm-card-head p {
        margin: 0;
        font-size: .86rem;
        line-height: 1.45;
        color: var(--slate);
    }

    .sm-card-head > div { flex: 1; min-width: 0; }

.sm-card-ico {
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 8px 18px rgba(15, 27, 45, .14);
}

    .sm-card-ico.red { background: linear-gradient(135deg, #E84545, #ff7a5c); }
    .sm-card-ico.teal { background: linear-gradient(135deg, #1f9e92, #43c6ac); }
    .sm-card-ico.navy { background: linear-gradient(135deg, #1d3a66, #2f5d9a); }

.sm-count {
    flex: 0 0 auto;
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f2f5fa;
    color: var(--slate);
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
}

.sm-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .h2-page .sm-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 10px;
        margin: 0 -10px;
        border-radius: 12px;
        color: var(--ink);
        text-decoration: none;
        transition: background .18s ease;
    }

        .h2-page .sm-links a:hover { background: #f5f7fb; color: var(--ink); }
        .h2-page .sm-links a:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; }

.sm-link-ico {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fdeeee;
    color: var(--red);
    font-size: .9rem;
}

.sm-link-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .sm-link-body b {
        font-size: .96rem;
        font-weight: 600;
        line-height: 1.35;
    }

    .sm-link-body > span:last-child {
        font-size: .82rem;
        line-height: 1.4;
        color: var(--slate);
    }

.sm-link-go {
    flex: 0 0 auto;
    color: #b5bfd3;
    font-size: .8rem;
    transition: transform .18s ease, color .18s ease;
}

.h2-page .sm-links a:hover .sm-link-go { color: var(--red); transform: translateX(3px); }

.sm-links mark {
    background: #ffe3a3;
    color: inherit;
    border-radius: 3px;
    padding: 0 1px;
}

/* search state */
.sm-page.is-searching [data-sm-hide] { display: none; }
.sm-page.is-searching .sm-all { padding-top: 56px; }
.sm-page.is-searching .sm-grid { column-count: 1; max-width: 640px; margin: 0 auto; }
[data-sm-item][hidden],
[data-sm-group][hidden] { display: none; }

.sm-empty {
    text-align: center;
    padding: 50px 20px 10px;
    color: var(--slate);
}

    .sm-empty[hidden] { display: none; }

    .sm-empty > i {
        font-size: 2rem;
        color: #c3cbdb;
        margin-bottom: 12px;
    }

    .sm-empty p { margin-bottom: 18px; }

.sm-xml {
    margin: 34px 0 0;
    text-align: center;
    font-size: .85rem;
    color: var(--slate);
}

    .h2-page .sm-xml a { color: var(--red); font-weight: 600; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
    .sm-featured { grid-template-columns: repeat(2, 1fr); }
    .sm-grid { column-count: 2; }
}

@media (max-width: 680px) {
    .sm-grid { column-count: 1; }
    .sm-tools { flex-direction: column; align-items: stretch; }
    .sm-lang { align-self: center; }
    .sm-search { flex-basis: auto; min-width: 0; }
}

@media (max-width: 420px) {
    .sm-featured { grid-template-columns: 1fr; }
    .h2-page a.sm-feat { min-height: 0; }
}
.sm-page.is-searching .sm-count { display: none; }
