/* Why FLiPT Section Styles */
.why-flipt-section {
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
}

/* Hero Features Grid - 3 main features */
.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: stretch; /* Ensure equal heights */
}

.hero-feature-card {
    background: var(--surface-1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--theme-shadow);
    border: 1px solid var(--theme-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Equal height cards */
}

.hero-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-primary-light));
}

/* Different accent colors for each feature - Using FLiPT Brand Colors */
.hero-feature-card:nth-child(1)::before {
    background: linear-gradient(90deg, #4aa39c, #5fb5ae); /* FLiPT Teal for fundraising */
}

.hero-feature-card:nth-child(2)::before {
    background: linear-gradient(90deg, #2E86C1, #4396cf); /* FLiPT Blue for automation */
}

.hero-feature-card:nth-child(3)::before {
    background: linear-gradient(90deg, #FF6B6B, #ff8585); /* FLiPT Coral for recaps */
}

.hero-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-feature-icon {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Hero badge images */
.hero-badge-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Remove backgrounds since we're using badge images */
.hero-feature-card:nth-child(1) .hero-feature-icon {
    background: transparent;
}

.hero-feature-card:nth-child(2) .hero-feature-icon {
    background: transparent;
}

.hero-feature-card:nth-child(3) .hero-feature-icon {
    background: transparent;
}

.hero-feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--theme-text-primary);
}

.hero-feature-description {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    flex-grow: 1; /* Push stats to bottom */
}

.hero-feature-description p {
    margin-bottom: 1rem;
    color: var(--theme-text-primary); /* More prominent text */
    font-size: 0.975rem; /* Slightly larger */
}

.hero-feature-description p:last-child {
    margin-bottom: 0;
    color: var(--theme-text-secondary); /* Secondary text slightly lighter */
}

.hero-feature-description strong {
    color: var(--theme-text-primary);
    font-weight: 700; /* Bolder emphasis */
    font-size: 1.05rem; /* Slightly larger */
}

.hero-feature-stat {
    padding-top: 1.5rem;
    border-top: 1px solid var(--theme-border-color);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin-bottom: 0.25rem;
}

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

/* Supporting Features Section */
.supporting-features-section {
    padding: 2rem 0;
}

.supporting-features-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.75rem;
    position: relative;
}

/* Subtle visual separator between groups */
.feature-group:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 20%;
    right: 20%;
    height: 1px;
    background: var(--theme-border-color);
    opacity: 0.3;
}

.supporting-feature {
    background: var(--surface-1);
    border: 1px solid var(--theme-border-color);
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.supporting-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow);
    background: var(--surface-2);
}

.supporting-feature i {
    font-size: 1.25rem; /* Increased icon size for better visibility */
    color: var(--theme-primary);
    width: 1.25rem; /* Fixed width for consistency */
    text-align: center;
    font-weight: 600; /* Bolder weight for better visibility */
    opacity: 1; /* Ensure full opacity */
}

.supporting-feature span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--theme-text-primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .why-flipt-section h3 {
        margin-bottom: 0.75rem !important; /* Reduced spacing on mobile */
    }

    .why-flipt-section .hero-features-grid {
        margin-top: 2rem; /* Tighter spacing to tagline */
    }

    .hero-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-feature-card {
        padding: 1.5rem;
    }

    .hero-feature-title {
        font-size: 1.25rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .feature-group {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .feature-group:not(:last-child)::after {
        left: 10%;
        right: 10%;
    }

    .supporting-feature {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .supporting-feature i {
        font-size: 1rem;
    }
}

/* Tablet Layout */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-features-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto 4rem;
    }
}

/* Dark Mode Enhancements - Class-based (primary) */
body.dark-mode .why-flipt-section {
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
}

body.dark-mode .hero-feature-card {
    background: var(--surface-1);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--theme-text-primary);
}

body.dark-mode .hero-feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: var(--surface-2);
}

body.dark-mode .hero-feature-title {
    color: var(--theme-text-primary);
}

body.dark-mode .hero-feature-description {
    color: var(--theme-text-primary);
}

body.dark-mode .hero-feature-description p {
    color: var(--theme-text-primary);
}

body.dark-mode .hero-feature-description strong {
    color: var(--theme-text-primary);
}

body.dark-mode .hero-feature-stat {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .stat-number {
    color: var(--theme-primary);
}

body.dark-mode .stat-label {
    color: var(--theme-text-secondary);
}

body.dark-mode .supporting-feature {
    background: var(--surface-1);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--theme-text-primary);
}

body.dark-mode .supporting-feature:hover {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .supporting-feature i {
    color: var(--theme-primary);
}

body.dark-mode .supporting-feature span {
    color: var(--theme-text-primary);
}

body.dark-mode .feature-group:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.1);
}

/* Dark Mode Enhancements - Media query fallback */
@media (prefers-color-scheme: dark) {
    .hero-feature-card {
        background: var(--surface-1);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .hero-feature-card:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    .supporting-feature {
        background: var(--surface-1);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .supporting-feature:hover {
        background: var(--surface-2);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* CTA Button Fixes for Why FLiPT Section */
.why-flipt-section .cta-button {
    /* Ensure buttons have proper backgrounds */
    background-image: linear-gradient(135deg, #4A5568, #2D3748);
    color: white !important;
}

.why-flipt-section .cta-button-primary {
    background-image: linear-gradient(135deg, #4aa39c, #5fb5ae) !important; /* FLiPT Teal */
}

.why-flipt-section .cta-button-success {
    background-image: linear-gradient(135deg, #10b981, #059669) !important; /* Green */
}

.why-flipt-section .cta-button-secondary {
    background-image: linear-gradient(135deg, #4a5568, #2d3748) !important; /* Gray */
}

.why-flipt-section .cta-button:hover {
    color: white !important;
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Ensure text is visible in both modes */
.why-flipt-section .cta-button-title,
.why-flipt-section .cta-button-subtitle {
    color: white !important;
}

.why-flipt-section .cta-button-icon {
    background-color: rgba(255, 255, 255, 0.2);
}

.why-flipt-section .cta-button-icon i {
    color: white !important;
}

/* Dark mode specific adjustments */
body.dark-mode .why-flipt-section .cta-button {
    filter: brightness(1.1);
}

/* Print Styles */
@media print {
    .why-flipt-section {
        page-break-inside: avoid;
    }

    .hero-features-grid {
        grid-template-columns: 1fr;
    }

    .hero-feature-card {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
}