/* =====================================================
   KVKK ÇEREZ İZNİ (COOKIE CONSENT) STYLES
   ===================================================== */

:root {
    --cookie-bg: var(--bg-card);
    --cookie-border: var(--border-color);
    --cookie-text: var(--text-primary);
    --cookie-text-secondary: var(--text-secondary);
    --cookie-shadow: var(--shadow-xl);
    --cookie-btn-accept-bg: var(--accent-gradient);
    --cookie-btn-accept-hover: var(--accent-hover);
    --cookie-btn-reject-bg: transparent;
    --cookie-btn-reject-border: var(--border-color);
    --cookie-btn-reject-hover: var(--bg-secondary);
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--cookie-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    padding: var(--space-4) 0;
    transform: translateY(100%);
    transition: transform var(--duration-500) var(--ease-out);
    visibility: hidden;
}

/* Dark mode için */
[data-theme="dark"] .cookie-consent {
    background: rgba(30, 30, 40, 0.98);
}

.cookie-consent.show {
    transform: translateY(0);
    visibility: visible;
}

/* Cookie Consent Inner */
.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

/* Cookie Content */
.cookie-content {
    flex: 1;
    min-width: 0;
}

.cookie-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--cookie-text);
    margin: 0 0 var(--space-2) 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.cookie-title svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.cookie-description {
    font-size: var(--text-sm);
    color: var(--cookie-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.cookie-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: color var(--duration-200);
}

.cookie-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Cookie Actions */
.cookie-actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-200) var(--ease-out);
    white-space: nowrap;
    border: 1px solid transparent;
}

/* Accept Button */
.cookie-btn-accept {
    background: var(--cookie-btn-accept-bg);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.cookie-btn-accept:hover {
    background: var(--cookie-btn-accept-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.cookie-btn-accept:active {
    transform: translateY(0);
}

/* Reject Button */
.cookie-btn-reject {
    background: var(--cookie-btn-reject-bg);
    color: var(--cookie-text);
    border-color: var(--cookie-btn-reject-border);
}

.cookie-btn-reject:hover {
    background: var(--cookie-btn-reject-hover);
    border-color: var(--border-hover);
}

/* Settings Button (Small Icon) */
.cookie-btn-settings {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.cookie-btn-settings:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Floating Settings Button (when consent is given) */
.cookie-settings-float {
    position: fixed;
    bottom: 100px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all var(--duration-200) var(--ease-out);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.cookie-settings-float.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.cookie-settings-float:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.05);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-300) var(--ease-out);
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-modal-inner {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--cookie-shadow);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform var(--duration-300) var(--ease-out);
}

.cookie-settings-modal.show .cookie-settings-modal-inner {
    transform: scale(1);
}

.cookie-settings-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-settings-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin: 0;
    color: var(--cookie-text);
}

.cookie-settings-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--duration-200);
}

.cookie-settings-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.cookie-settings-body {
    padding: var(--space-6);
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: var(--space-5);
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.cookie-category-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    margin: 0;
    color: var(--cookie-text);
}

.cookie-category-description {
    font-size: var(--text-sm);
    color: var(--cookie-text-secondary);
    margin: var(--space-2) 0 0 0;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.cookie-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: 13px;
    transition: background var(--duration-200);
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--duration-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--accent-primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(22px);
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle.disabled input {
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-settings-float {
        bottom: 90px;
        left: 16px;
    }
}

/* RTL Support */
[dir="rtl"] .cookie-toggle-slider::before {
    left: auto;
    right: 3px;
}

[dir="rtl"] .cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(-22px);
}
