/* Cookie Consent Popup Styles */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--primary-background-color);
    color: var(--primary-text-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 500px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease-out;
}

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

.cookie-consent.hidden {
    display: none;
}

.cookie-consent h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-text-color);
}

.cookie-consent p {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary-text-color);
    opacity: 0.9;
}

.cookie-consent a {
    color: var(--primary-button-background-color);
    text-decoration: underline;
}

.cookie-consent a:hover {
    color: var(--primary-button-background-hover-color);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.cookie-btn-accept:hover {
    background: var(--primary-button-background-hover-color);
    color: var(--primary-button-foreground-hover-color);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--primary-text-color);
    border: 1px solid var(--primary-button-background-color);
}

.cookie-btn-decline:hover {
    background: var(--primary-button-background-hover-color);
    color: var(--primary-button-foreground-hover-color);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--primary-button-background-color);
    border: 1px solid var(--primary-button-background-color);
}

.cookie-btn-settings:hover {
    background: var(--primary-button-background-hover-color);
    color: var(--primary-button-foreground-hover-color);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.cookie-settings-modal.hidden {
    display: none;
}

.cookie-settings-content {
    background: var(--primary-background-color);
    color: var(--primary-text-color);
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-settings-content h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-text-color);
}

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

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

.cookie-category h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-text-color);
}

.cookie-category p {
    margin: 0;
    font-size: 14px;
    color: var(--primary-text-color);
    opacity: 0.8;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
    z-index: 0;
    pointer-events: none;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

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

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

.cookie-toggle input:disabled {
    cursor: not-allowed;
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: var(--primary-button-background-color);
    opacity: 0.7;
    pointer-events: auto;
    cursor: not-allowed;
}

.cookie-settings-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.cookie-btn-save {
    background: var(--primary-button-background-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-btn-save:hover {
    background: var(--primary-button-background-hover-color);
    color: var(--primary-button-foreground-hover-color);
}

.cookie-btn-save-decline {
    background: transparent;
    color: var(--primary-text-color);
    border: 1px solid var(--primary-button-background-color);
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-btn-save-decline:hover {
    background: var(--primary-button-background-hover-color);
    color: var(--primary-button-foreground-hover-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 16px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-btn {
        text-align: center;
        width: 100%;
    }
    
    .cookie-settings-content {
        padding: 20px;
        margin: 10px;
    }
    
    .cookie-settings-buttons {
        flex-direction: column;
    }
    
    .cookie-btn-save,
    .cookie-btn-save-decline {
        width: 100%;
        text-align: center;
    }
} 