/* Cookie Consent Banner Styles */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 2px solid var(--accent-color);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner-visible {
    transform: translateY(0);
    opacity: 1;
}

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

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

.cookie-banner-text h3 {
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.cookie-banner-text p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
}

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

.cookie-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.cookie-btn-accept {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.cookie-btn-accept:hover {
    background: #e68a00;
    border-color: #e68a00;
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

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

.cookie-btn-manage {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.cookie-btn-manage:hover {
    background: var(--glass-bg);
}

.cookie-btn-dns {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
    font-weight: 700;
}

.cookie-btn-dns:hover {
    background: var(--glass-bg);
    text-decoration: underline;
}

/* Cookie Widget (Floating Button) */
.cookie-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(204, 153, 51, 0.4);
}

.cookie-widget-visible {
    opacity: 1;
    transform: scale(1);
}

.cookie-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(204, 153, 51, 0.6);
}

.cookie-widget svg {
    color: white;
}

/* Cookie Management Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-modal-visible {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: var(--bg-primary);
    border: 2px solid var(--glass-border);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal-visible .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: var(--text-primary);
}

#cookie-modal-title {
    font-size: 1.75rem;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.cookie-modal-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 30px 0;
}

/* Cookie Categories */
.cookie-categories {
    margin-bottom: 30px;
}

.cookie-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    margin-bottom: 15px;
}

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

.cookie-category-info h4 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.cookie-category-info p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-secondary);
}

/* Toggle Switch */
.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--text-secondary);
    border-radius: 13px;
    transition: background 0.3s ease;
}

.slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

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

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

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

.toggle-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

/* Modal Actions */
.cookie-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn-save {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.cookie-btn-save:hover {
    background: #e68a00;
    border-color: #e68a00;
}

.cookie-btn-accept-all {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.cookie-btn-accept-all:hover {
    background: #e68a00;
    border-color: #e68a00;
}

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

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
        padding: 12px 16px;
    }

    .cookie-modal-content {
        padding: 30px 20px;
    }

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

    .cookie-modal-actions {
        flex-direction: column;
    }

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

    .cookie-widget {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
}

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

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

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

    .cookie-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .cookie-modal-content {
        width: 95%;
        padding: 20px 15px;
    }
}

/* Dark Theme Support */
[data-theme="dark"] .cookie-banner {
    background: var(--bg-primary);
    box-shadow: 0 -4px 20px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cookie-modal-content {
    background: var(--bg-primary);
}

[data-theme="dark"] .cookie-category {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

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

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

/* Print Styles */
@media print {
    .cookie-banner,
    .cookie-widget,
    .cookie-modal {
        display: none !important;
    }
}

/* Do Not Sell Link (CCPA) */
.do-not-sell-link {
    display: none;
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.do-not-sell-link:hover {
    color: var(--accent-color);
}

.do-not-sell-link.visible {
    display: inline;
}
