html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
}

/* Banner aşağıdan yukarı açılacak */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 598px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    padding: 18px 22px;
    display: none;
    align-items: flex-start;
    gap: 16px;
    z-index: 9999;
}

    /* Ayarlar açıkken butonları gizle */
    .cookie-banner.settings-open .cookie-buttons {
        display: none;
    }

/* Ayarlar paneli: yukarı doğru genişleme (bottom anchored) */
.cookie-settings {
    width: 100%;
    overflow: hidden;
    max-height: 0; /* kapalı */
    transition: max-height .45s ease; /* smooth */
}

.cookie-banner.settings-open .cookie-settings {
    max-height: 70vh;
    overflow: auto; 
    -webkit-overflow-scrolling: touch;
}


.settings-info {
    font-size: 14px;
    color: #555;
    margin: 6px 0 12px;
}

.cookie-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #f2f2f5;
}

    .cookie-row:first-of-type {
        border-top: none;
    }

.cookie-text small {
    display: block;
    color: #6b7280;
    margin-top: 2px;
}

.pill {
    background: #f3e8ff;
    color: #6a0dad;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #e5e7eb;
    transition: .25s;
    border-radius: 999px;
}

    .slider:before {
        content: "";
        position: absolute;
        height: 20px;
        width: 20px;
        left: 3px;
        top: 3px;
        background: white;
        border-radius: 50%;
        transition: .25s;
        box-shadow: 0 1px 3px rgba(0,0,0,.15);
    }

.switch input:checked + .slider {
    background: #6a0dad;
}

    .switch input:checked + .slider:before {
        transform: translateX(20px);
    }

/* Kaydet */
.settings-actions {
    text-align: right;
    margin-top: 12px;
}

#saveSettings {
    background: #6a0dad;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .2s;
}

    #saveSettings:hover {
        opacity: .9;
    }


.cookie-icon {
    flex-shrink: 0;
    font-size: 38px;
    color: #6a0dad; /* Payker moru */
}

.cookie-content p {
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.cookie-content a {
    color: #6a0dad;
    font-weight: 500;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .cookie-buttons button {
        border: none;
        padding: 8px 14px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.25s ease;
    }

#acceptCookies {
    background: #6a0dad;
    color: #fff;
}

#rejectCookies {
    background: #f2f2f2;
    color: #333;
}

#settingsCookies {
    background: transparent;
    color: #6a0dad;
    border: 1px solid #6a0dad;
}

.cookie-buttons button:hover {
    opacity: 0.9;
}

@media (max-width: 575.98px) {
    .cookie-banner {
        left: 12px; /* kenarlardan nefes */
        right: 12px;
        transform: none; /* ortalamayı kaldır, sağ/sol ile hizala */
        width: auto;
        bottom: 12px;
        padding: 14px;
        border-radius: 12px;
        gap: 12px;
    }

    .cookie-icon {
        display: none;
    }
    /* ikon yer kaplamasın */

    .cookie-content p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .cookie-buttons {
        width: 100%;
        gap: 8px;
    }

        .cookie-buttons button {
            flex: 1 1 0; /* butonları esnet, küçük ekranda yan yana/alta */
            min-width: 0;
            padding: 10px 12px;
            font-size: 14px;
        }

    /* Ayarlar açıkken panel yükseklik ve scroll */
    .cookie-banner.settings-open .cookie-settings {
        max-height: 65vh; /* yukarı doğru genişlerken ekrana sığsın */
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Metin solda, toggle sağda; uzun metinde hizalama bozulmasın */
    .cookie-row {
        display: grid;
        grid-template-columns: 1fr auto; /* metin | toggle */
        gap: 10px;
        align-items: center;
        padding: 12px 0;
    }

    .cookie-text small {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Toggle’ları biraz büyüt, dokunması kolay olsun */
    .switch {
        width: 52px;
        height: 28px;
    }

    .slider:before {
        width: 22px;
        height: 22px;
        top: 3px;
        left: 3px;
    }

    .switch input:checked + .slider:before {
        transform: translateX(24px);
    }

     .back-btn {
        font-size: 15px;
        margin-bottom: 4px;
    }
    .settings-header h4 {
        font-size: 17px;
        
    }
}

/* --- Yeni düğme stilleri ve üst bar --- */
.cookie-buttons .outline-btn {
    background: transparent;
    color: #6a0dad;
    border: 1px solid #6a0dad;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .cookie-buttons .outline-btn i {
        font-size: 16px;
    }

.settings-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
}

    .settings-header h4 {
        margin: 6px 0 0;
        text-align: left;
        font-size: 18px;
        color: #333;
        width: 100%;
    }

.back-btn {
    align-self: flex-start;
    background: transparent;
    border: none;
    color: #6a0dad;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

    .back-btn:hover {
        background: rgba(106, 13, 173, 0.08);
    }


/* Tablet aralığı: biraz daha ferah ve yüksek panel */
@media (min-width: 576px) and (max-width: 991.98px) {
    .cookie-banner {
        padding: 16px 18px;
    }

        .cookie-banner.settings-open .cookie-settings {
            max-height: 60vh;
            overflow: auto;
        }

    .cookie-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
    }
}