/* ==========================================================================
   TTK ÇEREZ YÖNETİMİ - CSS
   ========================================================================== */

/* Genel Gizleme Sınıfı */
.ttk-cookie-hidden {
    display: none !important;
}

/* 1. ÇEREZ BANNER (Alt Orta / Sabit Bant) */
#ttk-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 950px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999998; /* Varda asistanının hemen alt katmanında */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #f8fafc;
}

.ttk-cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ttk-cookie-text {
    font-size: 13px;
    line-height: 1.5;
}

.ttk-cookie-text strong {
    font-size: 14px;
    color: #ff6600;
    display: block;
    margin-bottom: 4px;
}

.ttk-cookie-text p {
    margin: 0;
    color: #cbd5e1;
}

.ttk-cookie-text a {
    color: #38bdf8;
    text-decoration: underline;
}

/* Buton Grubu */
.ttk-cookie-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.ttk-cookie-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.ttk-btn-primary {
    background: #ff6600;
    color: #ffffff;
}

.ttk-btn-primary:hover {
    background: #e65c00;
}

.ttk-btn-secondary {
    background: #334155;
    color: #f8fafc;
}

.ttk-btn-secondary:hover {
    background: #475569;
}

.ttk-btn-link {
    background: transparent;
    color: #94a3b8;
    text-decoration: underline;
}

.ttk-btn-link:hover {
    color: #ffffff;
}

/* 2. TERCİH MODALI */
#ttk-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ttk-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.ttk-modal-box {
    position: relative;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    color: #f8fafc;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.ttk-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.ttk-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

#ttk-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
}

.ttk-cookie-category {
    margin-bottom: 12px;
}

.ttk-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 5px;
}

.ttk-cookie-category p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.ttk-modal-body hr {
    border: 0;
    border-top: 1px solid #1e293b;
    margin: 12px 0;
}

.ttk-modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    border-top: 1px solid #1e293b;
    padding-top: 12px;
}

/* Toggle Switch (Açma/Kapama) Stili */
.ttk-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.ttk-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ttk-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155;
    transition: .3s;
    border-radius: 20px;
}

.ttk-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .ttk-slider {
    background-color: #ff6600;
}

input:checked + .ttk-slider:before {
    transform: translateX(18px);
}

/* 3. YENİDEN AYAR AÇMA BUTONU (Çerez İkonu - Sol En Alt) */
#ttk-cookie-reopen-btn {
    position: fixed;
    bottom: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid #334155;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

#ttk-cookie-reopen-btn:hover {
    transform: scale(1.15);
    background: #ff6600;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .ttk-cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .ttk-cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}