/* Cookie Consent Banner and Modal Styles */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid var(--accent-color);
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.2rem;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.9;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.cookie-btn-accept-all:hover {
    background: #e91e7c;
    transform: translateY(-1px);
}

.cookie-btn-essential {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-btn-essential:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.cookie-btn-preferences {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid transparent;
}

.cookie-btn-preferences:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.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.7);
    backdrop-filter: blur(4px);
}

.cookie-preferences-content {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.cookie-preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-preferences-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.cookie-preferences-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-preferences-close:hover {
    background: #f0f0f0;
    color: var(--error-color);
}

.cookie-preferences-body {
    padding: 2rem;
}

.cookie-preferences-body > p {
    margin: 0 0 2rem 0;
    color: #666;
    line-height: 1.5;
}

.cookie-category-setting {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.cookie-category-setting:last-child {
    margin-bottom: 0;
}

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

.cookie-category-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cookie-category-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

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

.toggle-label {
    position: relative;
    display: block;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-label:hover {
    background: #bbb;
}

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

.cookie-toggle input:disabled + .toggle-label {
    background: var(--success-color);
    cursor: not-allowed;
    opacity: 0.7;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.toggle-text {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.cookie-preferences-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1rem 2rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.cookie-btn-save {
    background: var(--primary-color);
    color: white;
}

.cookie-btn-save:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

.cookie-btn-cancel {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.cookie-btn-cancel:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

.cookie-preferences-links {
    text-align: center;
    padding: 0 2rem 2rem 2rem;
    font-size: 0.85rem;
}

.cookie-preferences-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-preferences-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Cookie Confirmation */
.cookie-confirmation {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cookie-confirmation.show {
    transform: translateX(0);
}

.cookie-confirmation-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Cookie Preferences Link (for footer) - styled like other footer links */
.cookie-preferences-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-preferences-link:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .cookie-preferences-content {
        width: 95vw;
        max-height: 95vh;
    }
    
    .cookie-preferences-header,
    .cookie-preferences-body,
    .cookie-preferences-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .cookie-category-setting {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-toggle {
        justify-content: center;
    }
    
    .cookie-preferences-footer {
        flex-direction: column;
    }
    
    .cookie-confirmation {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
        text-align: center;
    }
    
    .cookie-confirmation.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        font-size: 0.85rem;
        padding: 0.875rem;
    }
}