/* Cookie Popup Styles - Modern Design */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-dark);
    z-index: 1000;
    max-width: 95%;
    width: 800px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Cookie Content */
.cookie-content {
    padding: 1.5rem;
}

/* Cookie Header */
.cookie-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cookie-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cookie-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-heading);
}

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

/* Cookie Buttons */
.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: var(--primary-gradient);
    color: var(--primary-contrast);
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-shadow);
}

.cookie-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.cookie-btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.cookie-btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.cookie-btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

/* Settings Panel */
.cookie-settings-panel {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 1.5rem;
    max-height: 350px;
    overflow-y: auto;
    flex: 1;
}

.cookie-settings-content h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: var(--text-heading);
}

/* Cookie Categories */
.cookie-category {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

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

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.cookie-category-info {
    flex: 1;
    min-width: 0; /* Prevents text overflow */
}

.cookie-category-info strong {
    display: block;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.cookie-category-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin-top: 2px;
    flex-shrink: 0; /* Prevents shrinking */
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-light);
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

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

.cookie-switch input:focus + .cookie-slider {
    box-shadow: 0 0 1px var(--primary-color);
}

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

.cookie-switch input:disabled + .cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Settings Buttons */
.cookie-settings-buttons {
    margin-top: 1.5rem;
    text-align: center;
}

.cookie-popup-content {
    text-align: center;
}

.cookie-popup-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.cookie-popup-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.cookie-popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cookie-popup-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-popup-accept {
    background: var(--primary-gradient);
    color: var(--primary-contrast);
    border: none;
}

.cookie-popup-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-shadow);
}

.cookie-popup-decline {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.cookie-popup-decline:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.cookie-popup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-popup-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Animations */
.cookie-popup-show {
    animation: slideUp 0.3s ease-out;
}

.cookie-popup-hide {
    animation: slideDown 0.3s ease-in;
}

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

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cookie-popup {
        width: 95%;
        bottom: 10px;
        max-height: 80vh;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-settings-panel {
        max-height: 250px;
    }
    
    .cookie-category-header {
        gap: 1rem;
    }
    
    .cookie-category {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cookie-popup {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
    }

    .cookie-popup-show {
        animation: slideUpMobile 0.3s ease-out;
    }

    .cookie-popup-hide {
        animation: slideDownMobile 0.3s ease-in;
    }

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

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

    .cookie-content {
        padding: 1.25rem;
    }

    .cookie-header {
        margin-bottom: 0.75rem;
    }

    .cookie-description {
        margin-bottom: 1.25rem;
        font-size: 0.9rem;
    }

    .cookie-settings-panel {
        padding: 1rem;
        max-height: 200px;
    }

    .cookie-category {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .cookie-category-header {
        gap: 0.75rem;
    }
} 