/* ========================================
   DDI Akademi - Ana sayfa öğeleri: mektup, dönem defteri, eğitmen rafı,
   nasıl katılırım, Lento TV rafı. Yalnız bu sayfanın sınıfları.
   Serif: Playfair Display (tasarım sistemi başlık yazısı) yalnız vurgu için.
   ======================================== */
:root {
    --paper: #fffdf9;
    --paper-2: #f6efdd;
    --ink: #221c15;
    --ink-2: #6b5f4c;
    --hair: #e6dcc6;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ---- Hero: "Bu dönem" mektubu ---------------------------------------- */
.hero-image { display: flex; }
.hero-letter { position: relative; width: min(420px, 100%); min-height: 300px; margin: 0 auto; }
.letter-envelope {
    position: absolute; left: 6%; right: 6%; bottom: -14px; height: 120px;
    background: linear-gradient(180deg, #ecd98f, #e2c25d);
    border-radius: 10px; box-shadow: 0 14px 30px rgba(34, 28, 21, .14);
}
.letter-envelope::before {
    /* zarf kapağı */
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 60px;
    background: linear-gradient(180deg, #f5d563, #ecd98f);
    clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: .9;
}
.letter-back {
    position: absolute; inset: 12px 0 30px 14px; background: var(--paper-2); border: 1px solid var(--hair);
    border-radius: 6px; transform: rotate(3deg); box-shadow: 0 6px 16px rgba(34, 28, 21, .08);
}
.letter-paper {
    position: relative; z-index: 1; margin: 0 14px 30px 0; padding: 1.5rem 1.5rem 1.4rem;
    background:
        repeating-linear-gradient(180deg, transparent 0 27px, rgba(107, 95, 76, .08) 27px 28px),
        linear-gradient(180deg, var(--paper), #fbf6ea);
    border: 1px solid var(--hair); border-radius: 6px; color: var(--ink);
    box-shadow: 0 16px 36px rgba(34, 28, 21, .14), inset 0 1px 0 #fff;
    transform: translateY(40px) rotate(-2deg); opacity: 0;
    transition: transform .9s cubic-bezier(.22, .9, .26, 1) .2s, opacity .6s ease .2s;
}
.hero-letter.is-in .letter-paper { transform: translateY(0) rotate(-2deg); opacity: 1; }
.hero-letter:hover .letter-paper { transform: translateY(-6px) rotate(-1deg); }
.letter-eyebrow { margin: 0 0 .35rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #8a6a10; }
.letter-title { margin: 0 0 .9rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; font-weight: 600; color: var(--ink); }
.letter-text { margin: 0 0 1rem; font-size: .92rem; line-height: 1.65; color: var(--ink-2); }
.letter-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.letter-link { display: grid; gap: .15rem; padding: .55rem .7rem; border-radius: 8px; background: rgba(255, 255, 255, .55); border: 1px solid var(--hair); color: var(--ink); transition: border-color .2s, transform .2s; }
.letter-link:hover { border-color: #d4a820; transform: translateX(3px); }
.letter-link strong { font-size: 1rem; }
.letter-sub { font-size: .8rem; color: var(--ink-2); }
.letter-pill { justify-self: start; font-size: .68rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: #e8efe0; color: #4b6b3f; }
.letter-pill-yakinda { background: #faedc2; color: #8a6a10; }
.letter-cover { margin: -1.5rem -1.5rem 1rem; height: 150px; overflow: hidden; border-radius: 6px 6px 0 0; border-bottom: 1px solid var(--hair); }
.letter-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: sepia(.12) saturate(1.05); }
.letter-meta { margin: -.4rem 0 .6rem; font-size: .85rem; color: var(--ink-2); }
.letter-actions { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; margin-top: .9rem; }
.letter-actions .btn { padding: .6rem 1rem; font-size: .88rem; }
.letter-cta { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: #8a6a10; font-size: .92rem; }
.letter-cta:hover { color: var(--ink); }
.letter-cta i { font-size: .8rem; transition: transform .2s; }
.letter-cta:hover i { transform: translateX(3px); }

/* ---- Damgalar: mühür gibi basılmış sayılar ------------------------------- */
.hero-stamps { display: flex; flex-wrap: wrap; gap: 1rem .9rem; margin-top: var(--spacing-2xl); }
.stamp {
    position: relative; flex: 1 1 7rem; min-width: 7rem; max-width: 10.5rem; padding: .8rem .7rem .7rem; text-align: center;
    border: 2px solid rgba(184, 146, 15, .6); border-radius: 14px; background: rgba(255, 253, 249, .55);
    box-shadow: inset 0 0 0 3px rgba(255, 253, 249, .9), inset 0 0 0 4px rgba(184, 146, 15, .35);
    color: #8a6a10; transform: rotate(-2.5deg); transition: transform .25s;
    /* mürekkep damgası dokusu: kenarlarda hafif silinme */
    mask-image: radial-gradient(ellipse at center, #000 62%, rgba(0, 0, 0, .78) 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 62%, rgba(0, 0, 0, .78) 100%);
}
.stamp:nth-child(even) { transform: rotate(2deg); }
.stamp:hover { transform: rotate(0) scale(1.04); }
.stamp-num { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; font-weight: 600; letter-spacing: -.01em; }
.stamp-label { display: block; margin-top: .3rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #6b5f4c; }
.stamp-cap { display: block; margin: .15rem auto 0; font-size: .7rem; line-height: 1.3; color: var(--ink-2); font-style: italic; max-width: 8.5rem; }
@media (max-width: 1200px) { .hero-stamps { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .stamp, .stamp:nth-child(even) { transform: none; } }

/* ---- Günün sözü: harf dökümü hissi -------------------------------------- */
.quote-card { height: auto; max-height: none; min-height: 400px; }   /* üç kart aynı boyda */
.quote-card .quote-text { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; line-height: 1.5; }
.quote-card .quote-author { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---- Dönem defteri -------------------------------------------------------- */
.ledger-card { min-height: 400px; display: flex; flex-direction: column; }
.ledger { list-style: none; margin: 0; padding: 0; position: relative; flex: 1; }
/* Üç sütun: tarih | nokta | başlık — nokta kendi sütununda, çizgi o sütunun ortasında */
.ledger::before { content: ''; position: absolute; left: calc(6.4rem + .9rem + .6rem); top: .6rem; bottom: .6rem; border-left: 1px dashed #d3c4a4; }
.ledger-row { display: grid; grid-template-columns: 6.4rem 1.2rem 1fr; column-gap: .9rem; align-items: start; padding: .45rem 0; position: relative; }
.ledger-row::before { content: ''; grid-column: 2; justify-self: center; margin-top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: #d3c4a4; border: 2px solid var(--paper); box-shadow: 0 0 0 1px #d3c4a4; position: relative; z-index: 1; }
.ledger-row.is-now::before { background: #eebd2b; box-shadow: 0 0 0 1px #d4a820, 0 0 0 6px rgba(238, 189, 43, .18); }
.ledger-date { grid-column: 1; font-family: var(--serif); font-size: .9rem; color: var(--ink-2); text-align: right; padding-top: .1rem; }
.ledger-row.is-now .ledger-date { color: #8a6a10; font-weight: 700; }
.ledger-title { grid-column: 3; display: grid; gap: .05rem; color: var(--ink); }
.ledger-title strong { font-size: .95rem; }
.ledger-title:hover strong { color: #8a6a10; }
.ledger-term { font-size: .8rem; color: var(--ink-2); }
.ledger-empty { color: var(--ink-2); font-size: .9rem; }

/* ---- Ders arşivi kartı --------------------------------------------------- */
.arsiv-card { min-height: 400px; display: flex; flex-direction: column; }
.arsiv-body { flex: 1; display: flex; flex-direction: column; }
.arsiv-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.arsiv-figure { text-align: center; padding: .7rem .3rem; border: 1px solid var(--hair); border-radius: 12px; background: rgba(255, 253, 249, .6); }
.arsiv-num { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; font-weight: 600; color: var(--ink); }
.arsiv-unit { display: block; font-size: .72rem; color: var(--ink-2); margin-top: .15rem; }
.arsiv-text { margin: 0 0 .9rem; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.arsiv-sub { margin: 0 0 .4rem; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #8a6a10; font-weight: 700; }
.arsiv-ongoing { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; font-size: .9rem; color: var(--ink); }
.arsiv-ongoing li i { font-size: .45rem; color: #1f9d55; vertical-align: middle; margin-right: .3rem; }
.arsiv-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
.arsiv-actions .btn { padding: .7rem 1.1rem; font-size: .9rem; flex: 1 1 auto; }
.arsiv-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.arsiv-contact a { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.arsiv-contact a:hover { color: #8a6a10; }
.arsiv-contact i { width: 1.4rem; text-align: center; color: #b8920f; }

/* ---- Eğitmen rafı ----------------------------------------------------------- */
.home-section { margin-top: var(--spacing-3xl); }
.home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.home-section-head h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin: 0; }
.home-section-head p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.ustalar { display: flex; gap: 1.1rem; overflow-x: auto; padding: 1.2rem .5rem 1.4rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.usta { flex: 0 0 150px; scroll-snap-align: start; display: grid; gap: .35rem; justify-items: center; padding: .7rem .7rem .9rem; background: var(--paper); border: 1px solid var(--hair); border-radius: 6px; color: var(--ink); text-align: center; position: relative; box-shadow: 0 8px 20px rgba(34, 28, 21, .10); transform: rotate(-1.5deg); transition: transform .25s, box-shadow .25s; }
.usta:nth-child(even) { transform: rotate(1.5deg); }
.usta::before { /* raptiye */ content: ''; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f5d563, #b8920f); box-shadow: 0 2px 4px rgba(34, 28, 21, .3); }
.usta:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 16px 30px rgba(34, 28, 21, .16); }
.usta-photo { width: 110px; height: 110px; border-radius: 4px; overflow: hidden; background: #15110c; display: flex; align-items: center; justify-content: center; }
.usta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: sepia(.15) saturate(1.05); }
.usta-initials { font-family: var(--serif); font-size: 2rem; color: #f5d563; }
.usta-name { font-weight: 700; font-size: .92rem; margin-top: .3rem; }
.usta-field { font-size: .74rem; color: var(--ink-2); line-height: 1.3; }

/* ---- Nasıl katılırım --------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; position: relative; }
.step { position: relative; padding: 1.4rem 1.3rem 1.3rem; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .65); border-radius: var(--radius-xl); backdrop-filter: blur(12px); }
.step-no { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: rgba(184, 146, 15, .35); font-weight: 600; }
.step i { position: absolute; top: 1.4rem; right: 1.3rem; font-size: 1.3rem; color: #b8920f; }
.step h3 { font-size: 1.05rem; margin: .6rem 0 .3rem; }
.step p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.step a { color: #8a6a10; font-weight: 600; }

/* ---- Lento TV rafı ---------------------------------------------------------- */
.lento-raf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.lento-item { display: grid; gap: .5rem; color: var(--ink); }
.lento-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #15110c; box-shadow: 0 8px 20px rgba(34, 28, 21, .14); }
.lento-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lento-item:hover .lento-thumb img { transform: scale(1.04); }
.lento-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(238, 189, 43, .92); }
.lento-play::after { content: ''; position: absolute; left: 20px; top: 15px; border-left: 16px solid #15110c; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.lento-title { font-size: .9rem; font-weight: 600; line-height: 1.4; }
.lento-item:hover .lento-title { color: #8a6a10; }

@media (max-width: 1200px) {
    .hero-image { display: flex; margin-top: 1rem; }
    .hero-letter { min-height: 0; }
}
@media (max-width: 900px) {
    .steps, .lento-raf { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .ledger::before { left: calc(4.6rem + .9rem + .6rem); }
    .ledger-row { grid-template-columns: 4.6rem 1.2rem 1fr; }
    .usta { flex-basis: 132px; }
}
@media (prefers-reduced-motion: reduce) {
    .letter-paper { transition: none; transform: rotate(-2deg); opacity: 1; }
}
