/**
 * Cookie Consent Styles
 * Modern, minimalist ve mobil uyumlu tasarım
 */

/* ============================================
   Cookie Consent Banner
   ============================================ */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #667eea;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cookie-consent-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 2rem;
    }
}

.cookie-consent-content {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.cookie-consent-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
}

.cookie-consent-text p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
}

.cookie-consent-links {
    font-size: 0.875rem;
}

.cookie-consent-links a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-consent-links a:hover {
    color: #5568d3;
}

.cookie-consent-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cookie-consent-actions {
        flex-direction: row;
        gap: 1rem;
    }
}

/* ============================================
   Buttons
   ============================================ */

.cookie-consent-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
}

.cookie-consent-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.cookie-consent-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cookie-consent-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.cookie-consent-btn-secondary:hover {
    background: #cbd5e0;
}

.cookie-consent-btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.cookie-consent-btn-outline:hover {
    background: #667eea;
    color: #ffffff;
}

/* ============================================
   Preferences Modal
   ============================================ */

.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cookie-preferences-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-preferences-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cookie-preferences-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-preferences-modal.show .cookie-preferences-dialog {
    transform: scale(1);
}

.cookie-preferences-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-preferences-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
}

.cookie-preferences-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.cookie-preferences-close:hover {
    background: #f7fafc;
    color: #1a202c;
}

.cookie-preferences-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-preferences-intro {
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
}

.cookie-category {
    padding: 1.25rem;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.cookie-category:hover {
    border-color: #e2e8f0;
    background: #ffffff;
}

.cookie-category-header {
    margin-bottom: 0.5rem;
}

.cookie-category-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: #1a202c;
}

.cookie-category-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.cookie-category-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-name {
    flex: 1;
    font-size: 1rem;
}

.cookie-category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-category-description {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #718096;
    padding-left: 2rem;
}

.cookie-preferences-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ============================================
   Mobile Responsive
   ============================================ */

@media (max-width: 767px) {
    .cookie-consent-container {
        padding: 1rem;
    }

    .cookie-consent-content {
        flex-direction: column;
    }

    .cookie-consent-icon {
        font-size: 2rem;
    }

    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }

    .cookie-consent-text p {
        font-size: 0.875rem;
    }

    .cookie-consent-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
    }

    .cookie-preferences-dialog {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-preferences-header {
        padding: 1rem 1.25rem;
    }

    .cookie-preferences-header h2 {
        font-size: 1.25rem;
    }

    .cookie-preferences-body {
        padding: 1.25rem;
    }

    .cookie-preferences-footer {
        padding: 1rem 1.25rem;
        flex-direction: column;
    }

    .cookie-category {
        padding: 1rem;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.cookie-consent-btn:focus,
.cookie-preferences-close:focus,
.cookie-category-label input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-preferences-modal,
    .cookie-preferences-dialog,
    .cookie-consent-btn,
    .cookie-category {
        transition: none;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: #1a202c;
        border-top-color: #667eea;
    }

    .cookie-consent-text h3 {
        color: #f7fafc;
    }

    .cookie-consent-text p {
        color: #cbd5e0;
    }

    .cookie-consent-btn-secondary {
        background: #2d3748;
        color: #e2e8f0;
    }

    .cookie-consent-btn-secondary:hover {
        background: #4a5568;
    }

    .cookie-preferences-dialog {
        background: #1a202c;
    }

    .cookie-preferences-header {
        border-bottom-color: #2d3748;
    }

    .cookie-preferences-header h2 {
        color: #f7fafc;
    }

    .cookie-preferences-close {
        color: #cbd5e0;
    }

    .cookie-preferences-close:hover {
        background: #2d3748;
        color: #f7fafc;
    }

    .cookie-preferences-intro {
        color: #cbd5e0;
    }

    .cookie-category {
        background: #2d3748;
    }

    .cookie-category:hover {
        border-color: #4a5568;
        background: #2d3748;
    }

    .cookie-category-label {
        color: #f7fafc;
    }

    .cookie-category-description {
        color: #a0aec0;
    }

    .cookie-preferences-footer {
        border-top-color: #2d3748;
    }
}

/* ============================================
   Print
   ============================================ */

@media print {
    .cookie-consent-banner,
    .cookie-preferences-modal {
        display: none !important;
    }
}
