/**
 * EMERGENCY FIX CSS
 * Critical overrides only - keep this file minimal!
 * Site-wide styles belong in design-system.css
 * Profile-specific styles belong in profile-*.css files
 */

/* ========================================
   CRITICAL ANSPRESS OVERRIDES
   ======================================== */

/* Hide AnsPress credit */
.ap-cradit {
    display: none !important;
}

/* AnsPress Questions List */
.ap-questions-item {
    background: white !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(139, 92, 246, 0.08) !important;
    transition: all 0.3s ease !important;
}

.ap-questions-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.ap-questions-title a {
    color: #1a202c !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.ap-questions-title a:hover {
    color: #8b5cf6 !important;
}

/* AnsPress Buttons */
.ap-btn-ask {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25) !important;
    border: none !important;
    text-decoration: none !important;
}

.ap-btn-ask:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35) !important;
    color: white !important;
}

/* ========================================
   CRITICAL LAYOUT FIXES
   ======================================== */

/* Ensure main content area is not constrained */
.site-main,
.page-content,
#content {
    max-width: 100% !important;
    width: 100% !important;
}

/* Question page needs contained width with proper margins */
.anspress,
#anspress {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* Fix for AnsPress form groups */
.ap-form-group {
    margin-bottom: 1.5rem !important;
}

.ap-form-group label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    font-size: 0.95rem !important;
}

.ap-form-group input[type="text"],
.ap-form-group input[type="email"],
.ap-form-group textarea,
.ap-form-group select {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background: #f8fafc !important;
    color: #2d3748 !important;
}

.ap-form-group input:focus,
.ap-form-group textarea:focus,
.ap-form-group select:focus {
    outline: none !important;
    border-color: #8b5cf6 !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

/* ========================================
   DEBUG & VISIBILITY FIXES
   ======================================== */

/* Hide debug info */
.debug-info {
    display: none !important;
}

/* Ensure critical elements are visible */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ========================================
   NOTES FOR DEVELOPERS
   ======================================== */
/*
 * This file should remain under 200 lines
 * If you're adding more than a quick fix:
 *   - Typography → design-system.css
 *   - Profile styles → profile-*.css
 *   - Question page → question-page*.css
 *   - Category page → anspress-category.css
 *   - Site-wide components → design-system.css
 */
