/**
 * Cookie Consent Banner Styles
 * Modern, GDPR-compliant cookie banner
 */

/* Cookie Banner (Bottom Bar) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0A1424;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

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

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E2C487;
}

.cookie-banner-text {
    flex: 1;
    min-width: 0;
}

.cookie-banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

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

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-cookie-settings {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cookie-settings:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-cookie-accept {
    background: #D6B370;
    color: #0E1A2B;
}

.btn-cookie-accept:hover {
    background: #E2C487;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(214, 179, 112, 0.35);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

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

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

.cookie-settings-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

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

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.cookie-settings-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #6b7280;
    border-radius: 8px;
    transition: all 0.2s;
}

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

.cookie-settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cookie-settings-intro {
    margin: 0 0 2rem 0;
    color: #6b7280;
    line-height: 1.6;
}

/* Cookie Categories */
.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

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

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-category-info h3 svg {
    flex-shrink: 0;
}

.cookie-category-badge {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    background: #10b981;
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

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

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

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

.cookie-toggle label {
    position: relative;
    display: block;
    width: 48px;
    height: 28px;
    background: #d1d5db;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-toggle label:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input[type="checkbox"]:checked + label {
    background: #10b981;
}

.cookie-toggle input[type="checkbox"]:checked + label:after {
    transform: translateX(20px);
}

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

.cookie-toggle label.toggle-disabled:after {
    transform: translateX(20px);
}

/* Cookie Settings Links */
.cookie-settings-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1.5rem;
}

.cookie-settings-links a {
    color: #8A6A2C;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.cookie-settings-links a:hover {
    color: #6B5222;
    text-decoration: underline;
}

/* Cookie Settings Footer */
.cookie-settings-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.cookie-settings-footer button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-cookie-reject:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

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

.btn-cookie-save:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-cookie-accept-all {
    background: #D6B370;
    color: #0E1A2B;
}

.btn-cookie-accept-all:hover {
    background: #E2C487;
    box-shadow: 0 4px 12px rgba(214, 179, 112, 0.35);
}

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

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

    .cookie-banner-actions button {
        width: 100%;
        justify-content: center;
    }

    .cookie-settings-header {
        padding: 1.25rem 1.5rem;
    }

    .cookie-settings-body {
        padding: 1.5rem;
    }

    .cookie-settings-footer {
        flex-direction: column;
        padding: 1.25rem 1.5rem;
    }

    .cookie-settings-links {
        flex-direction: column;
        gap: 0.75rem;
    }

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

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

/* Smooth Scrollbar */
.cookie-settings-body::-webkit-scrollbar {
    width: 8px;
}

.cookie-settings-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cookie-settings-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.cookie-settings-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}