/* Enhanced Cookie Banner Styles for SelectionWise */
/* css/cookie-banner.css */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Step 1: Initial Banner */
.cookie-step-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #3498db;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 280px;
    justify-content: flex-end;
}

/* Step 2: Preferences */
.cookie-step-2 {
    display: none;
}

.cookie-step-2.active {
    display: block;
}

.preferences-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.preferences-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.cookie-icon {
    font-size: 1.5rem;
}

.preferences-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-category {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.category-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.category-description {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.3);
    transition: .3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #FF4500;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-slider.disabled {
    background-color: rgba(255,255,255,0.5);
    cursor: not-allowed;
}

.toggle-slider.disabled:before {
    background-color: #bdc3c7;
}

/* Always On Badge */
.always-on-badge {
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Button Styles */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.cookie-btn-accept {
    background: #FF4500;
    color: white;
}

.cookie-btn-accept:hover {
    background: #e63e00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,69,0,0.3);
}

.cookie-btn-preferences {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.cookie-btn-preferences:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
}

.cookie-btn-decline {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

.cookie-btn-save {
    background: #27ae60;
    color: white;
}

.cookie-btn-save:hover {
    background: #229954;
    transform: translateY(-1px);
}

.cookie-btn-back {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.3);
    min-width: 80px;
}

.cookie-btn-back:hover {
    background: rgba(255,255,255,0.1);
}

.preferences-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-step-1 {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .preferences-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .preferences-actions .cookie-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-text p {
        font-size: 0.95rem;
    }
    
    .cookie-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}