﻿:root {
    --header-bg: #004a99;
    --text: #222;
    --muted: #666;
    --border: #cfcfcf;
    --dash: #bdbdbd;
    --bg: #fff;
    --hover: #f7f9fc;
    --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    /* 12pt ≈ 16px, 9pt ≈ 12px */
    --fs-12: 12pt;
    --fs-9: 9pt;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

.kk-wrap {
    width: 100%;
    margin: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.kk-subheader {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    box-sizing: border-box;
}

.kk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--header-bg);
    color: #fff;
    padding: 12px 16px;
}

.kk-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    min-width: 0;
}

.kk-logo-text {
    font-size: 15pt;
    letter-spacing: -0.02em;
    white-space: nowrap;
    line-height: 1;
}

    .kk-logo-text .kk-logo-bold {
        font-weight: 700;
    }

    .kk-logo-text .kk-logo-light {
        font-weight: 300;
    }

.kk-header-title {
    font-size: 11pt;
    font-weight: 500;
    text-align: right;
    line-height: 1.25;
    flex-shrink: 1;
}

.kk-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kk-item {
    border-bottom: 1px solid var(--border);
}

    .kk-item:last-child {
        border-bottom: none;
    }

.kk-link {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

    .kk-link:hover,
    .kk-link:focus-visible {
        background: var(--hover);
        outline: none;
    }

.kk-logo-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f5f8;
    margin-left: 10px;
    margin-top: 10px;
    border: 1px solid #e6e8ec;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .kk-logo-circle img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        background: #fff;
    }

.kk-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.kk-kurum {
    margin: 0;
    font-size: var(--fs-12);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    color: #111;
}

.kk-birim {
    margin: 3px 0 0;
    font-size: var(--fs-9);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--muted);
}

.kk-dash {
    border: 0;
    border-top: 1px solid var(--dash);
    margin: 5px 0;
}

.kk-desc {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    text-transform: uppercase;
}

.kk-tarih {
    margin: 14px 0 0;
    text-align: left;
    font-size: var(--fs-9);
    font-weight: 400;
    color: #333;
    line-height: 1.3;
}

    .kk-tarih strong {
        font-weight: 700;
    }

.kk-status {
    padding: 28px 18px;
    text-align: center;
    color: #555;
    font-size: 10pt;
}

    .kk-status.error {
        color: #a32020;
    }

.kk-spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 12px;
    border: 3px solid #d7e3f3;
    border-top-color: var(--header-bg);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .kk-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 12px;
        gap: 4px;
    }

    .kk-header-title {
        text-align: left;
        font-size: 10pt;
    }

    .kk-logo-text {
        font-size: 13pt;
    }

    .kk-link {
        grid-template-columns: 56px 1fr;
        gap: 6px;
        padding: 6px;
    }

    .kk-logo-circle {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 380px) {
    .kk-link {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .kk-content {
        width: 100%;
    }

    .kk-tarih {
        text-align: center;
    }
}
