/* ==========================================================================
   Deha tanıtım sitesi — iç sayfa bileşenleri
   site.css içindeki değişkenleri ve temel bileşenleri varsayar.
   ========================================================================== */

/* ---------------------------------------------------------- sayfa başlığı */

.page-header {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.2rem, 4vw, 3.4rem) clamp(2.6rem, 5vw, 4.2rem);
    background:
        radial-gradient(900px 480px at 88% -20%, rgba(9,182,202,.12), transparent 62%),
        radial-gradient(620px 420px at 2% 0%, rgba(81,179,127,.12), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--canvas) 100%);
    border-bottom: 1px solid var(--n-200);
}
.page-header__inner { max-width: 840px; position: relative; }
.page-header h1 { margin-bottom: .45em; }
.page-header .lead { font-size: var(--step-1); }
.page-header .btn-row { margin-top: 1.7rem; }
.page-header .signature-mark { right: -8%; top: -40%; width: min(460px, 48vw); }

.page-header--deep {
    background:
        radial-gradient(900px 440px at 84% -10%, rgba(9,182,202,.22), transparent 62%),
        radial-gradient(620px 420px at 0% 100%, rgba(81,179,127,.18), transparent 60%),
        var(--deep);
    border-bottom-color: transparent;
}
.page-header--deep h1 { color: #fff; }
.page-header--deep .lead { color: #a9c6cd; }
.page-header--deep .eyebrow { color: var(--teal); }
.page-header--deep .breadcrumb { color: #6f949d; }
.page-header--deep .breadcrumb a { color: #9fc4cd; }
.page-header--deep .breadcrumb [aria-current="page"] { color: #fff; }
.page-header--deep .breadcrumb li + li::before { color: #557d87; }
.page-header--deep .signature-mark { color: #ffffff; opacity: .07; }

/* ---------------------------------------------------------- breadcrumb */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .5rem;
    list-style: none;
    margin: 0 0 1.3rem;
    padding: 0;
    font-size: var(--step--1);
    color: var(--n-500);
}
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; color: var(--n-400); }
.breadcrumb a { color: var(--n-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--deep); font-weight: 600; }

/* ---------------------------------------------------------- içerik düzeni */

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(1.8rem, 4vw, 3.4rem);
    align-items: start;
}
@media (max-width: 980px) {
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
}

.sticky-aside { display: grid; gap: 1rem; position: sticky; top: 96px; }
@media (max-width: 980px) { .sticky-aside { position: static; } }

.aside-card {
    background: var(--white);
    border: 1px solid var(--n-200);
    border-radius: var(--r-md);
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow-sm);
}
.aside-card h3 {
    font-family: var(--font-sans);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--n-500);
    margin-bottom: .9rem;
}
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.aside-card li { margin: 0; }
.aside-card a { font-weight: 500; font-size: .96rem; }
.aside-card .btn { width: 100%; }

.aside-card--cta {
    background: linear-gradient(160deg, var(--deep) 0%, #15545f 100%);
    border-color: transparent;
    color: #bcd8de;
}
.aside-card--cta h3 { color: #7fb3bf; }
.aside-card--cta p { font-size: .95rem; margin-bottom: 1.1rem; }

/* ---------------------------------------------------------- prose */

.prose { max-width: 72ch; }
.prose > h2 { font-size: var(--step-2); margin-top: 2em; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose p, .prose li { color: var(--n-700); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.5rem; margin-bottom: .55em; }
.prose ul li::before {
    content: "";
    position: absolute;
    left: .25rem; top: .62em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
}

/* ---------------------------------------------------------- özellik listesi */

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.feature-list li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin: 0;
    padding: .9rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--n-200);
    border-radius: var(--r-sm);
    font-size: .98rem;
    color: var(--n-700);
}
.feature-list svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 2px; }

/* ---------------------------------------------------------- çekirdek / ekstra */

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.2rem, 3vw, 2.2rem);
    align-items: stretch;
}
@media (max-width: 880px) { .split-grid { grid-template-columns: minmax(0, 1fr); } }

.stack-panel {
    background: var(--white);
    border: 1px solid var(--n-200);
    border-radius: var(--r-lg);
    padding: clamp(1.4rem, 3vw, 2.1rem);
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.stack-panel--accent {
    border-color: rgba(81,179,127,.45);
    background: linear-gradient(180deg, var(--green-050) 0%, var(--white) 46%);
}
.stack-panel__badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-050);
    border-radius: 999px;
    padding: .32rem .8rem;
    margin-bottom: 1rem;
}
.stack-panel--accent .stack-panel__badge { color: #2f7d53; background: rgba(81,179,127,.18); }
.stack-panel h3 { font-size: var(--step-2); margin-bottom: .4em; }
.stack-panel > p { color: var(--n-600); margin-bottom: 1.3rem; }

.cap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.cap-list li { display: flex; gap: .8rem; align-items: flex-start; margin: 0; }
.cap-list__icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: grid; place-items: center;
    background: var(--primary-050);
    color: var(--primary);
    flex: none;
}
.stack-panel--accent .cap-list__icon { background: rgba(81,179,127,.16); color: #2f7d53; }
.cap-list__icon svg { width: 17px; height: 17px; }
.cap-list strong { display: block; font-size: .98rem; color: var(--deep); font-weight: 600; line-height: 1.4; }
.cap-list span { font-size: .9rem; color: var(--n-600); }

/* ---------------------------------------------------------- fiyat kartları */

.plan {
    background: var(--white);
    border: 1px solid var(--n-200);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.plan--highlight { border-color: var(--primary); box-shadow: var(--shadow-md); position: relative; }
.plan--highlight::before {
    content: "En sık kurulan";
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 999px;
    white-space: nowrap;
}
.plan h3 { font-size: var(--step-2); margin-bottom: .2em; }
.plan__audience { font-size: .85rem; font-weight: 600; color: var(--primary); margin-bottom: 1rem; display: block; }
.plan > p { color: var(--n-600); font-size: .96rem; margin-bottom: 1.3rem; }
.plan__includes { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .55rem; }
.plan__includes li { display: flex; gap: .55rem; align-items: flex-start; margin: 0; font-size: .95rem; color: var(--n-700); }
.plan__includes svg { width: 19px; height: 19px; flex: none; color: var(--green); margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* ---------------------------------------------------------- formlar */

.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--deep);
    margin-bottom: .4rem;
}
.field label .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--n-300);
    border-radius: var(--r-sm);
    padding: .78rem .9rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}
.field__hint { font-size: .85rem; color: var(--n-500); margin-top: .35rem; }
.field-error { color: var(--danger); font-size: .88rem; margin-top: .35rem; display: block; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    border-radius: var(--r-md);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.6rem;
    border: 1px solid;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}
.alert svg { width: 21px; height: 21px; flex: none; margin-top: 2px; }
.alert--ok { background: var(--green-050); border-color: rgba(81,179,127,.4); color: #27603f; }
.alert--ok svg { color: var(--green); }
.alert--error { background: var(--danger-050); border-color: rgba(196,36,42,.3); color: #8d1b20; }
.alert--error svg { color: var(--danger); }
.alert strong { color: inherit; }
.alert p:last-child { margin-bottom: 0; }

.contact-channels { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-channels li { display: flex; gap: .85rem; align-items: flex-start; margin: 0; }
.contact-channels__icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: grid; place-items: center;
    background: var(--primary-050);
    color: var(--primary);
    flex: none;
}
.contact-channels__icon svg { width: 19px; height: 19px; }
.contact-channels strong {
    display: block;
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--n-500);
    font-weight: 700;
}
.contact-channels a, .contact-channels .value { font-size: 1.02rem; font-weight: 600; color: var(--deep); text-decoration: none; }
.contact-channels a:hover { color: var(--primary); }

/* ---------------------------------------------------------- video detay */

.video-player {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #0a2c35;
    aspect-ratio: 16 / 9;
}
.video-player video { width: 100%; height: 100%; display: block; }

.topic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; counter-reset: topic; }
.topic-list li { display: flex; gap: .8rem; align-items: flex-start; margin: 0; font-size: .98rem; color: var(--n-700); }
.topic-list li::before {
    counter-increment: topic;
    content: counter(topic, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-050);
    border-radius: 6px;
    padding: .18rem .45rem;
    flex: none;
    margin-top: 1px;
}

/* ---------------------------------------------------------- 404 */

.notfound { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.notfound__code {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 14vw, 9rem);
    font-weight: 600;
    line-height: 1;
    color: var(--primary);
    opacity: .16;
    letter-spacing: -.04em;
    margin-bottom: -.12em;
}
.notfound h1 { margin-bottom: .4em; }
.notfound .btn-row { justify-content: center; margin-top: 1.8rem; }
.notfound .chip-row { justify-content: center; margin-top: 2.2rem; }

/* ---------------------------------------------------------- yardımcılar */

.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--n-700);
    background: var(--white);
    border: 1px solid var(--n-200);
    border-radius: 999px;
    padding: .38rem .85rem;
    text-decoration: none !important;
}
a.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip svg { width: 15px; height: 15px; color: var(--primary); }

.divider { height: 1px; background: var(--n-200); border: 0; margin-block: clamp(2rem, 4vw, 3rem); }

.legal-toc {
    background: var(--white);
    border: 1px solid var(--n-200);
    border-radius: var(--r-md);
    padding: 1.2rem 1.4rem;
    margin-bottom: 2rem;
}
.legal-toc h2 { font-size: 1rem !important; margin: 0 0 .7rem !important; font-family: var(--font-sans); letter-spacing: 0; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }
.legal-toc li { margin-bottom: .3em; }

.note {
    background: var(--amber-050);
    border: 1px solid rgba(185,115,9,.28);
    border-radius: var(--r-md);
    padding: 1rem 1.2rem;
    font-size: .95rem;
    color: #6f4505;
}
.note strong { color: #6f4505; }

/* ---------------------------------------------------------- nasıl yapılır */

.chapter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.chapter-list li { margin: 0; }
.chapter-list__jump {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    padding: .6rem .8rem;
    cursor: pointer;
    font: inherit;
    color: var(--n-700);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chapter-list__jump:hover { background: var(--white); border-color: var(--n-200); color: var(--deep); }
.chapter-list__time {
    color: var(--primary);
    font-size: .88rem;
    background: var(--primary-050);
    border-radius: 6px;
    padding: .15rem .45rem;
    flex: none;
    margin-top: 1px;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: adim;
    display: grid;
    gap: .7rem;
}
.step-list li {
    counter-increment: adim;
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    margin: 0;
    padding: .95rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--n-200);
    border-radius: var(--r-sm);
    color: var(--n-700);
    scroll-margin-top: 96px;
}
.step-list li::before {
    content: counter(adim);
    font-family: var(--font-mono);
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    margin-top: -1px;
}

.mistake-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.mistake-list li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin: 0;
    padding: .95rem 1.1rem;
    background: var(--danger-050);
    border: 1px solid rgba(196,36,42,.22);
    border-radius: var(--r-sm);
    color: #7c2126;
}
.mistake-list svg { width: 20px; height: 20px; flex: none; color: var(--danger); margin-top: 2px; }

.series-switch {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.series-switch a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid var(--n-300);
    font-weight: 600;
    font-size: .95rem;
    color: var(--n-700);
    text-decoration: none !important;
    background: var(--white);
}
.series-switch a:hover { border-color: var(--primary); color: var(--primary); }
.series-switch a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.series-switch svg { width: 16px; height: 16px; }
