/* Features Page Specific Styles - Professional Design */

/* Features Hero Section */
.features-hero {
    background: transparent;  /* Show gradient wrapper */
    padding: 6rem 0 4rem;
    text-align: center;
}

/* Star Rating in Hero */
.features-hero .stars {
    font-size: 1.25rem;
    color: #FFD700;  /* Golden color for rating stars */
    line-height: 1;
}

.features-hero .rating-text {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Hero rating styles are handled by main CSS */

.hero-content-centered {
    max-width: 800px;
    margin: 0 auto;
}

.features-hero h1 {
    font-size: 3rem;
    color: var(--heading-color);  /* Black headings */
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.features-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

/* Core Features Section */
.core-features {
    padding: 5rem 0;
    background: transparent;
}

.feature-detailed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    background: var(--white-color);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-detailed.reverse {
    direction: rtl;
}

.feature-detailed.reverse .feature-content {
    direction: ltr;
    text-align: left;
}

/* Feature Badge */
.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.feature-content h2 {
    font-size: 2rem;
    color: var(--heading-color);  /* Black */
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

.feature-content p {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: left;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Additional Features Grid */
.additional-features {
    background: transparent;
    padding: 5rem 0;
}

.additional-features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 3rem;
    font-family: 'Poppins', sans-serif;
}

.features-grid-extended {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

/* SVG Icon Styling - Matching Main Site */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);  /* Medium green for icons */
    display: flex;
    justify-content: center;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.feature-item h3 {
    color: var(--heading-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
}

.feature-item p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Comparison Table */
.comparison {
    padding: 5rem 0;
    background: transparent;
}

.comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 3rem;
    font-family: 'Poppins', sans-serif;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--white-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.comparison-table th.highlight {
    background: var(--primary-color);
}

.comparison-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(232, 245, 233, 0.5);
    color: var(--text-color);
}

.comparison-table td.highlight {
    background: rgba(232, 245, 233, 0.3);
    font-weight: 500;
    color: var(--secondary-color);
}

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

.comparison-table tbody tr:hover {
    background: rgba(232, 245, 233, 0.1);
}

/* CTA Section Features - Centered Design */
.cta-section-features {
    padding: 5rem 0;
    background: transparent;
}

.cta-content-center {
    text-align: center;
    margin-bottom: 4rem;
}

.cta-content-center h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.3;
}

.cta-content-center .cta-button-primary {
    display: inline-block;
    transition: transform 0.3s;
}

.cta-content-center .cta-button-primary:hover {
    transform: translateY(-3px);
}

/* Premium Stats Section */
.premium-stats {
    margin-top: 5rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.stat-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: scale(1.05);
}

.stat-card.featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.stat-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white-color);
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
}

.stat-number .counter {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card.featured .stat-number .counter {
    background: none;
    -webkit-text-fill-color: white;
}

.stat-number .plus,
.stat-number .percent,
.stat-number .suffix {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-number .stars {
    font-size: 2rem;
    color: #FFD700;
}

.stat-card.featured .stat-number .plus,
.stat-card.featured .stat-number .percent {
    color: white;
    opacity: 0.9;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-card.featured .stat-label {
    color: white;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.4;
}

.stat-card.featured .stat-description {
    color: white;
    opacity: 0.9;
}

/* Active Nav Indicator */
.nav-menu a.active {
    color: var(--primary-color);
    position: relative;
}

.nav-menu a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

/* Desktop only line break */
br.desktop-only {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-only {
        display: none;  /* Hide line break on mobile */
    }
    
    .features-hero h1 {
        font-size: 2rem;
    }
    
    /* Responsive rating text - handled by main CSS */
    
    .feature-detailed,
    .feature-detailed.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        padding: 2rem;
    }
    
    .feature-detailed.reverse .feature-content {
        order: 2;
    }
    
    .feature-detailed.reverse .feature-image {
        order: 1;
    }
    
    .comparison h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .table-wrapper {
        margin: 0 -1rem;
        padding: 0 1rem;
        position: relative;
    }
    
    .table-wrapper::after {
        content: '→ Scroll for more';
        position: absolute;
        bottom: -25px;
        right: 10px;
        font-size: 0.75rem;
        color: var(--text-color);
        opacity: 0.6;
    }
    
    .comparison-table {
        font-size: 0.875rem;
        min-width: 500px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    .comparison-table td:first-child {
        white-space: normal;
        min-width: 120px;
    }
    
    .app-stats {
        gap: 2rem;
        flex-direction: column;
    }
    
    .stat strong {
        font-size: 2rem;
    }
}