/**
 * Esmerimsi Ana Sayfa — vitrin kartları (page-ozel-anasayfa + shortcode vitrinleri)
 * Tek açık zemin (#f4f4f2) + beyaz kart yüzeyleri; koyu header ile uyumlu.
 */

/* —— Ana sayfa: birleşik açık tema —— */
body.esmer-home-page main.esmer-main {
    background: var(--esmer-home-canvas, #f4f4f2);
    color: var(--esmer-ink, #1a1a22);
}

.esmer-home-wrapper,
.esmer-home-wrapper .esmer-section,
.esmer-home-wrapper .esmer-home-block,
.esmer-home-wrapper .esmer-home-panel,
.esmer-home-wrapper .esmer-atlas-wrapper,
.esmer-home-wrapper .esmer-content-area,
.esmer-home-wrapper .esmer-sidebar,
.esmer-home-wrapper .esmer-main-container {
    background: transparent;
}

.esmer-home-wrapper .esmer-card {
    background: var(--esmer-home-surface, #fff);
    border-color: var(--esmer-border, #e8e4dc);
    color: var(--esmer-ink, #1a1a22);
}

.esmer-home-wrapper .esmer-card .compact-item,
.esmer-home-wrapper .esmer-card .top-item {
    background: var(--esmer-home-surface-muted, #faf9f6);
    border-color: var(--esmer-border, #e8e4dc);
}

.esmer-home-wrapper .esmer-card .compact-item--cinema {
    background: var(--esmer-home-surface-muted, #faf9f6);
    border-color: var(--esmer-border, #e8e4dc);
}

.esmer-home-wrapper .esmer-card .compact-item--cinema .c-score {
    color: var(--esmer-gold, #ffba00);
}

.esmer-home-wrapper .esmer-card .compact-item:hover,
.esmer-home-wrapper .esmer-card .top-item:hover {
    background: #fff;
}

.esmer-home-wrapper .welcome-text {
    color: var(--esmer-ink, #1a1a22);
}

.esmer-home-wrapper .c-info h4 a {
    color: var(--esmer-ink, #1a1a22);
}

.esmer-home-wrapper .c-author {
    color: #666;
}

.esmer-home-wrapper .top-item,
.esmer-home-wrapper .rank-title {
    color: var(--esmer-ink-soft, #2c3e50);
}

.esmer-home-wrapper .mini-col-tag {
    background: var(--esmer-home-surface-muted, #faf9f6);
    color: var(--esmer-ink-soft, #2c3e50);
    border-color: var(--esmer-border, #e8e4dc);
}

.esmer-home-wrapper .esmer-compare-cta {
    background: var(--esmer-home-surface, #fff);
    border: 1px solid var(--esmer-border, #e8e4dc);
    color: var(--esmer-ink, #1a1a22);
    box-shadow: var(--esmer-shadow-sm, 0 4px 16px rgba(26, 26, 34, 0.06));
}

.esmer-home-wrapper .esmer-compare-cta:hover {
    border-color: var(--esmer-gold, #ffba00);
    box-shadow: var(--esmer-shadow, 0 12px 40px rgba(26, 26, 34, 0.08));
}

.esmer-home-wrapper .esmer-compare-cta .compare-texts h4 {
    color: var(--esmer-gold-dark, #c99200);
}

.esmer-home-wrapper .esmer-compare-cta .compare-texts p {
    color: #666;
}

.esmer-home-wrapper .esmer-compare-cta .compare-arrow {
    color: var(--esmer-gold-dark, #c99200);
}

.esmer-home-wrapper .esmer-atlas-wrapper {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--esmer-border, #e8e4dc);
}

.esmer-home-wrapper .esmer-atlas-empty {
    text-align: center;
    grid-column: 1 / -1;
    color: #666;
    margin: 0;
}

.esmer-home-wrapper .esmer-front-card {
    background: var(--esmer-home-surface, #fff);
}

.esmer-home-block--context {
    margin-top: 30px;
}

/* —— Layout —— */
.esmer-home-wrapper {
    max-width: var(--esmer-max, 1200px);
    margin: 40px auto;
    padding: 0 20px;
    font-family: var(--esmer-font-body, 'Manrope', sans-serif);
}

.esmer-main-container {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.esmer-content-area {
    flex: 2;
    min-width: 0;
}

.esmer-sidebar {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 900px) {
    .esmer-main-container {
        flex-direction: column;
    }

    .esmer-sidebar {
        min-width: 0;
    }
}

.esmer-welcome-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid var(--esmer-border, #eee);
    margin-bottom: 20px;
}

.welcome-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--esmer-ink, #1a1a22);
}

.welcome-icon {
    font-size: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

/* —— Bölüm blokları (kart içinde liste/grid) —— */
.esmer-home-block {
    margin-top: 40px;
}

.esmer-home-block:first-of-type {
    margin-top: 0;
}

.esmer-home-block .esmer-section-head,
.esmer-home-block .section-title {
    margin-bottom: 18px;
}

.esmer-home-block > .esmer-card {
    margin-top: 0;
}

/* Eski section-title ile design-system uyumu */
.esmer-home-wrapper .section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.esmer-home-wrapper .section-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    font-family: var(--esmer-font-display, 'Cinzel', serif);
    color: var(--esmer-ink, #1a1a22);
}

.esmer-home-wrapper .title-line {
    flex: 1;
    height: 2px;
    background: var(--esmer-border, #eee);
}

/* —— Yan panel vitrin kutuları —— */
.esmer-home-panel {
    margin-bottom: 28px;
}

.esmer-home-panel-head,
.esmer-home-panel .widget-title {
    font-size: 16px;
    font-weight: 900;
    border-left: 4px solid var(--esmer-gold, #ffba00);
    padding-left: 10px;
    margin: 0 0 14px;
    font-family: var(--esmer-font-display, 'Cinzel', serif);
    color: var(--esmer-ink, #1a1a22);
}

.esmer-home-panel > .esmer-card {
    margin-top: 0;
}

.esmer-home-panel--quote > .esmer-card {
    border-left: 4px solid var(--esmer-gold, #ffba00);
}

/* —— Hero —— */
.esmer-hero-card {
    position: relative;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--esmer-shadow, 0 20px 40px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s ease;
    background: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, #1e293b 0%, #0f172a 45%, #000 100%);
    opacity: 0.85;
}

@media (min-width: 1024px) {
    .hero-bg {
        background: radial-gradient(ellipse at 20% 50%, rgba(30, 41, 59, 0.9) 0%, #000 70%);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #000 40%, transparent 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 40px;
    gap: 30px;
}

.hero-poster {
    flex: 0 0 180px;
    height: 270px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text-content {
    flex: 1;
    color: #fff;
}

.badge-new {
    background: var(--esmer-gold, #ffba00);
    color: #000;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-text-content h2 {
    margin: 10px 0;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text-content h2 a {
    color: #fff;
    text-decoration: none;
}

.hero-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.hero-btn {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    margin-top: 15px;
}

.hero-btn:hover {
    background: var(--esmer-gold, #ffba00);
}

/* —— Eserin bağlamı —— */
.curator-context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px;
}

.context-item {
    position: relative;
    height: 160px;
    border-radius: var(--esmer-radius, 12px);
    background-color: #0f172a;
    display: block;
    text-decoration: none !important;
    overflow: hidden;
    isolation: isolate;
    clip-path: inset(0 round var(--esmer-radius, 12px));
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--esmer-shadow-sm, 0 10px 20px rgba(0, 0, 0, 0.1));
}

.context-item__media {
    position: absolute;
    inset: 0 0 54px;
    overflow: hidden;
    z-index: 0;
    border-radius: var(--esmer-radius, 12px) var(--esmer-radius, 12px) 0 0;
    background: #0f172a;
}

.context-item-img-main {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center top;
}

.context-content-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 58%, rgba(0, 0, 0, 0) 100%);
}

.context-item.tip-kitaplar .context-item__media {
    inset: 0 0 54px;
    background: #111;
}

.context-item.tip-kitaplar .context-item-img-main {
    object-fit: cover;
    object-position: center center;
    padding: 0;
    box-sizing: border-box;
}

.context-item.tip-yazarlar .context-item-img-main,
.context-item.tip-karakterler .context-item-img-main {
    object-fit: cover;
    object-position: center 22%;
}

.context-item.tip-tarih-sinema .context-item-img-main {
    object-fit: cover;
    object-position: center center;
}

.context-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.context-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    align-self: flex-start;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.context-item h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* —— Kompakt listeler (son eklenen) —— */
.esmer-compact-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.compact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--esmer-paper, #f7f6f3);
    padding: 12px;
    border: 1px solid var(--esmer-border, #f0f0f0);
    border-radius: var(--esmer-radius, 12px);
    transition: 0.2s;
}

.compact-item:hover {
    border-color: var(--esmer-gold, #ffba00);
    box-shadow: var(--esmer-shadow-sm, 0 5px 15px rgba(0, 0, 0, 0.06));
    transform: translateY(-2px);
}

.compact-item--cinema {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.compact-item--cinema .c-score {
    color: #111;
}

.compact-item--cinema .c-thumb {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.c-thumb img {
    width: 50px;
    height: 75px;
    border-radius: 6px;
    object-fit: cover;
}

.c-info {
    flex: 1;
    min-width: 0;
}

.c-info h4 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.c-info h4 a {
    color: #222;
    text-decoration: none;
}

.c-author {
    font-size: 11px;
    color: #888;
}

.c-score {
    display: block;
    font-weight: 900;
    color: var(--esmer-gold, #ffba00);
    font-size: 15px;
    text-align: right;
}

/* —— Paylaşılabilir alıntı —— */
.esmer-home-quote,
.esmer-home-panel .esmer-home-quote {
    position: relative;
    text-align: center;
    margin: 0;
}

/* [esmer_paylasilabilir_alinti] iç yapı (sınıf migrasyonu öncesi) */
.esmer-home-quote > div:first-of-type {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
    z-index: 2;
    line-height: 1;
}

.esmer-home-quote > div:nth-of-type(2) {
    font-family: var(--esmer-font-read, 'Lora', Georgia, serif);
    font-style: italic;
    font-size: 16px;
    line-height: 1.7;
    color: var(--esmer-ink-soft, #2c3e50);
    margin: 0 0 20px;
}

.esmer-home-quote > div:nth-of-type(2) span {
    color: var(--esmer-gold, #ffba00);
    font-size: 24px;
}

.esmer-home-quote > div:nth-of-type(3) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.esmer-home-quote > div:nth-of-type(3) img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--esmer-border, #eee);
}

.esmer-home-quote > div:nth-of-type(4) {
    text-align: right;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--esmer-border, #eee);
    padding-bottom: 15px;
}

.esmer-home-quote > div:nth-of-type(4) a {
    font-size: 11px;
    color: var(--esmer-gold, #ffba00);
    text-decoration: none;
    font-weight: 800;
}

.esmer-home-quote > div:nth-of-type(5) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.esmer-home-quote > div:nth-of-type(5) a,
.esmer-home-quote > div:nth-of-type(5) button {
    text-decoration: none;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.esmer-home-quote > div:nth-of-type(5) a:first-child {
    background: #25d366;
    color: #fff;
}

.esmer-home-quote > div:nth-of-type(5) a:nth-child(2) {
    background: #111;
    color: #fff;
}

.esmer-home-quote > div:nth-of-type(5) button {
    background: var(--esmer-gold, #ffba00);
    color: #111;
}

.esmer-home-quote-pin {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
    z-index: 2;
    line-height: 1;
}

.esmer-home-quote-text {
    font-family: var(--esmer-font-read, 'Lora', Georgia, serif);
    font-style: italic;
    font-size: 16px;
    line-height: 1.7;
    color: var(--esmer-ink-soft, #2c3e50);
    margin: 0 0 20px;
}

.esmer-home-quote-mark {
    color: var(--esmer-gold, #ffba00);
    font-size: 24px;
}

.esmer-home-quote-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.esmer-home-quote-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--esmer-border, #eee);
}

.esmer-home-quote-speaker {
    text-align: left;
    line-height: 1.2;
}

.esmer-home-quote-speaker strong {
    font-weight: 800;
    color: var(--esmer-ink, #111);
    font-size: 12px;
    display: block;
    text-transform: uppercase;
}

.esmer-home-quote-speaker span {
    font-size: 11px;
    color: #999;
}

.esmer-home-quote-book-link {
    text-align: right;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--esmer-border, #eee);
    padding-bottom: 15px;
}

.esmer-home-quote-book-link a {
    font-size: 11px;
    color: var(--esmer-gold, #ffba00);
    text-decoration: none;
    font-weight: 800;
}

.esmer-home-quote-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.esmer-home-quote-share a,
.esmer-home-quote-share button {
    text-decoration: none;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.esmer-home-quote-share .share-wa {
    background: #25d366;
    color: #fff;
}

.esmer-home-quote-share .share-x {
    background: #111;
    color: #fff;
}

.esmer-home-quote-share .share-copy {
    background: var(--esmer-gold, #ffba00);
    color: #111;
}

/* gunun_alintisi shortcode */
.esmer-homepage-quote {
    text-align: center;
    margin: 0;
}

.esmer-homepage-quote-mark {
    font-size: 50px;
    color: var(--esmer-gold, #ffba00);
    display: block;
    margin-bottom: 20px;
    line-height: 1;
}

.esmer-homepage-quote-body {
    font-size: 20px;
    line-height: 1.8;
    color: var(--esmer-ink-soft, #333);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 30px;
    font-family: var(--esmer-font-read, 'Lora', serif);
}

.esmer-homepage-quote-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    border-top: 1px solid var(--esmer-border, #f0f0f0);
    padding-top: 20px;
}

.esmer-homepage-quote-footer a {
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.esmer-homepage-quote-footer .quote-author {
    color: var(--esmer-ink, #111);
    text-transform: uppercase;
}

.esmer-homepage-quote-footer .quote-book {
    color: var(--esmer-gold, #ffba00);
}

.esmer-homepage-quote-footer .quote-sep {
    color: #ccc;
}

/* —— Koleksiyon etiketleri —— */
.esmer-home-chip-grid,
.mini-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-col-tag {
    background: var(--esmer-paper, #f7f6f3);
    border: 1px solid var(--esmer-border, #eee);
    padding: 8px 14px;
    border-radius: var(--esmer-radius-pill, 999px);
    font-size: 12px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.mini-col-tag:hover {
    background: var(--esmer-gold, #ffba00);
    color: #111;
    border-color: var(--esmer-gold, #ffba00);
    box-shadow: 0 4px 12px rgba(255, 186, 0, 0.25);
    transform: translateY(-1px);
}

.mini-col-tag .count {
    opacity: 0.55;
    font-size: 10px;
    margin-left: 4px;
}

/* —— En iyiler listesi —— */
.esmer-home-ranked,
.top-rated-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--esmer-paper, #f7f6f3);
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    border: 1px solid var(--esmer-border, #eee);
    transition: 0.2s;
}

.top-item:hover {
    border-color: var(--esmer-gold, #ffba00);
    background: #fff;
    box-shadow: var(--esmer-shadow-sm, 0 4px 14px rgba(0, 0, 0, 0.06));
    transform: translateX(3px);
}

.rank-score {
    font-weight: 800;
    font-size: 13px;
    color: var(--esmer-gold, #ffba00);
    min-width: 48px;
    flex-shrink: 0;
}

.rank-title {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
}

.top-item.is-cinema {
    border-left: 3px solid #0f172a;
}

.top-item.is-cinema .rank-score {
    color: #0f172a;
}

/* —— Arena CTA —— */
.esmer-compare-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #111, #333);
    padding: 20px;
    border-radius: var(--esmer-radius, 12px);
    text-decoration: none !important;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.esmer-compare-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.compare-icon {
    font-size: 32px;
}

.compare-texts {
    flex: 1;
}

.compare-texts h4 {
    color: var(--esmer-gold, #ffba00);
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-texts p {
    color: #ccc;
    font-size: 12px;
    margin: 0;
    line-height: 1.3;
}

.compare-arrow {
    font-size: 20px;
    color: var(--esmer-gold, #ffba00);
    font-weight: bold;
}

/* —— Kültür Atlası (içerik kutuları koyu; bölüm zeminı açık) —— */

.esmer-atlas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 150px;
    gap: 15px;
}

.atlas-item {
    position: relative;
    border-radius: var(--esmer-radius, 12px);
    background-color: #0f172a;
    display: block;
    text-decoration: none !important;
    overflow: hidden;
    isolation: isolate;
    clip-path: inset(0 round var(--esmer-radius, 12px));
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.atlas-item__media {
    position: absolute;
    overflow: hidden;
    z-index: 0;
    border-radius: var(--esmer-radius, 12px) var(--esmer-radius, 12px) 0 0;
    background: #0f172a;
}

.atlas-item-img-main {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center center;
}

.atlas-item-large .atlas-item__media {
    top: 0;
    right: 0;
    bottom: 0;
    left: 38%;
}

.atlas-item-large .atlas-item-img-main {
    object-fit: contain;
    object-position: right center;
    padding: 14px 12px;
    box-sizing: border-box;
}

.atlas-item-standard .atlas-item__media {
    top: 0;
    right: 0;
    left: 0;
    bottom: 42%;
}

.atlas-item-standard .atlas-item-img-main {
    object-fit: cover;
    object-position: center center;
}

.atlas-item:hover {
    transform: translateY(-4px) scale(1.01);
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.atlas-content-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 40%, rgba(15, 23, 42, 0.1) 100%);
    pointer-events: none;
}

.atlas-content-overlay .atlas-text-wrap {
    pointer-events: auto;
}

.atlas-text-wrap {
    max-width: 60%;
}

.atlas-meta {
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 8px;
    font-weight: 500;
}

.atlas-meta i {
    color: var(--esmer-gold, #ffba00);
    margin-right: 5px;
}

.atlas-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.atlas-item-standard {
    grid-column: span 1;
    grid-row: span 1;
}

.atlas-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.atlas-title {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.atlas-item-standard .atlas-content-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.82) 55%, rgba(15, 23, 42, 0) 100%);
    justify-content: flex-end;
    padding: 16px 18px;
}

.atlas-item-standard .atlas-text-wrap {
    max-width: 100%;
}

.atlas-item-standard .atlas-title {
    font-size: 16px;
}

.tip-tarih-ulke.atlas-item-standard .atlas-item__media {
    bottom: 40%;
}

.tip-tarih-ulke .atlas-item-img-main {
    object-fit: contain;
    object-position: center center;
    padding: 8px 10px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.35);
}

.tip-tarih-kisi.atlas-item-standard .atlas-item__media,
.tip-karakterler.atlas-item-standard .atlas-item__media {
    bottom: 44%;
}

.tip-tarih-kisi .atlas-item-img-main,
.tip-karakterler .atlas-item-img-main {
    object-fit: cover;
    object-position: center 12%;
}

.tip-kitaplar.atlas-item-standard .atlas-item__media {
    bottom: 46%;
}

.tip-kitaplar .atlas-item-img-main {
    object-fit: contain;
    object-position: center bottom;
    padding: 8px 10px 4px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .esmer-atlas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .atlas-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .esmer-atlas-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }

    .atlas-item-large,
    .atlas-item-standard {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero-inner {
        flex-direction: column;
        padding: 24px;
        justify-content: center;
        text-align: center;
    }

    .esmer-hero-card {
        height: auto;
        min-height: 420px;
    }
}

/* —— Shortcode vitrin grid (editorun_secimi vb.) —— */
.esmer-front-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 22px;
}

.esmer-front-card {
    background: var(--esmer-paper-card, #fff);
    border: 1px solid var(--esmer-border, #e8e4dc);
    border-radius: var(--esmer-radius, 14px);
    overflow: hidden;
    box-shadow: var(--esmer-shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.esmer-front-card:hover {
    transform: translateY(-4px);
    border-color: var(--esmer-gold, #ffba00);
    box-shadow: var(--esmer-shadow, 0 12px 40px rgba(26, 26, 34, 0.1));
}

.esmer-front-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.esmer-front-img-box {
    position: relative;
    height: 220px;
    background: var(--esmer-paper, #f7f6f3);
    overflow: hidden;
}

.esmer-card-img-fix {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esmer-rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--esmer-gold, #ffba00);
    padding: 4px 10px;
    border-radius: var(--esmer-radius-pill, 999px);
    font-size: 12px;
    font-weight: 800;
}

.esmer-front-title {
    margin: 12px 14px 6px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--esmer-ink, #1a1a22);
}

.esmer-front-author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px 14px;
    font-size: 12px;
    color: #777;
}

.esmer-mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
