/* AROS - Design Enhancements for NGO/Donor UX - LIGHT MODE */

/* ============================================
   PROFESSIONAL BADGES & LABELS
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.badge-primary {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05));
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #0369a1;
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #047857;
}

.badge-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #b45309;
}

/* ============================================
   STAT CARDS - Enhanced Visual Hierarchy
   ============================================ */

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   CREDIBILITY INDICATORS
   ============================================ */

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.75rem;
    color: #6ee7b7;
    font-weight: 600;
}

.trust-badge i {
    font-size: 1.25rem;
    color: var(--success);
}

.verified-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--success), #047857);
    border-radius: 50%;
    color: white;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* ============================================
   SECTION HEADERS - Improved Hierarchy
   ============================================ */

.section-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.section-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

/* ============================================
   FEATURE CARDS - Professional Design
   ============================================ */

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.2);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

/* ============================================
   COMPARISON TABLE - Enhanced Readability
   ============================================ */

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th {
    background: rgba(15, 23, 42, 0.8);
    padding: 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.025em;
    border-bottom: 2px solid rgba(37, 99, 235, 0.3);
}

.comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.comparison-table tr:hover td {
    background: rgba(37, 99, 235, 0.05);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-highlight {
    position: relative;
    padding-left: 1rem;
}

.comparison-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--success), transparent);
    border-radius: 2px;
}

/* ============================================
   TESTIMONIAL - Professional Design
   ============================================ */

.testimonial-card {
    position: relative;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(5, 150, 105, 0.05));
    border-left: 4px solid var(--primary);
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: -1.5rem;
    top: -0.5rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* ============================================
   CALL TO ACTION - High Contrast
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(5, 150, 105, 0.1));
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FAQ ACCORDION - Enhanced UX
   ============================================ */

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.faq-question {
    cursor: pointer;
    user-select: none;
}

.faq-question:hover {
    background: rgba(37, 99, 235, 0.05);
}

.faq-answer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer ul {
    margin-top: 0.75rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ============================================
   METRIC HIGHLIGHTS - Data Visualization
   ============================================ */

.metric-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.metric-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-box:hover::after {
    transform: scaleX(1);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.metric-trend {
    font-size: 0.875rem;
    color: var(--success);
    font-weight: 600;
}

.metric-trend.positive::before {
    content: '↗ ';
    font-size: 1rem;
}

/* ============================================
   WORKFLOW STEPS - Visual Timeline
   ============================================ */

.workflow-step {
    position: relative;
}

.workflow-step-number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.workflow-step:hover .workflow-step-number {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 8px 24px rgba(37, 99, 235, 0.2);
    transform: scale(1.1);
}

.workflow-step-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.workflow-step-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .testimonial-quote {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

.focus-visible:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-card {
        border-width: 2px;
    }

    .btn-gradient {
        border: 2px solid var(--primary);
    }
}
