/* ===== ANA SAYFA (herkese açık "/") =====
   Yalnız _Layout.cshtml + Views/Home/Index.cshtml kullanır. Yazı tipi, renk değişkenleri ve sıfırlama site.css'ten gelir.
   Sade düzen: düz zemin, ince tam çerçeve (sol kenarlık yok), degrade / parlama yok, yazı kalınlığı en çok 600. */

html {
    scroll-padding-top: 80px;
}

b,
strong {
    font-weight: 600;
}

.as-kap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.as-ust-baslik {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

/* Bölümler: gri (sayfa zemini) ve beyaz bant sırayla */
.as-bolum {
    padding: 80px 0;
}

.as-bant-beyaz {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Koyu mat bant (Nasıl çalışır) */
.as-bant-koyu {
    background: #111827;
    color: #e5e7eb;
}

.as-bant-koyu .as-ust-baslik {
    color: var(--primary-light);
}

.as-bant-koyu .as-bolum-baslik h2,
.as-bant-koyu .as-adimlar strong {
    color: #f9fafb;
}

.as-bant-koyu .as-adimlar p {
    color: #9ca3af;
}

.as-bant-koyu .as-adim-ikon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

.as-bolum-baslik {
    text-align: center;
    margin-bottom: 48px;
}

.as-bolum-alt {
    max-width: 720px;
    margin: 12px auto 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Teknik adlar (uç, başlık, olay) */
code {
    font-family: Consolas, 'Cascadia Mono', 'Courier New', monospace;
    font-size: 0.86em;
    padding: 1px 5px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #334155;
    white-space: nowrap;
}

.as-bolum-baslik h2,
.as-iki-kolon h2 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.as-ikon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 44px;
}

.as-ikon.turuncu { background: #fff1e6; color: #ea580c; }
.as-ikon.mavi { background: #eff6ff; color: #2563eb; }
.as-ikon.yesil { background: #ecfdf5; color: #059669; }
.as-ikon.mor { background: #f5f3ff; color: #7c3aed; }

/* ---------- Test / yerel ortam şeridi: en üstte ince, koyu, düz yazı ---------- */
.as-test-serit {
    background: var(--secondary);
    color: #cbd5e1;
    font-size: 12.5px;
    text-align: center;
    padding: 7px 16px;
}

/* ---------- Üst çubuk ---------- */
.as-ust {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.as-ust-ic {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 68px;
}

/* Yalnız yazı logo (simge kutusu yok) */
.as-logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: -0.4px;
}

.as-logo span {
    color: var(--primary);
}

.as-menu {
    display: flex;
    gap: 28px;
}

.as-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.as-menu a:hover {
    color: var(--primary-dark);
}

.as-ust-sag {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- Düğmeler ---------- */
.as-dugme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.as-dugme-ana {
    background: var(--primary);
    color: #fff;
}

.as-dugme-ana:hover {
    background: var(--primary-dark);
}

.as-dugme-cizgi {
    background: var(--bg-white);
    color: var(--primary-dark);
    border-color: var(--primary);
}

.as-dugme-cizgi:hover {
    background: #fff7ed;
}

.as-dugme-buyuk {
    padding: 14px 26px;
    font-size: 16px;
}

/* ---------- Giriş (hero) ---------- */
.as-giris {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 72px;
}

.as-baslik {
    font-size: 46px;
    line-height: 1.1;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: -1.2px;
    margin-bottom: 18px;
}

.as-aciklama {
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 28px;
}

/* 2 × 2, simge solda yazı yanında */
.as-ozellik-izgara {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    margin-bottom: 32px;
}

.as-ozellik-izgara > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.as-ozellik-izgara strong {
    display: block;
    font-size: 15px;
    color: var(--text-dark);
    margin: 1px 0 2px;
}

.as-ozellik-izgara p {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

.as-eylemler {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.as-tikler {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin-top: 18px;
    font-size: 14px;
    color: var(--text-muted);
}

.as-tikler span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.as-tikler i {
    color: var(--primary);
    font-size: 16px;
}

/* ---------- Temsili panel (laptop) ---------- */
.as-laptop {
    min-width: 0;
}

.as-ekran {
    background: #1f2937;
    border-radius: 14px 14px 0 0;
    padding: 10px 10px 0;
}

.as-ekran-ic {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    background: #fff;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    font-size: 10px;
    color: var(--text-dark);
    pointer-events: none;
    user-select: none;
}

.as-laptop-taban {
    height: 14px;
    margin: 0 -4%;
    background: #d1d5db;
    border-radius: 0 0 12px 12px;
    border: 1px solid #c3c8cf;
    border-top: 0;
}

.as-laptop-not {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

.as-mp-yan {
    border-right: 1px solid var(--border);
    padding: 12px 8px;
}

.as-mp-yan .as-logo {
    font-size: 13px;
    display: block;
    padding: 0 6px 12px;
}

.as-mp-yan div {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    border-radius: 5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.as-mp-yan div.aktif {
    background: #fff1e6;
    color: #c2410c;
    font-weight: 600;
}

.as-mp-ana {
    padding: 12px 14px;
    min-width: 0;
}

.as-mp-ust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.as-mp-ust b {
    font-size: 13px;
}

.as-mp-secim {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    color: var(--text-muted);
    font-size: 9px;
}

.as-mp-kartlar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.as-mp-kart {
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 6px 7px;
}

.as-mp-kart span {
    display: block;
    color: var(--text-muted);
    font-size: 8.5px;
}

.as-mp-kart b {
    display: block;
    font-size: 12px;
    margin: 2px 0;
    white-space: nowrap;
}

.as-mp-kart small {
    font-size: 8px;
    color: #059669;
}

.as-mp-kart small.kotu {
    color: #dc2626;
}

.as-mp-grafik {
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 6px 8px;
    margin-bottom: 8px;
}

.as-mp-grafik-ust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.as-mp-grafik-ust span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 8.5px;
    color: var(--text-muted);
}

.as-mp-grafik-ust i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #fdba8c;
    margin-left: 6px;
}

.as-mp-grafik-ust i.koyu {
    background: var(--primary);
}

.as-mp-cubuklar {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 54px;
    border-bottom: 1px solid var(--border);
}

.as-mp-cubuklar span {
    flex: 1;
    background: #fdba8c;
    border-radius: 1px 1px 0 0;
}

.as-mp-cubuklar span:nth-child(3n) {
    background: var(--primary);
}

.as-mp-tablo {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2px;
}

.as-mp-tablo th {
    text-align: left;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 8.5px;
    padding: 4px;
    border-bottom: 1px solid var(--border);
}

.as-mp-tablo td {
    padding: 4px;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}

.as-mp-tablo td.tutar {
    text-align: right;
}

.as-mp-durum {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 600;
}

.as-mp-durum.gonderildi { background: #dcfce7; color: #15803d; }
.as-mp-durum.isleniyor { background: #dbeafe; color: #1d4ed8; }
.as-mp-durum.hata { background: #fee2e2; color: #b91c1c; }
.as-mp-durum.bekliyor { background: #fef3c7; color: #a16207; }

/* ---------- Nasıl çalışır ---------- */
.as-adimlar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    list-style: none;
}

.as-adimlar li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.as-adim-ikon {
    flex: 0 0 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff1e6;
    color: var(--secondary);
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.as-adimlar strong {
    display: block;
    font-size: 16px;
    color: var(--secondary);
    margin: 6px 0 4px;
}

.as-adimlar p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ---------- Tüm özellikler: 8 grup, 2 sütun ---------- */
.as-gruplar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.as-grup {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

/* Simge solda, başlık yanında */
.as-grup-bas {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.as-grup h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
}

.as-grup ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.as-grup li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-dark);
}

.as-grup li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.as-grup code {
    white-space: normal;
}

/* ---------- API v2 uçları ---------- */
.as-api-tablo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    gap: 1px;
    background: var(--border);
}

/* Satır: simge | işlem | açıklama (sade Türkçe; uç adresi yok) */
.as-api-satir {
    display: grid;
    grid-template-columns: 22px minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-white);
    font-size: 14px;
}

.as-api-ikon {
    font-size: 18px;
    color: var(--primary);
}

.as-api-satir strong {
    color: var(--secondary);
}

.as-api-aciklama {
    color: var(--text-muted);
    line-height: 1.45;
}

.as-api-alt {
    margin-top: 24px;
    text-align: center;
}

/* ---------- Kimin için: simge solda, yazı yanında ---------- */
.as-kart {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.as-kart h3 {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin: 2px 0 4px;
}

.as-kart p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.as-kartlar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* ---------- Çağrı bandı ---------- */
.as-cagri {
    background: var(--secondary);
    color: #fff;
}

.as-cagri .as-kap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 44px;
    padding-bottom: 44px;
}

.as-cagri h2 {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.as-cagri p {
    margin-top: 6px;
    font-size: 15px;
    color: #cbd5e1;
}

/* ---------- Alt bilgi (açık zemin, sütunlu; Hiras Yazılım logosu sağ kenarda) ---------- */
.as-ana {
    flex: 1;
}

.as-alt {
    background: var(--bg-white);
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border);
}

.as-alt-ust {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 40px;
}

.as-alt-marka p {
    margin-top: 10px;
    max-width: 300px;
    line-height: 1.55;
}

.as-alt-sutun {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.as-alt-sutun h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.as-alt-sutun a:hover {
    color: var(--primary-dark);
}

.as-alt-sirket {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    text-align: right;
}

.as-alt-sirket img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
}

.as-alt-sirket span {
    font-size: 13px;
    max-width: 280px;
    line-height: 1.5;
}

/* Geliştirici bağlantısı: küçük, sade */
.as-gelistirici {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--text-light);
}

.as-gelistirici i {
    font-size: 16px;
    color: #0a66c2;
}

.as-gelistirici:hover {
    color: var(--text-dark);
}

.as-alt-alt {
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.as-alt-alt .as-kap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* ---------- Dar ekran ---------- */
@media (max-width: 1024px) {
    .as-menu {
        display: none;
    }

    .as-giris {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 40px;
    }

    .as-gruplar,
    .as-api-tablo {
        grid-template-columns: 1fr;
    }

    .as-alt-ust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .as-alt-sirket {
        grid-column: 1 / -1;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .as-adimlar,
    .as-kartlar {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .as-cagri .as-kap {
        flex-direction: column;
        align-items: flex-start;
    }

    .as-alt-ust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .as-alt-marka {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .as-kap {
        padding: 0 16px;
    }

    .as-ust-ic {
        gap: 12px;
    }

    .as-ust-sag .as-dugme-cizgi {
        display: none;
    }

    .as-baslik {
        font-size: 32px;
    }

    .as-aciklama {
        font-size: 16px;
    }

    .as-laptop {
        display: none;
    }

    .as-bolum {
        padding: 56px 0;
    }

    .as-bolum-baslik h2 {
        font-size: 26px;
    }

    .as-ozellik-izgara {
        grid-template-columns: 1fr;
    }

    .as-api-satir {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .as-api-aciklama {
        grid-column: 2;
    }

    .as-eylemler .as-dugme {
        width: 100%;
    }
}
