/* Cookie Banner Styling */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 9999;
    border-top: 1px solid rgba(0,0,0,0.1);
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.cookie-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.cookie-simple-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-accept, 
.cookie-accept-necessary, 
.cookie-decline, 
.cookie-save-preferences,
.cookie-settings-toggle {
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.cookie-accept {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.cookie-accept:hover {
    box-shadow: 0 6px 8px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.cookie-accept-necessary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cookie-accept-necessary:hover {
    background: rgba(79, 70, 229, 0.1);
}

.cookie-decline {
    background: transparent;
    color: var(--text);
    border: 1px solid #D1D5DB;
}

.cookie-decline:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

.cookie-settings-toggle {
    background: transparent;
    color: var(--primary);
    border: none;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.cookie-settings-toggle:hover {
    text-decoration: underline;
}

.cookie-settings {
    display: none;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 1.25rem;
    background: rgba(249, 250, 251, 0.5);
}

.cookie-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.cookie-setting-item:last-of-type {
    border-bottom: none;
}

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

.cookie-setting-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.cookie-setting-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.cookie-toggle {
    position: relative;
    min-width: 3.5rem;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cookie-toggle label {
    position: relative;
    display: inline-block;
    width: 3.5rem;
    height: 2rem;
    background-color: #ccc;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-toggle label:after {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: white;
    top: 0.25rem;
    left: 0.25rem;
    transition: all 0.3s;
}

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

.cookie-toggle input:checked + label:after {
    transform: translateX(1.5rem);
}

.cookie-toggle input:disabled + label {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-save-preferences {
    background: var(--primary);
    color: white;
    margin-top: 1rem;
    width: 100%;
}

.cookie-footer {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
}

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

.cookie-footer a:hover {
    text-decoration: underline;
}

.cookie-legal {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Dark mode adjustments */
.dark-mode .cookie-settings {
    background: rgba(30, 41, 59, 0.5);
    border-color: #1E293B;
}

.dark-mode .cookie-setting-item {
    border-bottom-color: #334155;
}

.dark-mode .cookie-decline {
    border-color: #475569;
}

.dark-mode .cookie-decline:hover {
    background: #1E293B;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content {
        gap: 1rem;
    }
    
    .cookie-simple-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-accept, 
    .cookie-accept-necessary, 
    .cookie-decline, 
    .cookie-save-preferences {
        width: 100%;
    }
    
    .cookie-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cookie-settings-toggle {
        align-self: flex-end;
    }
}