/* 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 - Compact but Complete */
@media (max-width: 768px) {
    /* Section - tighter padding */
    .why-flipt-section {
        padding: 1.5rem 0 !important;
    }

    /* Header - compact */
    .why-flipt-section h2 {
        font-size: 1.35rem !important;
        margin-bottom: 0.25rem !important;
    }

    .why-flipt-section h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }

    .why-flipt-section > .container > .row > .col-lg-12 > p.text-muted {
        font-size: 0.8rem !important;
        margin-bottom: 1rem !important;
    }

    /* Feature grid - keep stacked but tighter */
    .why-flipt-section .hero-features-grid {
        margin-top: 0.5rem;
        margin-bottom: 1rem !important;
    }

    .hero-features-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    /* Feature cards - compact but keep imagery */
    .hero-feature-card {
        padding: 1rem !important;
        border-radius: 0.75rem !important;
    }

    /* Smaller badge images */
    .hero-feature-icon {
        height: 80px !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-badge-img {
        width: 80px !important;
        height: 80px !important;
    }

    .hero-feature-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-feature-description {
        margin-bottom: 0.75rem !important;
    }

    .hero-feature-description p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-feature-description p:last-child {
        margin-bottom: 0 !important;
    }

    .hero-feature-description strong {
        font-size: 0.85rem !important;
    }

    /* Stats - compact */
    .hero-feature-stat {
        padding-top: 0.75rem !important;
    }

    .stat-number {
        font-size: 1.25rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    /* Ace pot trust badge - compact */
    .why-flipt-section .text-center.my-4 {
        margin: 1rem 0 !important;
    }

    .ace-pot-trust-badge {
        font-size: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .why-flipt-section .text-center.my-4 > p {
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
    }

    .why-flipt-section .text-center.my-4 .btn-lg {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.85rem !important;
    }

    /* Supporting features - compact pills */
    .supporting-features-section {
        padding: 0.75rem 0 !important;
    }

    .supporting-features-section h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }

    .feature-group {
        gap: 0.4rem !important;
        padding: 0.25rem !important;
    }

    .feature-group:not(:last-child)::after {
        display: none !important;
    }

    .supporting-feature {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .supporting-feature i {
        font-size: 0.85rem !important;
    }

    .supporting-feature span {
        font-size: 0.75rem !important;
    }
}

/* 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);
    }
}

/* 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;
    }
}

/* Dark mode overrides migrated from darktheme.css */
[data-bs-theme="dark"] .hero-feature-card {
    background: var(--surface-1);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .hero-feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .supporting-feature {
    background: var(--surface-1);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .supporting-feature:hover {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, 0.2);
}

