﻿/* Hero Section */
.help-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.help-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.help-hero .hero-visual h3,
.help-hero .hero-visual p {
    color: #ffffff !important;
}

.help-hero .hero-visual h3 {
    text-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.help-hero .hero-visual p {
    opacity: 0.92;
}

.help-icon-large {
    width: 150px;
    height: 150px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Search Section */
.search-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-input .form-control {
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-left: none;
    padding: 1rem;
    font-size: 1.1rem;
}

.search-input .input-group-text {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-right: none;
    color: #667eea;
}

.search-input .form-control:focus {
    border-color: var(--rvz-primary-500, #667eea);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.18);
}

.search-feedback {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(102, 126, 234, 0.08);
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
}

.search-feedback.is-empty {
    background: rgba(248, 113, 113, 0.12);
    color: #991b1b;
}

.search-empty-state {
    margin: 0 auto 2rem;
    max-width: 680px;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(239, 246, 255, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.search-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    color: #4f46e5;
    font-size: 1.8rem;
}

.search-empty-state h4 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.search-empty-state p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 48px rgba(0, 0, 0, 0.15);
}

.category-card.search-match,
.accordion-item.search-match,
.contact-option.search-match,
.tip-item.search-match,
.donation-card.search-match {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.16), 0 18px 36px rgba(102, 126, 234, 0.14);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.getting-started::before { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.quiz-help::before { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.progress-help::before { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.account-help::before { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.technical-help::before { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.free-access-help::before { background: linear-gradient(135deg, #9be15d 0%, #00c9a7 100%); }

.category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.category-card h4 {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.category-card p {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    transition: all 0.3s ease;
}

.category-card:hover .category-arrow {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.modern-card .card-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 0;
}

.modern-card .card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.2rem;
}

/* FAQ Accordion */
.accordion-item {
    border: none;
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border: none;
    font-weight: 600;
    color: #2d3748;
    padding: 1.5rem;
    border-radius: 12px !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: none;
}

.accordion-body {
    padding: 1.5rem;
    background: white;
}

/* Contact Options */
.contact-options {
    display: grid;
    gap: 2rem;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.donation-card .card-header {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
}

.donation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
    gap: 2rem;
    align-items: start;
}

.donation-lead {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.donation-note {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.donation-phones {
    display: grid;
    gap: 1rem;
}

.donation-phone-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.2rem 1.25rem;
    border-radius: 18px;
    text-decoration: none;
    color: #0f172a;
    background: linear-gradient(160deg, rgba(102, 126, 234, 0.08), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.14);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.donation-phone-card:hover {
    transform: translateY(-3px);
    color: #0f172a;
    border-color: rgba(102, 126, 234, 0.28);
    box-shadow: 0 18px 32px rgba(102, 126, 234, 0.14);
}

.donation-phone-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5b21b6;
}

.donation-phone-card strong {
    font-size: 1.25rem;
    line-height: 1.2;
    color: #1e3a8a;
}

.donation-phone-card small {
    color: #64748b;
    line-height: 1.5;
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info h5 {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Tips Card */
.tips-card {
    background: linear-gradient(145deg, #f0fff4 0%, #ffffff 100%);
}

.tips-card .card-body {
    display: grid;
    gap: 0.9rem;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1rem;
    border: 1px solid rgba(72, 187, 120, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border-color: rgba(72, 187, 120, 0.28);
}

.tip-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
    min-width: 0;
}

.tip-content h6 {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.tip-content p {
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

.tip-item-highlight {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-color: rgba(56, 161, 105, 0.28);
    box-shadow: 0 18px 36px rgba(56, 161, 105, 0.12);
}

.tip-item-highlight .tip-icon {
    background: linear-gradient(135deg, #2f855a 0%, #38a169 100%);
    box-shadow: 0 12px 24px rgba(56, 161, 105, 0.22);
}

.tip-item-highlight .tip-content h6 {
    color: #1f2937;
}

.tip-item-highlight .tip-content p {
    color: #4a5568;
}

/* Responsive */
@media (max-width: 768px) {
    .donation-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .help-icon-large {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }
    
    .modern-card .card-header,
    .modern-card .card-body {
        padding: 1.5rem;
    }
    
    .contact-option {
        flex-direction: column;
        text-align: center;
    }
    
    .search-card {
        padding: 1.5rem;
    }
}

/* Animations */
.help-hero {
    animation: fadeInUp 0.6s ease-out;
}

.category-card,
.modern-card {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
