/* 
 * Homepage Specific Styles
 * Mobile-first responsive design following UX guidelines
 */

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    padding: 0;
    /* No padding - user tested and approved */
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: center;
}

.hero-text h1 {
    font-size: var(--text-hero);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text .lead {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-text .lead strong {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.btn-hero-primary {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
    font-weight: 600;
    border-radius: 0.75rem;
    width: 100%;
    /* R4.3: Full-width on mobile */
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.hero-security-note {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    text-align: center;
    margin-top: 0.75rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.hero-visual img {
    max-width: 100%;
    width: 100%;
    max-width: 300px;
    /* User tested - perfect balance */
    height: auto;
    border-radius: 1rem;
}

/* Desktop: Two-column layout */
@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
        /* Reduced from 4rem for tighter spacing */
        padding: 2rem 0;
        /* Add padding only on desktop */
    }

    .hero-text {
        flex: 1;
        text-align: left;
    }

    .hero-visual {
        flex: 0 0 auto;
        /* Don't grow, use natural size */
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
    }

    .btn-hero-primary {
        width: auto;
        /* Auto-width on desktop */
    }

    .hero-security-note {
        text-align: left;
    }
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    padding: var(--section-padding-y) 0;
    background-color: var(--neutral-50);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: Single column */
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: var(--card-padding);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8f0fe 0%, #d6e4ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #d6e4ff 0%, #c4d9ff 100%);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: var(--text-card-title);
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: var(--text-base);
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Tablet: 2x2 Grid */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Desktop: 4 columns in a row (more compact) */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works-section {
    padding: var(--section-padding-y) 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.how-it-works-section h2 {
    color: white;
    text-align: center;
    font-size: var(--text-section);
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: Single column */
    gap: 2rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: var(--card-padding);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #60a5fa;
    /* Light blue */
}

.step-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.step-card p {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Desktop: 3 columns in a row */
@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* ============================================
   Featured Topics Section
   ============================================ */

.featured-topics-section {
    padding: var(--section-padding-y) 0;
    background-color: white;
}

.featured-topics-section h2 {
    text-align: center;
    font-size: var(--text-section);
    margin-bottom: 3rem;
}

/* Use existing Bootstrap grid for topics */
/* The current row-cols-* classes already handle responsiveness */

.topics-cta {
    text-align: center;
    margin-top: 3rem;
}

.topics-cta .btn {
    padding: 0.875rem 2rem;
    font-size: var(--text-lg);
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.topics-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ============================================
   Utility Classes
   ============================================ */

.section-title {
    font-size: var(--text-section);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    text-align: center;
    margin-bottom: 2rem;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

/* Mobile: Reduce section padding */
@media (max-width: 767px) {
    :root {
        --section-padding-y: 3rem;
        /* 48px */
        --card-padding: 1.25rem;
        /* 20px */
    }
}

/* Desktop: Keep section padding moderate */
@media (min-width: 1024px) {
    :root {
        --section-padding-y: 3rem;
        /* 48px - same as mobile for compact desktop */
        --card-padding: 2rem;
        /* 32px */
    }
}