/**
 * Help Center - Common Styles
 * Shared CSS for all help pages to reduce inline code duplication
 */

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.help-center {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.help-header {
    text-align: center;
    margin-bottom: 50px;
}

.help-header-icon {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.help-header h1 {
    font-size: 2.8rem;
    color: #1f2937;
    margin-bottom: 15px;
}

.help-header .subtitle {
    font-size: 1.3rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.help-section-title {
    color: #1f2937;
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
}

.help-section-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* ============================================
   CARDS & BOXES
   ============================================ */
.help-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.help-card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.help-card-icon {
    flex-shrink: 0;
}

.help-card-title {
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.help-card-subtitle {
    color: #6b7280;
    font-style: italic;
}

/* Inner boxes with backgrounds */
.help-box {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.help-box-white {
    background: white;
    padding: 25px;
    border-radius: 8px;
}

.help-box-light {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
}

/* ============================================
   ALERT BOXES (Info, Warning, Success, Danger)
   ============================================ */
.alert-box {
    border-left: 4px solid;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.alert-box-danger {
    background: #fef2f2;
    border-color: #dc2626;
}

.alert-box-warning {
    background: #fefce8;
    border-color: #ca8a04;
}

.alert-box-success {
    background: #f0fdf4;
    border-color: #10b981;
}

.alert-box-info {
    background: #f0f9ff;
    border-color: #0284c7;
}

.alert-box h2 {
    color: inherit;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-box p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Alert box colors */
.alert-box-danger h2,
.alert-box-danger strong { color: #991b1b; }
.alert-box-danger p { color: #7f1d1d; }

.alert-box-warning h2,
.alert-box-warning strong { color: #92400e; }
.alert-box-warning p { color: #78350f; }

.alert-box-success h2,
.alert-box-success strong { color: #065f46; }
.alert-box-success p { color: #047857; }

.alert-box-info h2,
.alert-box-info strong { color: #0c4a6e; }
.alert-box-info p { color: #075985; }

/* ============================================
   STATISTICS DISPLAY
   ============================================ */
.stats-row {
    display: inline-flex;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #10b981;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9rem;
}

/* ============================================
   GRADIENT SECTIONS
   ============================================ */
.gradient-section {
    padding: 30px;
    border-radius: 12px;
    border: 2px solid;
}

.gradient-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #a855f7;
}

.gradient-red {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #dc2626;
}

.gradient-blue {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #0284c7;
}

.gradient-green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 15px;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-features {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 50px;
    background: white;
    color: #667eea;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.faq-item {
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    color: #1f2937;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.faq-answer {
    line-height: 1.8;
    color: #374151;
    margin: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin-left: 0;
    padding-left: 25px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* ============================================
   FEATURE GRID
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-box h4 {
    color: #1f2937;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.feature-box p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   CONTACT GRID
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-card strong {
    display: block;
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-card span {
    color: #6b7280;
    font-size: 0.95rem;
}

/* ============================================
   RELATED ARTICLES
   ============================================ */
.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-article-link {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.3s;
}

.related-article-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.related-article-icon {
    flex-shrink: 0;
}

.related-article-title {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.related-article-desc {
    color: #6b7280;
    font-size: 0.95rem;
}

/* ============================================
   RESULT CARDS GRID
   ============================================ */
.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.result-card {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 3px solid;
}

.result-card-icon {
    margin-bottom: 15px;
}

.result-card-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.result-card-label {
    font-size: 1.1rem;
    font-weight: 600;
}

.result-card-desc {
    margin-top: 10px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.help-breadcrumb {
    margin-bottom: 30px;
}

.help-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.help-breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0 !important; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }

.d-grid { display: grid; }
.gap-20 { gap: 20px; }
.gap-25 { gap: 25px; }
.gap-30 { gap: 30px; }

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .help-center {
        padding: 20px 5px !important;
    }
    
    .help-header h1 {
        font-size: 1.8rem !important;
    }
    
    .help-header .subtitle {
        font-size: 1.1rem !important;
    }
    
    .help-section-title {
        font-size: 1.5rem !important;
    }
    
    .help-card {
        padding: 20px !important;
    }
    
    .help-box,
    .help-box-light {
        padding: 15px !important;
    }
    
    .help-box-white {
        padding: 18px !important;
    }
    
    .alert-box {
        padding: 18px !important;
    }
    
    /* Auto-Sync CTA Box - Fix mobile layout */
    .alert-box-success > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .alert-box-success h3 {
        font-size: 1.3rem !important;
    }
    
    .alert-box-success p {
        font-size: 0.95rem !important;
    }
    
    .alert-box-success ul {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    .alert-box-success .btn-primary {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }
    
    .alert-box-success > div > div {
        padding: 15px !important;
    }
    
    .gradient-section {
        padding: 18px !important;
    }
    
    .cta-section {
        padding: 30px 20px !important;
    }
    
    .cta-section h2 {
        font-size: 1.6rem !important;
    }
    
    .cta-button {
        padding: 15px 30px !important;
        font-size: 1.1rem !important;
    }
    
    .faq-section {
        padding: 25px !important;
    }
    
    .related-article-link {
        padding: 18px !important;
    }
    
    .result-card {
        padding: 20px !important;
    }
    
    .result-card-value {
        font-size: 2rem !important;
    }
    
    .help-center h2,
    .help-box-white h2,
    .alert-box h2,
    .faq-section h2 {
        font-size: 1.5rem !important;
    }
    
    .help-center h3,
    .help-box-white h3,
    .alert-box h3 {
        font-size: 1.2rem !important;
    }
    
    .help-center svg,
    .help-card svg,
    .help-box svg,
    .alert-box svg {
        width: 36px !important;
        height: 36px !important;
    }
    
    .stats-row {
        gap: 20px !important;
    }
    
    .stat-value {
        font-size: 1.5rem !important;
    }
    
    .gap-30 { gap: 20px !important; }
    .gap-25 { gap: 18px !important; }
    .gap-20 { gap: 15px !important; }
    
    .mb-50 { margin-bottom: 30px !important; }
    .mb-40 { margin-bottom: 25px !important; }
}

/* Very small mobile */
@media (max-width: 480px) {
    .help-center {
        padding: 15px 5px !important;
    }
    
    .help-card,
    .alert-box,
    .gradient-section {
        padding: 15px !important;
    }
    
    .help-box,
    .help-box-light,
    .help-box-white {
        padding: 12px !important;
    }
    
    /* Auto-Sync CTA Box - Extra small screens */
    .alert-box-success h3 {
        font-size: 1.15rem !important;
    }
    
    .alert-box-success p,
    .alert-box-success ul {
        font-size: 0.85rem !important;
    }
    
    .alert-box-success .btn-primary {
        padding: 12px 18px !important;
        font-size: 0.95rem !important;
    }
    
    .alert-box-success > div > div {
        padding: 12px !important;
    }
    
    .cta-section {
        padding: 25px 15px !important;
    }
    
    .cta-section h2 {
        font-size: 1.4rem !important;
    }
    
    .cta-button {
        padding: 12px 25px !important;
        font-size: 1rem !important;
    }
    
    .faq-section {
        padding: 18px !important;
    }
    
    .related-article-link {
        padding: 15px !important;
    }
    
    .result-card {
        padding: 18px !important;
    }
    
    .help-header h1 {
        font-size: 1.5rem !important;
    }
    
    .help-center h2,
    .help-box-white h2,
    .alert-box h2,
    .faq-section h2 {
        font-size: 1.3rem !important;
    }
    
    .help-center h3,
    .help-box-white h3,
    .alert-box h3 {
        font-size: 1.1rem !important;
    }
    
    .help-center p,
    .help-center li,
    .help-box p,
    .help-box li,
    .alert-box p,
    .alert-box li {
        font-size: 0.95rem !important;
    }
}
