/* ====================================
   VELORA HOMEPAGE SECTIONS
   Styling for homepage content sections
   Extends unified design system
   ==================================== */

/* ========================================
   INTRO CONTENT SECTION
   ======================================== */

.intro-content {
    padding: var(--velora-spacing-section, 60px) 0;
    background: var(--velora-bg-secondary);
    position: relative;
}

.intro-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Intro Card */
.intro-card {
    /* Base styles inherited from .card in cards.css */
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.intro-card.with-corners {
    position: relative;
}

/* Intro Title */
.intro-title {
    font-family: 'Fraunces', system-ui, serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Intro Lead */
.intro-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-default);
    max-width: 800px;
    margin: 0 auto;
}

/* Intro Grid */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Intro Feature Cards */
.intro-feature-card {
    padding: 2.5rem;
    text-align: center;
}

.intro-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(12, 4, 40, 0.18);
}

/* Intro Feature Icon */
.intro-feature-icon {
    font-size: 3rem;
    color: var(--primary-500);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.intro-feature-card:hover .intro-feature-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    padding: 80px 0;
    background: var(--velora-bg-primary);
}

/* Section Title - Scoped to homepage sections */
.features .section-title,
.why-velora .section-title,
.zodiac .section-title {
    font-family: 'Fraunces', system-ui, serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-strong);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.features .section-title::after,
.why-velora .section-title::after,
.zodiac .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent-500);
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-default);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Feature Card */
.feature-card {
    /* Base styles inherited from .card in cards.css */
    /* Padding handled by .card-spacious modifier */
    min-height: 400px;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(12, 4, 40, 0.18);
    border-color: var(--border-strong);
}

.feature-card.with-gradient-border {
    position: relative;
}

/* Feature Icon */
.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon i {
    --fa-primary-color: var(--velora-accent-primary);
    --fa-secondary-color: var(--velora-accent-secondary);
}

/* Feature Link */
.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-500);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.feature-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width 0.3s ease;
}

.feature-link:hover::after {
    width: 100%;
}

.feature-link i {
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(4px);
}

/* ========================================
   WHY VELORA SECTION
   ======================================== */

.why-velora {
    padding: 80px 0;
    background: var(--velora-bg-secondary);
    position: relative;
}

.why-velora::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(107, 70, 193, 0.1), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(59, 130, 246, 0.1), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(212, 175, 55, 0.1), transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.3;
    pointer-events: none;
}

.why-velora h2 {
    font-family: 'Fraunces', system-ui, serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-strong);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

/* Why Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* Why Item */
.why-item {
    /* Base styles inherited from .card in cards.css */
    /* Border-radius and padding handled by .card base */
    text-align: center;
}

.why-item.with-glow:hover {
    box-shadow: var(--velora-shadow-glow);
}

/* Why Item Title - Typography handled by .h3-subtitle, only decorative differences remain */
.why-item h3 {
    color: var(--accent-500);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.why-item h3::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-500);
    font-size: 1.2rem;
}

/* ========================================
   ADDITIONAL INFO SECTION
   ======================================== */

.additional-info {
    padding: 80px 0;
    background: var(--velora-bg-primary);
}

.additional-info h2 {
    font-family: 'Fraunces', system-ui, serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-strong);
    text-align: center;
    margin-bottom: 3rem;
}

/* Info Boxes Grid */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Info Box */
.info-box {
    /* Base styles inherited from .card in cards.css */
    /* Padding handled by .card-spacious modifier */
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(12, 4, 40, 0.18);
    border-color: var(--border-strong);
}

.info-box.with-corners {
    position: relative;
}

/* Info Box Title - Typography handled by .h3-subtitle */
.info-box h3 {
    color: var(--text-strong);
    margin-bottom: 1rem;
}

/* Info Box Link */
.info-box a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-500);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.info-box a::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.info-box a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width 0.3s ease;
}

.info-box a:hover::before {
    width: 100%;
}

.info-box a:hover::after {
    transform: translateX(4px);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: 100px 0;
    background: var(--velora-gradient-cosmic);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.5;
    animation: twinkle 5s ease-in-out infinite;
    pointer-events: none;
}

/* CTA Card */
.cta-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: var(--velora-shadow-cosmic, 0 12px 48px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

/* CTA Content - Fixed contrast */
.cta-content {
    text-align: center;
    color: var(--text-strong, #151022);
}

/* CTA Title - Fixed contrast */
.cta-title {
    font-family: 'Fraunces', system-ui, serif;
    font-size: 1.9rem;
    color: var(--text-strong);
    margin-bottom: 1.5rem;
}

/* CTA Text - Fixed contrast */
.cta-text {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-default);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    /* Section Padding */
    .intro-content,
    .features,
    .why-velora,
    .additional-info {
        padding: 60px 0;
    }

    .cta-section {
        padding: 60px 0;
    }

    /* Grids to Single Column */
    .intro-grid,
    .features-grid,
    .why-grid,
    .info-boxes {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Font Sizes */
    .features .section-title,
    .why-velora .section-title,
    .zodiac .section-title {
        font-size: 2.5rem;
    }

    .intro-title {
        font-size: 2rem;
    }

    .intro-feature-card h3 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .why-item h3 {
        font-size: 1.5rem;
    }

    /* Card padding is handled by cards.css responsive rules */

    /* Touch Targets */
    .feature-link,
    .info-box a {
        min-height: 44px;
    }

    .hero-buttons .btn {
        min-width: 44px;
    }

    /* CTA Adjustments */
    .cta-card {
        padding: 2.5rem;
    }

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

    /* Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Feature Cards */
    .feature-card {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    /* Section Padding */
    .intro-content,
    .features,
    .why-velora,
    .additional-info {
        padding: 50px 0;
    }

    .intro-title {
        font-size: 2.25rem;
    }

    .features .section-title {
        font-size: 2.75rem;
    }

    .feature-card {
        padding: 2.5rem;
    }

    .intro-feature-icon {
        font-size: 2.75rem;
    }

    .intro-grid,
    .features-grid,
    .why-grid,
    .info-boxes {
        gap: 1.75rem;
    }
}

@media (max-width: 480px) {
    /* Further Reduced Padding */
    .intro-content,
    .features,
    .why-velora,
    .additional-info {
        padding: 40px 0;
    }

    .cta-section {
        padding: 40px 0;
    }

    /* Smaller Font Sizes */
    .features .section-title,
    .why-velora .section-title,
    .zodiac .section-title {
        font-size: 2rem;
        line-height: 1.3;
    }

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

    .intro-lead {
        font-size: 1.125rem;
    }

    .intro-feature-card h3,
    .why-item h3,
    .info-box h3 {
        line-height: 1.4;
    }

    /* Touch Targets */
    .feature-link,
    .info-box a,
    .intro-feature-card,
    .why-item,
    .cta-buttons .btn {
        min-height: 44px;
    }

    .cta-buttons .btn {
        min-width: 100%;
    }

    /* Card padding is handled by cards.css responsive rules */

    /* Icon Sizes */
    .feature-icon {
        font-size: 3rem;
    }

    .intro-feature-icon {
        font-size: 2.5rem;
    }

    /* Gaps */
    .intro-grid,
    .features-grid,
    .why-grid,
    .info-boxes {
        gap: 1rem;
    }
}

@media (max-width: 320px) {
    /* Minimal Padding */
    .intro-content,
    .features,
    .why-velora,
    .additional-info {
        padding: 30px 0;
    }

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

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

    /* Card padding is handled by cards.css responsive rules */

    .intro-feature-icon {
        font-size: 2.25rem;
    }

    .intro-grid,
    .features-grid,
    .why-grid,
    .info-boxes {
        gap: 0.875rem;
    }

    .cta-card {
        padding: 2rem;
    }
}

/* Image Optimization */
.intro-feature-icon img,
.feature-icon img {
    max-width: 100%;
    height: auto;
}

.intro-feature-icon,
.feature-icon {
    aspect-ratio: 1 / 1;
}

/* ========================================
   DARK MODE ADJUSTMENTS
   ======================================== */

[data-theme="dark"] .intro-content,
[data-theme="dark"] .why-velora {
    background: var(--velora-bg-secondary);
}

[data-theme="dark"] .features,
[data-theme="dark"] .additional-info {
    background: var(--velora-bg-primary);
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

[data-theme="dark"] .cta-card {
    background: rgba(15, 15, 15, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .intro-card,
[data-theme="dark"] .info-box {
    background: var(--velora-bg-card);
}

[data-theme="dark"] .why-item,
[data-theme="dark"] .intro-feature-card,
[data-theme="dark"] .feature-card {
    border-color: var(--velora-border-primary);
}

/* Dark mode hover states - intentionally more dramatic glow effect for visual emphasis */
[data-theme="dark"] .why-item.with-glow:hover,
[data-theme="dark"] .intro-feature-card:hover,
[data-theme="dark"] .feature-card:hover {
    /* Enhanced shadow for dark mode to maintain visibility and visual interest */
    box-shadow: 0 24px 50px rgba(12, 4, 40, 0.18), 0 0 20px rgba(107, 70, 193, 0.15);
}

[data-theme="dark"] .cta-title,
[data-theme="dark"] .cta-text {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

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

/* Focus States */
.intro-feature-card:focus,
.feature-card:focus,
.why-item:focus,
.info-box:focus {
    outline: 2px solid var(--velora-accent-primary);
    outline-offset: 2px;
}

.feature-link:focus,
.info-box a:focus {
    outline: 2px solid var(--velora-accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .intro-feature-card,
    .feature-card,
    .why-item,
    .info-box,
    .intro-feature-icon {
        transition: none;
        animation: none;
    }

    .cta-section::before {
        animation: none;
    }
}

/* Touch Target Sizes */
@media (max-width: 768px) {
    .feature-link,
    .info-box a,
    .cta-buttons .btn,
    .intro-feature-card,
    .why-item {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .feature-link,
    .info-box a {
        padding: 0.5rem;
    }
}

