/**
 * Solid Medya — Çerez banner (sade / premium)
 */
.sm-cookie-root {
    --sm-cc-gold: #ffbc00;
    --sm-cc-border: rgba(255, 255, 255, 0.07);
    --sm-cc-bg: rgba(11, 11, 11, 0.96);
    --sm-cc-text: rgba(255, 255, 255, 0.68);
    --sm-cc-muted: rgba(255, 255, 255, 0.42);
    font-family: var(--sm-font-body, 'Inter', system-ui, sans-serif);
    z-index: 99990;
}

.sm-cookie-root[hidden] {
    display: none !important;
}

.sm-cookie-banner {
    position: fixed;
    left: 20px;
    right: auto;
    bottom: 20px;
    padding: 0;
    pointer-events: none;
    animation: smCookieIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sm-cookie-banner.is-dismissed {
    animation: smCookieOut 0.24s ease forwards;
}

@keyframes smCookieIn {
    from {
        transform: translate3d(-8px, 10px, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes smCookieOut {
    from {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }

    to {
        transform: translate3d(-6px, 8px, 0);
        opacity: 0;
    }
}

.sm-cookie-banner__inner {
    pointer-events: auto;
    position: relative;
    width: min(272px, calc(100vw - 32px));
    overflow: hidden;
    border-radius: 10px;
    background: var(--sm-cc-bg);
    border: 1px solid var(--sm-cc-border);
    border-left: 2px solid var(--sm-cc-gold);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
}

.sm-cookie-banner__progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.sm-cookie-banner__progress span {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--sm-cc-gold);
    transform-origin: left center;
    transform: scaleX(1);
}

.sm-cookie-banner__progress span.is-running {
    animation: smCookieProgress 3s linear forwards;
}

@keyframes smCookieProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.sm-cookie-banner__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 15px 12px;
}

.sm-cookie-banner__title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.94);
    letter-spacing: 0.015em;
}

.sm-cookie-banner__desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
    color: var(--sm-cc-text);
}

.sm-cookie-banner__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 10px;
    line-height: 1.4;
}

.sm-cookie-root .sm-cookie-banner__links a,
.sm-cookie-root .sm-cookie-link-btn {
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: inherit;
    color: var(--sm-cc-muted) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.15s ease;
}

.sm-cookie-root .sm-cookie-banner__links a:hover,
.sm-cookie-root .sm-cookie-link-btn:hover {
    color: var(--sm-cc-gold) !important;
}

.sm-cookie-sep {
    margin: 0 5px;
    color: rgba(255, 255, 255, 0.18);
}

.sm-cookie-banner__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 2px;
}

.sm-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sm-cookie-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--sm-cc-muted);
}

.sm-cookie-btn--ghost:hover {
    color: rgba(255, 255, 255, 0.82);
}

.sm-cookie-btn--primary {
    background: transparent;
    border-color: rgba(255, 188, 0, 0.45);
    color: var(--sm-cc-gold);
}

.sm-cookie-btn--primary:hover {
    background: rgba(255, 188, 0, 0.08);
    border-color: rgba(255, 188, 0, 0.7);
    color: #ffd54f;
}

.sm-cookie-btn--outline {
    background: transparent;
    border-color: var(--sm-cc-border);
    color: rgba(255, 255, 255, 0.78);
}

.sm-cookie-btn--outline:hover {
    border-color: rgba(255, 188, 0, 0.35);
    color: var(--sm-cc-gold);
}

.sm-cookie-btn--text {
    background: transparent;
    color: var(--sm-cc-muted);
}

.sm-cookie-btn--text:hover {
    color: #fff;
}

/* Modal */
.sm-cookie-modal[hidden] {
    display: none !important;
}

.sm-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 99991;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.sm-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.sm-cookie-modal__panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 88vh;
    overflow: auto;
    background: #0b0b0b;
    border: 1px solid var(--sm-cc-border);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.sm-cookie-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--sm-cc-border);
}

.sm-cookie-modal__head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.sm-cookie-modal__close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
}

.sm-cookie-modal__body {
    padding: 12px 14px;
}

.sm-cookie-modal__lead {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--sm-cc-muted);
}

.sm-cookie-option {
    padding: 9px 10px;
    margin-bottom: 7px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sm-cc-border);
    border-radius: 8px;
}

.sm-cookie-option__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.sm-cookie-option__head strong {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 600;
}

.sm-cookie-option p {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: var(--sm-cc-muted);
}

.sm-cookie-option__badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--sm-cc-gold);
    background: rgba(255, 188, 0, 0.1);
    padding: 2px 6px;
    border-radius: 999px;
}

.sm-cookie-option--toggle {
    cursor: pointer;
    display: block;
}

.sm-cookie-toggle {
    width: 34px;
    height: 20px;
    accent-color: var(--sm-cc-gold);
    cursor: pointer;
}

.sm-cookie-modal__legal {
    margin: 10px 0 0;
    font-size: 10px;
    text-align: center;
    color: var(--sm-cc-muted);
}

.sm-cookie-modal__legal a {
    color: var(--sm-cc-gold) !important;
    text-decoration: none !important;
}

.sm-cookie-modal__legal a:hover {
    text-decoration: underline !important;
}

.sm-cookie-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid var(--sm-cc-border);
}

/* FAB — sol alt */
.sm-cookie-fab {
    position: fixed;
    left: 20px;
    right: auto;
    bottom: 20px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--sm-cc-border);
    border-radius: 8px;
    background: var(--sm-cc-bg);
    color: var(--sm-cc-gold);
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    z-index: 99989;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.sm-cookie-fab:hover {
    border-color: rgba(255, 188, 0, 0.35);
    color: #ffd54f;
}

.sm-cookie-fab[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .sm-cookie-fab--mobile-stack {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
        aspect-ratio: 1 / 1 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        border-radius: 50% !important;
        border: 1px solid rgba(255, 188, 0, 0.22) !important;
        background: rgba(12, 12, 14, 0.38) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22) !important;
        color: rgba(255, 188, 0, 0.65) !important;
        font-size: 11px !important;
        line-height: 1 !important;
        overflow: hidden !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 34px !important;
        align-self: center !important;
        flex-shrink: 0 !important;
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .sm-cookie-fab--mobile-stack i {
        color: rgba(255, 188, 0, 0.65) !important;
        filter: none;
        line-height: 1;
    }

    .sm-cookie-fab--mobile-stack:hover,
    .sm-cookie-fab--mobile-stack:focus-visible {
        color: rgba(255, 188, 0, 0.9) !important;
        background: rgba(16, 16, 18, 0.55) !important;
        border-color: rgba(255, 188, 0, 0.4) !important;
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3) !important;
    }

    .sm-cookie-fab--mobile-stack:active {
        background: rgba(255, 188, 0, 0.1) !important;
        border-color: rgba(255, 188, 0, 0.45) !important;
    }
}

/* Form consent (paylaşımlı) */
.sm-legal-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.sm-legal-consent input {
    margin-top: 3px;
    accent-color: #ffbc00;
    flex-shrink: 0;
}

.sm-legal-consent a {
    color: #ffbc00;
    text-decoration: underline;
}

@media (max-width: 520px) {
    .sm-cookie-banner {
        left: 14px;
        bottom: 14px;
    }

    .sm-cookie-fab:not(.sm-cookie-fab--mobile-stack) {
        left: 14px;
        bottom: 14px;
    }

    .sm-cookie-banner__inner {
        width: calc(100vw - 28px);
    }
}
