/* =============================================
   COOKIE BANNER - Profesyonel Tasarım
   ============================================= */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0c2340 0%, #1a4a7a 100%);
    color: #fff;
    padding: 24px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    animation: slideUp 0.4s ease-out;
    backdrop-filter: blur(10px);
}

.cookie-banner.hidden {
    animation: slideDown 0.4s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

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

.cookie-banner-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.cookie-banner-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #b8860b, #d4a843);
    color: #fff;
    box-shadow: 0 4px 15px rgba(184,134,11,0.3);
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184,134,11,0.4);
}

.cookie-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

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

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cookie-settings-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.cookie-settings-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.95) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, rgba(12,35,64,0.05), rgba(184,134,11,0.05));
}

.cookie-settings-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0c2340;
    margin: 0;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.cookie-settings-close:hover {
    background: #f3f4f6;
    color: #0c2340;
}

.cookie-settings-body {
    padding: 24px;
}

.cookie-settings-intro {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Cookie Setting Item */
.cookie-setting-item {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.cookie-setting-item:hover {
    border-color: #b8860b;
    background: rgba(184,134,11,0.02);
}

.cookie-setting-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cookie-setting-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0c2340;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
}

.cookie-setting-info p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.cookie-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    flex-shrink: 0;
}

.cookie-checkbox {
    display: none;
}

.cookie-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-switch {
    width: 48px;
    height: 28px;
    background: #d1d5db;
    border-radius: 14px;
    position: relative;
    transition: all 0.3s ease;
    display: block;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cookie-checkbox:checked + .cookie-label .toggle-switch {
    background: #b8860b;
}

.cookie-checkbox:checked + .cookie-label .toggle-switch::after {
    left: 22px;
}

.cookie-checkbox:disabled + .cookie-label .toggle-switch {
    background: #10b981;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Cookie Settings Footer */
.cookie-settings-footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cookie-settings-footer .cookie-btn {
    flex: 1;
    justify-content: center;
    min-width: 120px;
    color: #fff;
    font-weight: 600;
}

.cookie-settings-footer .cookie-btn-primary {
    background: linear-gradient(135deg, #b8860b, #d4a843);
    color: #fff;
}

.cookie-settings-footer .cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184,134,11,0.4);
}

.cookie-settings-footer .cookie-btn-secondary {
    background: rgba(12, 35, 64, 0.1);
    color: #0c2340;
    border: 1px solid rgba(12, 35, 64, 0.2);
}

.cookie-settings-footer .cookie-btn-secondary:hover {
    background: rgba(12, 35, 64, 0.15);
    border-color: rgba(12, 35, 64, 0.3);
}

.cookie-settings-info {
    padding: 16px 24px;
    background: #f0fdf4;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.cookie-settings-info p {
    font-size: 0.85rem;
    color: #166534;
    margin: 0;
}

.cookie-settings-info a {
    color: #15803d;
    font-weight: 600;
    text-decoration: none;
}

.cookie-settings-info a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .cookie-settings-content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

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

    .cookie-setting-header {
        flex-direction: column;
    }

    .cookie-toggle {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 16px;
    }

    .cookie-banner-text h3 {
        font-size: 1rem;
    }

    .cookie-banner-text p {
        font-size: 0.85rem;
    }

    .cookie-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .cookie-settings-header h2 {
        font-size: 1.25rem;
    }

    .cookie-setting-item {
        padding: 12px;
    }
}
