/**
 * Cookie Yönetim Sistemi - Stil Dosyası
 * Modern, Responsive ve Erişilebilir
 */

/* ============================================
   COOKIE BANNER - Ana Onay Barı
   ============================================ */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
}

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

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 300px;
}

.cookie-banner-icon {
    flex-shrink: 0;
    animation: cookieBounce 2s infinite;
}

@keyframes cookieBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.cookie-link {
    color: #FFD700;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #FFA500;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* ============================================
   COOKIE BUTTONS - Düğmeler
   ============================================ */

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.cookie-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: 2px solid transparent;
}

.cookie-btn-secondary:hover {
    background: white;
    border-color: #667eea;
}

.cookie-btn-minimal {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-minimal:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   COOKIE MODAL - Ayarlar Modal
   ============================================ */

.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.cookie-modal-overlay.show {
    opacity: 1;
}

.cookie-modal-container {
    width: 100%;
    max-width: 700px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal-overlay.show .cookie-modal-container {
    transform: scale(1);
}

.cookie-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cookie-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.cookie-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-info-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 100%);
    border-left: 4px solid #667eea;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.cookie-info-box i {
    color: #667eea;
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.cookie-info-box p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================
   COOKIE CATEGORIES - Kategori Kartları
   ============================================ */

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-category-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #667eea;
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.cookie-category-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-category-info {
    display: flex;
    align-items: start;
    gap: 1rem;
    flex: 1;
}

.cookie-category-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.cookie-category-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.cookie-category-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ============================================
   TOGGLE SWITCH - Anahtar
   ============================================ */

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    transition: 0.4s;
    border-radius: 30px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .cookie-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.cookie-switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-switch.disabled .cookie-slider {
    cursor: not-allowed;
}

/* ============================================
   MODAL FOOTER
   ============================================ */

.cookie-modal-footer {
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ============================================
   COOKIE LINKS
   ============================================ */

.cookie-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-policy-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.cookie-policy-link:hover {
    color: #764ba2;
    gap: 0.75rem;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.cookie-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.cookie-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-toast-success {
    border-left: 4px solid #10b981;
}

.cookie-toast-success i {
    color: #10b981;
    font-size: 1.25rem;
}

.cookie-toast-info {
    border-left: 4px solid #3b82f6;
}

.cookie-toast-info i {
    color: #3b82f6;
    font-size: 1.25rem;
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    .cookie-modal-content {
        background: #1f2937;
        color: white;
    }

    .cookie-category-item {
        background: #374151;
        border-color: #4b5563;
    }

    .cookie-category-item:hover {
        background: #4b5563;
    }

    .cookie-category-title {
        color: white;
    }

    .cookie-category-desc {
        color: #d1d5db;
    }

    .cookie-info-box {
        background: rgba(102, 126, 234, 0.1);
        border-left-color: #667eea;
    }

    .cookie-info-box p {
        color: #e5e7eb;
    }

    .cookie-modal-footer {
        background: #374151;
        border-top-color: #4b5563;
    }

    .cookie-links {
        border-top-color: #4b5563;
    }

    .cookie-toast {
        background: #1f2937;
        color: white;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
    }

    .cookie-banner-container {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        min-width: auto;
    }

    .cookie-banner-icon {
        margin: 0 auto;
    }

    .cookie-banner-title {
        font-size: 1.1rem;
        justify-content: center;
    }

    .cookie-banner-description {
        font-size: 0.9rem;
    }

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

    .cookie-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.25rem;
    }

    .cookie-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .cookie-modal-container {
        max-width: 100%;
    }

    .cookie-modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }

    .cookie-modal-title {
        font-size: 1.25rem;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-switch {
        align-self: flex-end;
    }

    .cookie-modal-footer {
        flex-direction: column-reverse;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }

    .cookie-toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner-icon svg {
        width: 36px;
        height: 36px;
    }

    .cookie-category-icon {
        font-size: 1.5rem;
    }

    .cookie-info-box {
        font-size: 0.875rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.cookie-btn:focus,
.cookie-modal-close:focus,
.cookie-switch input:focus + .cookie-slider {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-modal-overlay,
    .cookie-toast,
    .cookie-btn,
    .cookie-category-item {
        transition: none;
    }

    @keyframes cookieBounce {
        0%, 100% {
            transform: none;
        }
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .cookie-consent-banner,
    .cookie-modal-content {
        border: 2px solid currentColor;
    }

    .cookie-btn {
        border: 2px solid currentColor;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .cookie-consent-banner,
    .cookie-modal-overlay,
    .cookie-toast {
        display: none !important;
    }
}
