/* Cookie Consent Modal Styles */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.cookie-consent-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.cookie-consent-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 32px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.cookie-consent-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cookie-consent-title {
    flex: 1;
    padding-right: 40px;
}

.cookie-consent-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.cookie-consent-title p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-consent-close:hover {
    background-color: #f3f4f6;
    color: #4b5563;
}

.cookie-consent-content {
    padding: 24px 32px;
}

.cookie-consent-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-category-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.cookie-category-item:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-category-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.cookie-category-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.cookie-examples {
    font-size: 13px;
    color: #9ca3af;
}

.cookie-examples strong {
    color: #6b7280;
    font-weight: 600;
}

.cookie-examples ul {
    margin: 4px 0 0 0;
    padding-left: 20px;
}

.cookie-examples li {
    margin: 2px 0;
}

/* Custom Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 48px;
    height: 24px;
}

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

.cookie-toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: all 0.3s ease;
    border-radius: 24px;
}

.cookie-toggle-label .cookie-toggle-slider {
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-toggle-input:checked + .cookie-toggle-label {
    background-color: #10b981;
}

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

.cookie-toggle-input:disabled + .cookie-toggle-label {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-consent-actions {
    padding: 24px 32px 32px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.cookie-consent-links {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cookie-link {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #4b5563;
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

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

.cookie-btn-primary {
    background-color: #3b82f6;
    color: white;
}

.cookie-btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cookie-btn-secondary {
    background-color: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.cookie-btn-secondary:hover:not(:disabled) {
    background-color: #f3f4f6;
    color: #4b5563;
    border-color: #9ca3af;
}

.cookie-btn-success {
    background-color: #10b981;
    color: white;
}

.cookie-btn-success:hover:not(:disabled) {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-overlay {
        padding: 16px;
    }

    .cookie-consent-modal {
        max-height: 95vh;
    }

    .cookie-consent-header {
        padding: 24px 20px 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cookie-consent-icon {
        align-self: center;
    }

    .cookie-consent-title {
        padding-right: 0;
    }

    .cookie-consent-close {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .cookie-consent-content {
        padding: 20px;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-consent-actions {
        padding: 20px;
    }

    .cookie-consent-links {
        justify-content: center;
        margin-bottom: 16px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-btn {
        width: 100%;
        min-height: 48px;
    }

    .cookie-consent-title h2 {
        font-size: 20px;
    }

    .cookie-consent-title p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-overlay {
        padding: 12px;
    }

    .cookie-consent-header {
        padding: 20px 16px 16px;
    }

    .cookie-consent-content {
        padding: 16px;
    }

    .cookie-category-item {
        padding: 16px;
    }

    .cookie-consent-actions {
        padding: 16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cookie-consent-modal {
        background: #1f2937;
        color: #f3f4f6;
    }

    .cookie-consent-header {
        border-bottom-color: #374151;
    }

    .cookie-consent-title h2 {
        color: #f9fafb;
    }

    .cookie-consent-title p {
        color: #d1d5db;
    }

    .cookie-consent-close {
        color: #9ca3af;
    }

    .cookie-consent-close:hover {
        background-color: #374151;
        color: #d1d5db;
    }

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

    .cookie-category-item:hover {
        border-color: #4b5563;
        background-color: #1f2937;
    }

    .cookie-category-header h3 {
        color: #f9fafb;
    }

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

    .cookie-examples {
        color: #9ca3af;
    }

    .cookie-examples strong {
        color: #d1d5db;
    }

    .cookie-consent-actions {
        border-top-color: #374151;
        background-color: #111827;
    }

    .cookie-link {
        color: #d1d5db;
    }

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