/* =========================================================
   Themis Hukuk Dergisi — dergi.html
   Sayfa: Hakkımızda tasarım sistemi (css/hakkimizda.css) + ortak bileşenler (css/ag-ortak.css)
   Bu dosya: dergiye özgü bölümler + flipbook okuyucu
   ========================================================= */

/* ---------- Hero ---------- */
.jr-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
    align-items: center;
}

.jr-hero-title {
    font-size: clamp(40px, 5.2vw, 76px);
}

.jr-hero .ab-hero-lead {
    max-width: 540px;
}

.jr-rings {
    transform-origin: 900px 380px;
}

.jr-stats {
    margin: 48px 0 0;
}

.jr-stats div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jr-stats dt {
    font-family: var(--ab-display);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.jr-stats dd {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.jr-hero-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.jr-cover-stage {
    width: min(100%, 340px);
    perspective: 1400px;
}

.jr-cover {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 6px 14px 14px 6px;
    background: none;
    cursor: pointer;
    box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: rotateY(-14deg) rotateX(4deg);
    transform-style: preserve-3d;
    transition: transform 0.8s var(--ab-ease), box-shadow 0.8s var(--ab-ease);
}

.jr-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 14px;
    border-radius: 6px 0 0 6px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.12) 60%, transparent);
    pointer-events: none;
}

.jr-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

.jr-cover:hover,
.jr-cover:focus-visible {
    outline: none;
    box-shadow: 0 60px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.5);
    transform: rotateY(-4deg) rotateX(2deg) translateY(-6px);
}

.jr-cover-hint {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(2, 16, 42, 0.86);
    font-family: var(--ab-sans);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity 0.3s ease, transform 0.4s var(--ab-ease);
    backdrop-filter: blur(6px);
}

.jr-cover-hint .ms {
    font-size: 18px;
}

.jr-cover:hover .jr-cover-hint,
.jr-cover:focus-visible .jr-cover-hint,
.jr-issue-cover:hover .jr-cover-hint,
.jr-card-cover:hover .jr-cover-hint {
    opacity: 1;
    transform: translate(-50%, 0);
}

.jr-issue-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.jr-issue-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.jr-issue-meta .ms {
    font-size: 18px;
    color: #ffffff;
}

/* ---------- Bu sayıda ---------- */
.jr-issue-theme {
    margin: 14px 0 0;
    font-family: var(--ab-display);
    font-size: 20px;
    font-weight: 500;
    color: #6b7383;
}

.jr-issue-summary {
    max-width: 440px;
    margin: 0;
}

.jr-issue-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.jr-issue-card {
    position: sticky;
    top: calc(var(--thb-header-h, 62px) + 32px);
}

.jr-issue-cover {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: var(--ab-soft);
    cursor: pointer;
    box-shadow: 0 30px 60px -32px rgba(2, 16, 42, 0.55);
    transition: transform 0.6s var(--ab-ease), box-shadow 0.6s var(--ab-ease);
}

.jr-issue-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.jr-issue-cover:hover {
    box-shadow: 0 40px 70px -32px rgba(2, 16, 42, 0.6);
    transform: translateY(-6px);
}

.jr-issue-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.jr-issue-actions .ag-btn {
    width: 100%;
}

/* Makaleler */
.jr-articles {
    display: grid;
    border-top: 1px solid var(--ab-line);
}

.jr-article {
    padding: 30px 0;
    border-bottom: 1px solid var(--ab-line);
}

.jr-article-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.jr-article-no {
    font-family: var(--ab-display);
    font-size: 13px;
    font-weight: 600;
    color: #b4bac5;
}

.jr-tag {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--ab-soft);
    font-size: 12px;
    font-weight: 600;
    color: var(--ab-navy);
}

.jr-article-pages {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 12.5px;
    color: var(--ab-muted);
}

.jr-article-pages .ms {
    font-size: 16px;
}

.jr-article h3 {
    margin: 14px 0 0;
    font-family: var(--ab-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.jr-article h3 button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--ab-navy);
    text-align: left;
    cursor: pointer;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.5s var(--ab-ease);
}

.jr-article h3 button:hover {
    background-size: 100% 1px;
}

.jr-article-abs {
    display: -webkit-box;
    margin: 12px 0 0;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ab-text);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.jr-article.is-open .jr-article-abs {
    display: block;
}

.jr-article-more {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ab-ease);
}

.jr-article-more > div {
    overflow: hidden;
}

.jr-article.is-open .jr-article-more {
    grid-template-rows: 1fr;
}

.jr-keywords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 14px;
}

.jr-keywords b {
    margin-right: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ab-muted);
}

.jr-keywords span {
    padding: 4px 10px;
    border: 1px solid var(--ab-line);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--ab-text);
}

.jr-authors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 18px;
}

.jr-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jr-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ab-navy);
    font-size: 11.5px;
    font-weight: 600;
    color: #ffffff;
}

.jr-author strong {
    display: block;
    font-size: 14px;
    color: var(--ab-navy);
}

.jr-author small {
    font-size: 12.5px;
    color: var(--ab-muted);
}

.jr-article-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.jr-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--ab-sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ab-navy);
    cursor: pointer;
}

.jr-toggle .ms {
    font-size: 20px;
    transition: transform 0.35s var(--ab-ease);
}

.jr-article.is-open .jr-toggle .ms {
    transform: rotate(180deg);
}

.jr-article-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jr-icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ab-line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ab-navy);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.jr-icon-btn .ms {
    font-size: 19px;
}

.jr-icon-btn:hover {
    border-color: var(--ab-navy);
}

.jr-icon-btn.is-done {
    border-color: #2f7d4f;
    background: #e9f6ee;
    color: #2f7d4f;
}

.jr-icon-btn[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--ab-navy);
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.jr-icon-btn[data-tip]:hover::after,
.jr-icon-btn.is-done::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- Arşiv ---------- */
.jr-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: #ffffff;
}

.jr-chip {
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: none;
    font-family: var(--ab-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--ab-muted);
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.jr-chip.is-active {
    background: var(--ab-navy);
    color: #ffffff;
}

.jr-archive {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.jr-card {
    display: flex;
    flex-direction: column;
}

.jr-card-cover {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #e8ebf0;
    cursor: pointer;
    box-shadow: 0 24px 40px -28px rgba(2, 16, 42, 0.55);
    transition: transform 0.6s var(--ab-ease), box-shadow 0.6s var(--ab-ease);
}

.jr-card-cover img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.9s var(--ab-ease);
}

.jr-card-cover:hover {
    box-shadow: 0 36px 56px -30px rgba(2, 16, 42, 0.6);
    transform: translateY(-8px);
}

.jr-card-cover:hover img {
    transform: scale(1.04);
}

.jr-card-label {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: 999px;
    background: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ab-navy);
}

.jr-card-body {
    padding: 18px 2px 0;
}

.jr-card-meta {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7383;
}

.jr-card h3 {
    margin: 8px 0 0;
    font-family: var(--ab-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ab-navy);
}

.jr-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--ab-muted);
}

/* ---------- Dergi hakkında ---------- */
.jr-about {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: start;
}

.jr-about-head {
    position: sticky;
    top: calc(var(--thb-header-h, 62px) + 40px);
}

.jr-about-text {
    margin: 18px 0 32px;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--ab-text);
}

.jr-principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.jr-principle {
    padding: 28px;
    border: 1px solid var(--ab-line);
    border-radius: 26px;
    background: #ffffff;
    transition: transform 0.5s var(--ab-ease), box-shadow 0.5s var(--ab-ease), border-color 0.3s ease;
}

.jr-principle:hover {
    border-color: #d3d8e0;
    box-shadow: 0 28px 56px -36px rgba(2, 16, 42, 0.4);
    transform: translateY(-5px);
}

.jr-principle:nth-child(2) {
    border-color: transparent;
    background: var(--ab-navy);
}

.jr-principle-ic {
    display: grid !important;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--ab-soft);
    font-size: 25px !important;
    color: var(--ab-navy);
    transition: transform 0.5s var(--ab-ease), background 0.3s ease, color 0.3s ease;
}

.jr-principle:hover .jr-principle-ic {
    background: #ffffff;
    box-shadow: 0 0 0 1px #e4e7ec;
    color: var(--ab-navy);
    transform: rotate(-6deg);
}

.jr-principle h3 {
    margin: 30px 0 8px;
    font-family: var(--ab-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--ab-navy);
}

.jr-principle p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ab-text);
}

.jr-principle:nth-child(2) .jr-principle-ic {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.jr-principle:nth-child(2) h3 {
    color: #ffffff;
}

.jr-principle:nth-child(2) p {
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- Gönderim ---------- */
.jr-submit-section {
    overflow: clip;
}

.jr-mail {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 10px 18px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    color: #ffffff;
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.jr-mail:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.jr-mail > .ms {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.jr-mail small {
    display: block;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.55);
}

.jr-mail > span:last-child {
    font-size: 14.5px;
    font-weight: 600;
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
    .jr-hero-grid,
    .jr-about {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .jr-hero-side {
        order: -1;
    }

    .jr-cover-stage {
        width: min(100%, 240px);
    }

    .jr-archive {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .jr-about-head {
        position: static;
    }
}

@media (max-width: 900px) {
    .jr-issue-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .jr-issue-card {
        position: static;
        display: grid;
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 18px;
        align-items: end;
    }

    .jr-issue-actions {
        grid-template-columns: minmax(0, 1fr);
        margin: 0;
    }
}

@media (max-width: 768px) {
    .jr-hero-side {
        order: 0;
    }

    .jr-cover-stage {
        width: min(70%, 220px);
    }

    .jr-cover {
        transform: none;
    }

    .jr-stats dt {
        font-size: 24px;
    }

    .jr-archive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .jr-principles {
        grid-template-columns: minmax(0, 1fr);
    }

    .jr-article h3 {
        font-size: 18px;
    }

    .jr-article-pages {
        margin-left: 0;
    }

    .jr-chips {
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jr-cover,
    .jr-card-cover,
    .jr-article-more {
        transition: none;
    }
}

/* ---------- Okuyucu temel ayarları ---------- */
.fb {
    --jr-navy: #02102a;
}

.fb * {
    box-sizing: border-box;
}

.fb .ms {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

/* =========================================================
   Flipbook okuyucu
   ========================================================= */
.fb {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    background: #0b1222;
    color: #fff;
    font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    animation: fbIn 0.3s ease;
}

@keyframes fbIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 64px;
    padding: 0 16px;
    background: var(--jr-navy, #02102a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fb-title img {
    flex: none;
    width: 30px;
    height: 42px;
    border-radius: 2px;
    object-fit: cover;
}

.fb-title strong {
    display: block;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fb-title span {
    display: block;
    overflow: hidden;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.56);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fb-title > div {
    min-width: 0;
}

.fb-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    min-width: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.fb-btn:hover,
.fb-btn.is-on {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.fb-btn:disabled {
    opacity: 0.3;
    cursor: default;
    background: transparent;
}

.fb-btn .ms {
    font-size: 22px;
}

.fb-btn-gold {
    background: #ffffff;
    color: #02102a;
}

.fb-btn-gold:hover {
    background: #d8b673;
    color: #02102a;
}

.fb-body {
    position: relative;
    display: flex;
    flex: 1;
    min-height: 0;
}

.fb-panel {
    display: flex;
    flex-direction: column;
    flex: none;
    width: 0;
    overflow: hidden;
    background: #0f182b;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: width 0.3s ease;
}

.fb.panel-open .fb-panel {
    width: 320px;
}

.fb-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 14px 14px 6px;
    padding: 4px;
    min-width: 280px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.fb-tab {
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.fb-tab.is-active {
    background: #fff;
    color: #02102a;
}

.fb-pane {
    flex: 1;
    min-width: 320px;
    overflow-y: auto;
    padding: 8px 14px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.fb-toc-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    width: 100%;
    margin-bottom: 6px;
    padding: 13px 14px 13px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.fb-toc-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fb-toc-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.fb-toc-item.is-current {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.fb-toc-item.is-current::before {
    opacity: 1;
}

.fb-toc-item strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.005em;
}

.fb-toc-item small {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.fb-toc-item em {
    min-width: 26px;
    padding: 3px 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
}

.fb-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
}

.fb-thumb {
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.fb-thumb canvas {
    display: block;
    width: 100%;
    aspect-ratio: 170 / 240;
    margin-bottom: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: outline-color 0.2s ease;
}

.fb-thumb:hover canvas {
    outline-color: rgba(255, 255, 255, 0.3);
}

.fb-thumb.is-current {
    color: #ffffff;
}

.fb-thumb.is-current canvas {
    outline-color: #ffffff;
}

.fb-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding: 28px 72px;
    background: radial-gradient(ellipse at center, #1a2640 0%, #0b1222 70%);
}

.fb-book-wrap {
    position: relative;
}

.fb-page {
    background: #fff;
    overflow: hidden;
}

.fb-page img {
    display: block;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

.fb-page img:not([src]) {
    visibility: hidden;
}

.fb-page::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fb-page.--left::after {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.16), transparent 7%);
}

.fb-page.--right::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 7%);
}

.fb-page.is-loading {
    background: #f2f3f6;
}

.fb-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 56px;
    height: 120px;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.fb-arrow:hover {
    color: #fff;
}

.fb-prev:hover {
    transform: translate(-3px, -50%);
}

.fb-next:hover {
    transform: translate(3px, -50%);
}

.fb-arrow:focus-visible {
    outline: 2px solid #7f9ccc;
    outline-offset: -6px;
    border-radius: 10px;
}

.fb-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.fb-arrow .ms {
    font-size: 54px;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.fb-prev {
    left: 8px;
}

.fb-next {
    right: 8px;
}

.fb-loader {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.fb-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: fbSpin 0.8s linear infinite;
}

@keyframes fbSpin {
    to { transform: rotate(360deg); }
}

/* Alt kontrol çubuğu — sade, ince ikonlar */
.fb-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 56px;
    padding: 0 14px;
    background: var(--jr-navy, #02102a);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fb-nav-side {
    display: flex;
    align-items: center;
    flex: none;
    gap: 2px;
}

.fb-ic {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.fb-ic:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.fb-ic:disabled {
    color: rgba(255, 255, 255, 0.25);
    background: none;
    cursor: default;
}

.fb-ic .ms {
    font-size: 23px;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.fb-pagecount {
    min-width: 72px;
    margin-left: 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* İlerleme çubuğu + sayfa önizleme */
.fb-track {
    --p: 0%;
    position: relative;
    flex: 1;
    min-width: 0;
    height: 24px;
    cursor: pointer;
    touch-action: none;
}

.fb-track-rail {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%);
}

.fb-track-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--p);
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.85);
    transition: width 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.fb-track-knob {
    position: absolute;
    top: 50%;
    left: var(--p);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: left 1s cubic-bezier(0.65, 0, 0.35, 1), transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease;
}

.fb-track:hover .fb-track-knob,
.fb-track.is-dragging .fb-track-knob {
    transform: translate(-50%, -50%) scale(1.15);
}

.fb-track.is-dragging .fb-track-fill,
.fb-track.is-dragging .fb-track-knob {
    transition-property: transform;
}

.fb-range {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.fb-range:focus-visible ~ .fb-track-knob {
    box-shadow: 0 0 0 3px #ffffff;
}

.fb-preview {
    position: absolute;
    bottom: calc(100% + 14px);
    left: var(--x, 50%);
    z-index: 30;
    padding: 4px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.fb-preview.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fb-preview-pages {
    display: flex;
    height: 132px;
}

.fb-preview-pages img,
.fb-preview-pages i {
    display: block;
    width: 94px;
    height: 132px;
    object-fit: cover;
    background: #eceef2;
}

.fb-preview-label {
    position: absolute;
    left: 50%;
    bottom: 12px;
    padding: 2px 9px;
    border-radius: 5px;
    background: rgba(40, 44, 52, 0.75);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    transform: translateX(-50%);
}

/* Paylaş menüsü */
.fb-share {
    position: absolute;
    right: 20px;
    bottom: calc(100% + 10px);
    z-index: 20;
    width: 280px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: #121c31;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    animation: fbPop 0.18s ease;
}

@keyframes fbPop {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.fb-share-title {
    margin: 4px 8px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.fb-share-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 6px 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.fb-share-copy span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fb-share-copy button {
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #02102a;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.fb-share-copy button.is-done {
    background: #2e9b62;
    color: #fff;
}

.fb-share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.fb-share-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.fb-share-item i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.fb-share-item .ms {
    font-size: 18px;
}


.fb-error {
    max-width: 360px;
    text-align: center;
    line-height: 1.6;
}

body.fb-lock {
    overflow: hidden;
}


@media (max-width: 900px) {
    .fb.panel-open .fb-panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 8;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 680px) {
    .fb-bar {
        height: 58px;
        padding: 0 8px 0 12px;
    }

    .fb-title img,
    .fb-btn-label {
        display: none;
    }

    .fb-tools {
        gap: 0;
    }

    .fb-stage {
        padding: 14px 10px;
    }

    .fb-arrow {
        display: none;
    }

    .fb.panel-open .fb-panel {
        width: 100%;
    }

    .fb-tabs,
    .fb-pane {
        min-width: 0;
    }

    .fb-nav {
        gap: 10px;
        padding: 0 6px;
    }

    #fbMail {
        display: none;
    }

    .fb-ic {
        width: 36px;
    }

    .fb-pagecount {
        min-width: 0;
        margin-left: 4px;
        font-size: 12.5px;
    }

    .fb-share {
        right: 10px;
        width: min(300px, calc(100vw - 20px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .fb {
        transition: none;
        animation: none;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.fb[hidden],
.fb [hidden] {
    display: none !important;
}

.fb button,
.fb input,
.fb a {
    font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* =========================================================
   Bülten bölümü ve yazım kuralları
   ========================================================= */
/* Bülten bölümü (yazı gönderiminin altında) */
.jr-news-section {
    background: #ffffff;
}

.jr-news {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.jr-news-ic {
    display: grid !important;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 26px;
    border-radius: 19px;
    background: var(--ab-navy);
    font-size: 28px !important;
    color: #ffffff;
}

.jr-news-list {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.jr-news-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--ab-text);
}

.jr-news-list .ms {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--ab-soft);
    font-size: 19px;
    color: var(--ab-navy);
}

.jr-news-card {
    border: 1px solid var(--ab-line);
    box-shadow: 0 40px 80px -50px rgba(2, 16, 42, 0.45);
}

.jr-sub-submit {
    width: 100%;
    margin-top: 6px;
}

/* Yazım kuralları */
.jr-rules {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
}

.jr-rules-head {
    position: sticky;
    top: calc(var(--thb-header-h, 62px) + 32px);
}

.jr-rules-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
}

.jr-rules-nav a {
    padding: 8px 14px;
    border: 1px solid var(--ab-line);
    border-radius: 999px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    color: var(--ab-text);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.jr-rules-nav a:hover {
    border-color: var(--ab-navy);
    color: var(--ab-navy);
}

.jr-rule-list {
    display: grid;
    gap: 14px;
}

.jr-rule {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    padding: 26px 28px;
    border-radius: 26px;
    background: #ffffff;
    scroll-margin-top: calc(var(--thb-header-h, 62px) + 24px);
    transition: box-shadow 0.4s var(--ab-ease), transform 0.4s var(--ab-ease);
}

.jr-rule:hover,
.jr-rule:target {
    box-shadow: 0 26px 52px -36px rgba(2, 16, 42, 0.45);
    transform: translateY(-3px);
}

.jr-rule:target {
    outline: 2px solid #7f9ccc;
}

.jr-rule-no {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--ab-navy);
    font-family: var(--ab-display);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.jr-rule h3 {
    margin: 10px 0 12px;
    font-family: var(--ab-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ab-navy);
}

.jr-rule ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jr-rule li {
    position: relative;
    padding-left: 18px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ab-text);
}

.jr-rule li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #02102a;
}

.jr-rule li strong {
    color: var(--ab-navy);
}

.jr-rules-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    padding: 20px 22px;
    border: 1px dashed #cfd5de;
    border-radius: 22px;
}

.jr-rules-cta > .ms {
    font-size: 26px;
    color: #2f7d4f;
}

.jr-rules-cta p {
    flex: 1;
    min-width: 200px;
    margin: 0;
    font-size: 14.5px;
    color: var(--ab-text);
}

.jr-rules-cta strong {
    color: var(--ab-navy);
}

@media (max-width: 1080px) {
    .jr-rules {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .jr-rules-head {
        position: static;
    }

    .jr-news {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .jr-rule {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 22px;
    }
}

.fb-share-item img.fb-share-logo { width: 30px; height: 30px; border-radius: 8px; }
