/*
 * SEO MAKİNESİ - PREMIUM HEADER LOGO
 * Hedef dosya: /assets/header-logo-premium.css
 * Bu dosya yalnızca masaüstü ve mobil logo alanını düzenler.
 */

:root {
    --smh-brand-blue: #4285f4;
    --smh-brand-red: #ea4335;
    --smh-brand-yellow: #fbbc05;
    --smh-brand-green: #34a853;
}

.ks27ph-header .ks27ph-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1920px;
    margin-right: auto;
    margin-left: auto;
    padding-right: clamp(18px, 3vw, 56px);
    padding-left: clamp(18px, 3vw, 56px);
}

.ks27ph-logo.ks27ph-logo--premium {
    position: relative;
    left: auto !important;
    flex: 0 0 auto;
    width: auto !important;
    min-width: 252px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
}

.ks27ph-logo-link.ks27ph-logo-link--premium {
    position: relative;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 64px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 9px 14px 12px !important;
    overflow: hidden;
    color: #f8fbff;
    text-decoration: none;
    border: 1px solid rgba(148, 178, 225, 0.24);
    border-radius: 17px;
    background:
        radial-gradient(circle at 8% 0%, rgba(66, 133, 244, 0.20), transparent 38%),
        linear-gradient(145deg, rgba(13, 28, 52, 0.98), rgba(5, 15, 31, 0.96));
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    isolation: isolate;
    transform: none !important;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.ks27ph-logo-link.ks27ph-logo-link--premium::before {
    position: absolute;
    z-index: -1;
    top: -34px;
    left: -28px;
    width: 110px;
    height: 110px;
    content: "";
    pointer-events: none;
    opacity: 0.55;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.24), transparent 68%);
}

.ks27ph-logo-link.ks27ph-logo-link--premium::after {
    display: none !important;
    content: none !important;
}

.ks27ph-logo-link.ks27ph-logo-link--premium:hover,
.ks27ph-logo-link.ks27ph-logo-link--premium:focus-visible {
    border-color: rgba(96, 165, 250, 0.58);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.26),
        0 0 0 3px rgba(66, 133, 244, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transform: translateY(-1px) !important;
}

.ks27ph-logo-link.ks27ph-logo-link--premium:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.88);
    outline-offset: 3px;
}

.ks27ph-brand-mark {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    overflow: hidden;
    color: #dbeafe;
    border: 1px solid rgba(148, 178, 225, 0.22);
    border-radius: 13px;
    background:
        radial-gradient(circle at 35% 28%, rgba(66, 133, 244, 0.20), transparent 48%),
        linear-gradient(145deg, rgba(15, 34, 62, 0.98), rgba(5, 16, 33, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.16);
}

.ks27ph-brand-mark svg {
    display: block;
    width: 34px;
    height: 34px;
    overflow: visible;
}

.ks27ph-brand-ring {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
}

.ks27ph-brand-ring--blue {
    stroke: var(--smh-brand-blue);
}

.ks27ph-brand-ring--red {
    stroke: var(--smh-brand-red);
}

.ks27ph-brand-ring--yellow {
    stroke: var(--smh-brand-yellow);
}

.ks27ph-brand-ring--green {
    stroke: var(--smh-brand-green);
}

.ks27ph-brand-chart,
.ks27ph-brand-chart-tip {
    fill: none;
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ks27ph-brand-dot {
    fill: #ffffff;
    stroke: rgba(66, 133, 244, 0.88);
    stroke-width: 1.4;
}

.ks27ph-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

.ks27ph-logo-link--premium .ks27ph-logo-main {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: inherit !important;
    font-family: inherit;
    font-size: clamp(18px, 1.28vw, 22px) !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: -0.045em !important;
    white-space: nowrap;
    text-shadow: 0 1px 18px rgba(66, 133, 244, 0.10);
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.ks27ph-logo-tagline {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    color: rgba(219, 234, 254, 0.72);
    font-size: 9.5px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0.015em;
    white-space: nowrap;
}

.ks27ph-logo-status {
    display: inline-block;
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--smh-brand-green);
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.12);
}

.ks27ph-logo-accent {
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.9fr 1.15fr;
    gap: 4px;
    height: 3px;
    overflow: hidden;
    pointer-events: none;
    border-radius: 999px 999px 0 0;
}

.ks27ph-logo-accent i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px 999px 0 0;
}

.ks27ph-logo-accent .is-blue {
    background: var(--smh-brand-blue);
}

.ks27ph-logo-accent .is-red {
    background: var(--smh-brand-red);
}

.ks27ph-logo-accent .is-yellow {
    background: var(--smh-brand-yellow);
}

.ks27ph-logo-accent .is-green {
    background: var(--smh-brand-green);
}

/* Eski logo çizgisini tamamen devre dışı bırakır. */
.ks27ph-logo--premium .ks27ph-logo-line {
    display: none !important;
}

/* Gündüz modu */
html[data-theme="light"] .ks27ph-logo-link.ks27ph-logo-link--premium {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
    background:
        radial-gradient(circle at 8% 0%, rgba(66, 133, 244, 0.12), transparent 40%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(239, 246, 255, 0.97));
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .ks27ph-logo-link.ks27ph-logo-link--premium:hover,
html[data-theme="light"] .ks27ph-logo-link.ks27ph-logo-link--premium:focus-visible {
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.13),
        0 0 0 3px rgba(66, 133, 244, 0.08);
}

html[data-theme="light"] .ks27ph-brand-mark {
    color: #1e3a8a;
    border-color: rgba(30, 64, 175, 0.13);
    background:
        radial-gradient(circle at 35% 28%, rgba(66, 133, 244, 0.13), transparent 50%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(229, 239, 255, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 7px 16px rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] .ks27ph-logo-tagline {
    color: rgba(30, 41, 59, 0.68);
}

/* Mobil menüde premium logo */
.ks27ph-mobile-logo.ks27ph-mobile-logo--premium {
    display: inline-flex !important;
    width: auto !important;
    max-width: calc(100% - 118px);
    min-width: 0;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    color: #f8fbff;
    text-decoration: none;
    background: none !important;
    transform: none !important;
}

.ks27ph-mobile-logo.ks27ph-mobile-logo--premium::before,
.ks27ph-mobile-logo.ks27ph-mobile-logo--premium::after {
    display: none !important;
    content: none !important;
}

.ks27ph-brand-mark--mobile {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.ks27ph-brand-mark--mobile svg {
    width: 29px;
    height: 29px;
}

.ks27ph-mobile-brand-copy {
    display: flex !important;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.ks27ph-mobile-brand-copy strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 18px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ks27ph-mobile-brand-copy small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: rgba(219, 234, 254, 0.68);
    font-size: 8.5px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-theme="light"] .ks27ph-mobile-logo.ks27ph-mobile-logo--premium {
    color: #0f172a;
}

html[data-theme="light"] .ks27ph-mobile-brand-copy small {
    color: rgba(30, 41, 59, 0.64);
}

/* Orta masaüstü ekranlarda menünün sıkışmasını önler. */
@media (max-width: 1480px) and (min-width: 1101px) {
    .ks27ph-header .ks27ph-inner {
        padding-right: 20px;
        padding-left: 20px;
    }

    .ks27ph-logo.ks27ph-logo--premium {
        min-width: 218px;
    }

    .ks27ph-logo-link.ks27ph-logo-link--premium {
        grid-template-columns: 39px minmax(0, 1fr);
        gap: 9px;
        min-height: 58px;
        padding: 8px 11px 11px !important;
        border-radius: 15px;
    }

    .ks27ph-brand-mark {
        width: 39px;
        height: 39px;
        border-radius: 11px;
    }

    .ks27ph-brand-mark svg {
        width: 30px;
        height: 30px;
    }

    .ks27ph-logo-link--premium .ks27ph-logo-main {
        font-size: 18px !important;
    }

    .ks27ph-logo-tagline {
        font-size: 8.4px;
    }

    .ks27ph-logo-accent {
        right: 11px;
        left: 11px;
    }
}

@media (max-width: 1270px) and (min-width: 1101px) {
    .ks27ph-logo.ks27ph-logo--premium {
        min-width: 184px;
    }

    .ks27ph-logo-link.ks27ph-logo-link--premium {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
        min-height: 52px;
        padding: 7px 10px 10px !important;
    }

    .ks27ph-brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .ks27ph-brand-mark svg {
        width: 27px;
        height: 27px;
    }

    .ks27ph-logo-link--premium .ks27ph-logo-main {
        font-size: 16.5px !important;
    }

    .ks27ph-logo-tagline {
        display: none;
    }
}

@media (max-width: 1100px) {
    .ks27ph-header .ks27ph-inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .ks27ph-logo.ks27ph-logo--premium {
        min-width: 0;
    }

    .ks27ph-logo-link.ks27ph-logo-link--premium {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 9px;
        min-height: 52px;
        padding: 7px 11px 10px !important;
        border-radius: 14px;
    }

    .ks27ph-brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .ks27ph-brand-mark svg {
        width: 29px;
        height: 29px;
    }

    .ks27ph-logo-link--premium .ks27ph-logo-main {
        font-size: 17.5px !important;
    }

    .ks27ph-logo-tagline {
        display: none;
    }

    .ks27ph-logo-accent {
        right: 11px;
        left: 11px;
    }
}

@media (max-width: 520px) {
    .ks27ph-header .ks27ph-inner {
        padding-right: 12px;
        padding-left: 12px;
    }

    .ks27ph-logo-link.ks27ph-logo-link--premium {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 7px;
        min-height: 46px;
        padding: 6px 9px 9px !important;
        border-radius: 12px;
    }

    .ks27ph-brand-mark {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .ks27ph-brand-mark svg {
        width: 25px;
        height: 25px;
    }

    .ks27ph-logo-link--premium .ks27ph-logo-main {
        font-size: 15.5px !important;
    }

    .ks27ph-logo-accent {
        right: 9px;
        left: 9px;
        gap: 3px;
        height: 2px;
    }

    .ks27ph-mobile-logo.ks27ph-mobile-logo--premium {
        max-width: calc(100% - 105px);
        gap: 8px;
    }

    .ks27ph-brand-mark--mobile {
        width: 34px;
        height: 34px;
    }

    .ks27ph-brand-mark--mobile svg {
        width: 26px;
        height: 26px;
    }

    .ks27ph-mobile-brand-copy strong {
        font-size: 16px;
    }

    .ks27ph-mobile-brand-copy small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ks27ph-logo-link.ks27ph-logo-link--premium {
        transition: none;
    }
}

/* =========================================================
   SEO MAKİNESİ - HEADER KONUM + NEON ÇİZGİ KESİN FINAL
   - Header yeniden ekranın en üstüne sabitlenir.
   - Üstte oluşan boşluk kaldırılır.
   - Uzun sert çizgi yerine yumuşak beyaz/buz mavisi neon kullanılır.
========================================================= */

.ks27ph-header {
    position: fixed !important;
    z-index: 9998 !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border-bottom: 0 !important;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.025) !important;
    transform: none !important;
}

/* Eski renkli uzun header çizgisi yerine kısa ve yumuşak neon. */
.ks27ph-header::after {
    position: absolute !important;
    z-index: 40 !important;
    right: clamp(18px, 4vw, 72px) !important;
    bottom: -1px !important;
    left: clamp(18px, 4vw, 72px) !important;
    display: block !important;
    width: auto !important;
    height: 1px !important;
    margin: 0 !important;
    content: "" !important;
    pointer-events: none !important;
    opacity: 0.56 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.10) 10%,
            rgba(255, 255, 255, 0.52) 30%,
            rgba(191, 219, 254, 0.92) 50%,
            rgba(255, 255, 255, 0.52) 70%,
            rgba(255, 255, 255, 0.10) 90%,
            transparent 100%
        ) !important;
    box-shadow:
        0 0 4px rgba(255, 255, 255, 0.30),
        0 0 10px rgba(147, 197, 253, 0.22),
        0 3px 16px rgba(59, 130, 246, 0.10) !important;
    filter: blur(0.15px);
    transform: none !important;
}

/* Header CSS içinde kalmış olabilecek eski çizgi elemanlarını kapatır. */
.ks27ph-header .ks27ph-header-line,
.ks27ph-header .ks27ph-bottom-line,
.ks27ph-header .ks27ph-color-line,
.ks27ph-header .ks27ph-rainbow-line,
.ks27ph-header [class*="header-line"],
.ks27ph-header [class*="color-line"],
.ks27ph-header [class*="rainbow-line"] {
    display: none !important;
}

/* Gündüz modunda çizgi daha sade görünür. */
html[data-theme="light"] .ks27ph-header {
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.08),
        0 1px 0 rgba(15, 23, 42, 0.025) !important;
}

html[data-theme="light"] .ks27ph-header::after {
    opacity: 0.42 !important;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(100, 116, 139, 0.08) 10%,
            rgba(100, 116, 139, 0.24) 30%,
            rgba(59, 130, 246, 0.54) 50%,
            rgba(100, 116, 139, 0.24) 70%,
            rgba(100, 116, 139, 0.08) 90%,
            transparent 100%
        ) !important;
    box-shadow:
        0 0 4px rgba(255, 255, 255, 0.38),
        0 0 8px rgba(59, 130, 246, 0.14) !important;
}

/* Mobilde logo, tema ve menü alanını biraz daha kompakt tutar. */
@media (max-width: 1100px) {
    .ks27ph-header::after {
        right: 12px !important;
        left: 12px !important;
        opacity: 0.46 !important;
        box-shadow:
            0 0 3px rgba(255, 255, 255, 0.24),
            0 0 7px rgba(96, 165, 250, 0.16) !important;
    }
}

@media (max-width: 520px) {
    .ks27ph-header {
        box-shadow:
            0 7px 20px rgba(0, 0, 0, 0.15),
            0 1px 0 rgba(255, 255, 255, 0.02) !important;
    }

    .ks27ph-header::after {
        right: 10px !important;
        left: 10px !important;
        opacity: 0.38 !important;
    }
}

