/* === COOKIE POPUP === */
#cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: var(--space-lg);
    z-index: 9999;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

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

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
    min-width: 280px;
}

.cookie-content a {
    color: var(--accent);
}

.cookie-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
}

.cookie-btn-accept {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.cookie-btn-accept:hover {
    background: var(--accent-dim);
    border-color: var(--accent-dim);
}

.cookie-btn-reject {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.cookie-btn-reject:hover {
    border-color: var(--text-muted);
    color: var(--text);
    background: var(--bg);
}

/* === NEWSLETTER FORM === */
.newsletter-section {
    background: var(--gradient-accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: var(--space-xl);
    margin: var(--space-2xl) 0;
    box-shadow: var(--shadow-sm);
}

.newsletter-section h3 {
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

.newsletter-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 200px;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.newsletter-input::placeholder {
    color: var(--text-dim);
}

.newsletter-btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: var(--space-sm) var(--space-lg);
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.newsletter-btn:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.newsletter-btn:disabled {
    background: var(--text-dim);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.newsletter-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: var(--space-sm);
}

.newsletter-note a {
    color: var(--text-muted);
}

.newsletter-message {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    padding: var(--space-sm);
    border-radius: var(--radius);
}

.newsletter-message.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    #cookie-popup {
        padding: var(--space-md);
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}
