/**
 * Cookie Consent Banner Styles
 * CO-READIT - GDPR/CCPA Compliant Cookie Banner
 */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
    padding: 1rem 1.5rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    border-top: 3px solid #3b82f6;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    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 h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner-text h4 svg {
    width: 20px;
    height: 20px;
    fill: #3b82f6;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #60a5fa;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #93c5fd;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #10b981;
    color: white;
}

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

.cookie-btn-decline {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
}

.cookie-btn-decline:hover {
    background: #334155;
    color: #f8fafc;
}

.cookie-btn-settings {
    background: transparent;
    color: #60a5fa;
    border: 1px solid #3b82f6;
}

.cookie-btn-settings:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-banner-text {
        min-width: 100%;
    }
    
    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}

/* Dark mode adjustments (if needed) */
@media (prefers-color-scheme: dark) {
    .cookie-banner {
        background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    }
}

/* Cookie preferences modal (optional enhancement) */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-modal-overlay.show {
    display: flex;
}

.cookie-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.cookie-modal h3 {
    margin: 0 0 1rem 0;
    color: #0f172a;
}

.cookie-category {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-category:last-child {
    border-bottom: none;
}

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

.cookie-category-name {
    font-weight: 600;
    color: #1e293b;
}

.cookie-category-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}
