/* ============================================================
   E-Katalog — Flipbook + SEO içerik
   ============================================================ */

.ecat {
    padding: 48px 0 56px;
    background: #f5f7fa;
}

/* Başlık */
.ecat-head {
    text-align: center;
    margin-bottom: 30px;
}
.ecat-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .26em;
    color: var(--blue, #0f2e57);
    opacity: .75;
    margin-bottom: 12px;
}
.ecat-head h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    color: var(--blue, #0f2e57);
    line-height: 1.1;
}
.ecat-head p {
    margin: 0 auto;
    max-width: 620px;
    color: #5b6675;
    font-size: 16px;
    line-height: 1.6;
}

/* ---- Flipbook sahnesi ---- */
.flip-stage {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flipbook {
    width: 100%;
    margin: 0 auto;
    touch-action: pan-y;
}

/* StPageFlip sayfa derinliği */
.flipbook .page { background: #fff; }
.flip-stage .stf__parent {
    margin: 0 auto;
    filter: drop-shadow(0 24px 50px rgba(10, 25, 55, .28));
    border-radius: 4px;
}

/* Yükleniyor */
.flip-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #5b6675;
    font-size: 14px;
}
.flip-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #d8e0ea;
    border-top-color: var(--blue, #0f2e57);
    border-radius: 50%;
    animation: ecatspin .8s linear infinite;
}
@keyframes ecatspin { to { transform: rotate(360deg); } }

/* Yedek (PDF object) */
.flip-fallback {
    width: 100%;
    text-align: center;
    color: #5b6675;
}
.flip-fallback-pdf {
    display: block;
    width: 100%;
    height: 80vh;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

/* ---- Kontroller ---- */
.flip-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.flip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    min-width: 44px;
    padding: 0 14px;
    border: 1px solid #d7dee8;
    border-radius: 999px;
    background: #fff;
    color: var(--blue, #0f2e57);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
.flip-btn:hover {
    background: var(--blue, #0f2e57);
    border-color: var(--blue, #0f2e57);
    color: #fff;
    transform: translateY(-1px);
}
.flip-btn-wide { padding: 0 18px; }
.flip-page {
    min-width: 76px;
    text-align: center;
    font-weight: 700;
    color: #334155;
    font-variant-numeric: tabular-nums;
}
.flip-sep {
    width: 1px;
    height: 26px;
    background: #d7dee8;
    margin: 0 4px;
}

/* Tam ekran */
.flip-stage:fullscreen,
.flip-stage:-webkit-full-screen {
    max-width: none;
    width: 100%;
    height: 100%;
    background: #0b1220;
    padding: 3vh 3vw;
}

/* ============================================================
   SEO içerik bölümü
   ============================================================ */
.ecat-seo {
    padding: 56px 0 72px;
    background: #fff;
}
.ecat-prose {
    max-width: 840px;
    margin: 0 auto;
    color: #334155;
    font-size: 16px;
    line-height: 1.75;
}
.ecat-prose h2 {
    margin: 38px 0 14px;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--blue, #0f2e57);
    line-height: 1.2;
}
.ecat-prose h2:first-child { margin-top: 0; }
.ecat-prose h3 {
    margin: 24px 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2d44;
}
.ecat-prose p { margin: 0 0 16px; }
.ecat-prose a {
    color: #1f57a8;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(31, 87, 168, .3);
    transition: border-color .15s ease;
}
.ecat-prose a:hover { border-bottom-color: #1f57a8; }

/* Tablo */
.ecat-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 24px;
    font-size: 15px;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    overflow: hidden;
}
.ecat-table thead th {
    text-align: left;
    background: #f3f6fa;
    color: var(--blue, #0f2e57);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 12px 14px;
    border-bottom: 1px solid #e6ebf2;
}
.ecat-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}
.ecat-table tbody tr:last-child td { border-bottom: none; }
.ecat-table tbody tr:hover { background: #f8fafc; }
.ecat-table td a { white-space: nowrap; }

/* Listeler */
.ecat-checks,
.ecat-steps {
    margin: 8px 0 20px;
    padding: 0;
    list-style: none;
}
.ecat-checks li,
.ecat-steps li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}
.ecat-checks li::before {
    content: "\f00c"; /* fa-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #16a34a;
    font-size: 14px;
}
.ecat-steps { counter-reset: ecatstep; }
.ecat-steps li { counter-increment: ecatstep; }
.ecat-steps li::before {
    content: counter(ecatstep);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue, #0f2e57);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

/* CTA */
.ecat-cta {
    margin-top: 36px;
    text-align: center;
}
.ecat-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--blue, #0f2e57);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: none !important;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    box-shadow: 0 10px 24px rgba(15, 46, 87, .22);
}
.ecat-cta-btn:hover {
    transform: translateY(-2px);
    background: #143a6d;
    box-shadow: 0 16px 32px rgba(15, 46, 87, .28);
}
.ecat-cta-btn i { transition: transform .2s ease; }
.ecat-cta-btn:hover i { transform: translateX(4px); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .ecat { padding: 32px 0 40px; }
    .flip-controls { gap: 8px; }
    .flip-btn-wide span { display: none; }
    .ecat-table { font-size: 14px; }
    .ecat-table thead { display: none; }
    .ecat-table tbody td { display: block; border: none; padding: 4px 14px; }
    .ecat-table tbody tr {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eef2f7;
    }
    .ecat-table tbody td:first-child { font-weight: 700; color: var(--blue, #0f2e57); }
}
