/* ================================================================
   4Dimension — Cookie Consent Banner
   Drawer panel · KVKK / GDPR compliant · TR + EN
   ================================================================ */

/* ─── Banner konteyner ─────────────────────────────────────────── */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    padding: 0 1rem 0.75rem;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.26, 0.64, 1),
                opacity 0.35s ease;
    pointer-events: none;
}

#cookie-consent-banner.cc-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* ─── İç kart ──────────────────────────────────────────────────── */
#cookie-consent-banner .cc-inner {
    width: 100%;
    max-width: 860px;
    background: rgba(14, 20, 36, 0.92);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 1rem 1.5rem 0.9rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* ─── Başlık + metin bloku (sol taraf) ────────────────────────── */
#cookie-consent-banner .cc-content {
    flex: 1;
    min-width: 0;
}

#cookie-consent-banner .cc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

#cookie-consent-banner .cc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f0f6ff;
    letter-spacing: 0.01em;
    margin: 0;
}

/* ─── Metin ─────────────────────────────────────────────────────── */
#cookie-consent-banner .cc-body {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0 0 0.25rem;
}

#cookie-consent-banner .cc-necessary {
    font-size: 0.75rem;
    color: #4ade80;
    margin: 0;
    opacity: 0.85;
}

/* ─── Butonlar ─────────────────────────────────────────────────────── */
#cookie-consent-banner .cc-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ─── Butonlar (eski cc-actions alias) ─────────────────────── */
#cookie-consent-banner .cc-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

#cookie-consent-banner .cc-btn {
    width: 140px;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

#cookie-consent-banner .cc-btn:hover {
    transform: translateY(-2px);
}

#cookie-consent-banner .cc-btn:active {
    transform: translateY(0);
    opacity: 0.85;
}

/* Kabul butonu */
#cookie-consent-banner .cc-btn-accept {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4);
}

#cookie-consent-banner .cc-btn-accept:hover {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.55);
}

/* Reddet butonu */
#cookie-consent-banner .cc-btn-reject {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#cookie-consent-banner .cc-btn-reject:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ─── Footer link ────────────────────────────────────────────────── */
#cookie-consent-banner .cc-footer {
    font-size: 0.72rem;
    text-align: center;
    margin-top: 0.3rem;
}

#cookie-consent-banner .cc-policy-link {
    font-size: 0.78rem;
    color: #475569;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

#cookie-consent-banner .cc-policy-link:hover {
    color: #94a3b8;
}

/* ─── Footer çerez ayarları butonu ─────────────────────────────── */
.footer-cookie-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-cookie-btn:hover {
    opacity: 1;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
    #cookie-consent-banner {
        padding: 0 0.5rem 0.6rem;
    }

    #cookie-consent-banner .cc-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1rem 0.85rem;
        border-radius: 12px;
        gap: 0.75rem;
    }

    #cookie-consent-banner .cc-actions {
        flex-direction: row;
        justify-content: stretch;
    }

    #cookie-consent-banner .cc-btn {
        width: 100%;
        flex: 1;
    }
}

/* ─── Çerez politikası sayfası içerik stilleri ─────────────────── */
.page-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.88rem;
}

.page-content-body th,
.page-content-body td {
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    text-align: left;
    vertical-align: top;
}

.page-content-body th {
    background: rgba(37, 99, 235, 0.15);
    font-weight: 600;
    color: #93c5fd;
}

.page-content-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: #f0f6ff;
}

.page-content-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 1.5rem 0;
}

.page-content-body ul {
    padding-left: 1.5rem;
    line-height: 1.85;
}

.page-content-body code {
    background: rgba(255, 255, 255, 0.07);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
    color: #93c5fd;
}

.page-content-body a {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 2px;
}
