/* assets/css/toki-kura.css */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f3f7fb;
    color: #142033;
    font-family: Arial, Helvetica, sans-serif;
}

.toki-page {
    min-height: 100vh;
}

.toki-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.toki-hero {
    padding: 54px 0 38px;
    background:
        radial-gradient(circle at top right, rgba(200, 146, 42, 0.20), transparent 32%),
        linear-gradient(135deg, #0e1a16, #25483c 58%, #5a8f78);
    color: #ffffff;
}

.toki-eyebrow {
    margin: 0 0 10px;
    color: #f0c866;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.toki-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
}

.toki-description {
    max-width: 720px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.6;
}

.toki-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.toki-stats div {
    min-width: 170px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
}

.toki-stats strong {
    display: block;
    font-size: 28px;
}

.toki-stats span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.74);
}

.toki-content {
    padding: 28px 0 54px;
}

.toki-card {
    overflow: hidden;
    border: 1px solid #d6e3f2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(16, 42, 67, 0.10);
}

.toki-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #d6e3f2;
    background: #f8fbff;
    min-height: 46px;
}

.toki-topbar button {
    flex-shrink: 0;
    height: 34px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #5a8f78;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.toki-notice {
    flex: 1;
    color: #516173;
    font-size: 13px;
}

.toki-notice.is-error {
    color: #9f1239;
}

.toki-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 62vh;
}

.toki-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Sütun genişlikleri — 9 sütun toplam ~1100px */
.toki-table colgroup col:nth-child(1) { width: 88px;  }   /* Kura Sıra No   */
.toki-table colgroup col:nth-child(2) { width: 155px; }   /* Banka No       */
.toki-table colgroup col:nth-child(3) { width: 128px; }   /* Başvuru Türü   */
.toki-table colgroup col:nth-child(4) { width: 82px;  }   /* Adı            */
.toki-table colgroup col:nth-child(5) { width: 88px;  }   /* Soyadı         */
.toki-table colgroup col:nth-child(6) { width: 108px; }   /* TCKN           */
.toki-table colgroup col:nth-child(7) { width: 72px;  }   /* Durum          */
.toki-table colgroup col:nth-child(8) { width: 118px; }   /* Çekiliş Sıra   */
.toki-table colgroup col:nth-child(9) { width: 78px;  }   /* PDF Sayfa      */

.toki-table thead tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 9px 8px;
    background: #4f81bd;
    color: #ffffff;
    text-align: left;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toki-filter-row th {
    position: sticky;
    top: 36px;
    z-index: 2;
    padding: 4px 5px;
    background: #dce8f5;
    border-bottom: 2px solid #b9cbe1;
}

.toki-filter-row input,
.toki-filter-row select {
    width: 100%;
    height: 26px;
    padding: 0 5px;
    border: 1px solid #b9cbe1;
    border-radius: 6px;
    background: #ffffff;
    color: #142033;
    font-size: 12px;
    box-sizing: border-box;
}

.toki-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #bdd5f0;
    color: #111827;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toki-table tr:nth-child(even) td {
    background: #dceaf7;
}

.toki-table tr:hover td {
    background: #fff4d6;
}

.toki-pdf-note {
    margin: 0;
    padding: 10px 18px;
    border-top: 1px solid #d6e3f2;
    background: #f0f7ff;
    color: #516173;
    font-size: 13px;
    line-height: 1.5;
}

.toki-pdf-note a {
    color: #25483c;
}

.toki-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #d6e3f2;
    background: #f8fbff;
}

.toki-pagination button {
    min-width: 110px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #142033;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.toki-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

#tokiPageInfo {
    min-width: 120px;
    text-align: center;
    color: #516173;
    font-weight: 700;
}

.toki-source {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 13px;
    line-height: 1.5;
}

.toki-source a {
    color: #f0c866;
    text-decoration: underline;
}

.toki-campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 36px;
}

.toki-campaign-card {
    padding: 18px 16px;
    border: 1px solid #d6e3f2;
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 4px 14px rgba(16, 42, 67, 0.06);
}

.toki-campaign-label {
    display: block;
    margin-bottom: 8px;
    color: #516173;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toki-campaign-card strong {
    display: block;
    color: #25483c;
    font-size: 22px;
    font-weight: 800;
}

.toki-seo {
    padding: 48px 0 56px;
    background: #eef4fb;
    border-top: 1px solid #d6e3f2;
}

.toki-seo h2 {
    margin: 0 0 14px;
    color: #0e1a16;
    font-size: 22px;
}

.toki-seo h3 {
    margin: 28px 0 10px;
    color: #0e1a16;
    font-size: 17px;
}

.toki-seo p {
    margin: 0 0 12px;
    color: #384d5c;
    font-size: 15px;
    line-height: 1.7;
    max-width: 860px;
}

.toki-seo a {
    color: #25483c;
    text-decoration: underline;
}

.toki-faq {
    margin: 0 0 20px;
    max-width: 860px;
}

.toki-faq dt {
    margin: 14px 0 4px;
    color: #142033;
    font-weight: 700;
    font-size: 14px;
}

.toki-faq dd {
    margin: 0;
    color: #384d5c;
    font-size: 14px;
    line-height: 1.6;
}

.toki-disclaimer {
    margin-top: 20px !important;
    padding: 14px 16px;
    border-left: 3px solid #5a8f78;
    background: #ffffff;
    border-radius: 0 10px 10px 0;
    color: #516173 !important;
    font-size: 13px !important;
}

@media (max-width: 820px) {
    .toki-toolbar {
        grid-template-columns: 1fr;
    }

    .toki-hero {
        padding-top: 38px;
    }
}