/*
   SmashClub Feature Pages Styles
   Extends main style.css
*/

/* ================================
   Feature Hero
   ================================ */

.feature-hero {
    padding: 5rem 0 4rem;
    background: var(--bg-body);
}

.feature-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 968px) {
    .feature-hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
    }
}

.feature-hero .badge {
    display: inline-block;
    background: #f0f7ff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0066ff;
    text-transform: none;
    letter-spacing: 0;
}

.feature-hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.feature-hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 560px;
}

.feature-hero-visual {
    position: relative;
}

.feature-hero-visual img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.feature-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ================================
   Problem / Solution Sections
   ================================ */

.feature-section {
    padding: 5rem 0;
}

.feature-section.alt-bg {
    background: var(--bg-surface);
}

.feature-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.feature-section-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.feature-section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Problem cards */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.problem-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ef4444;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.problem-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.problem-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Solution cards */
.solution-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #22c55e;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.solution-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.solution-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ================================
   Feature Details Grid
   ================================ */

.feature-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .feature-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.feature-details-grid.reversed {
    direction: ltr;
}

@media (min-width: 768px) {
    .feature-details-grid.reversed {
        direction: rtl;
    }
    .feature-details-grid.reversed > * {
        direction: ltr;
    }
}

.feature-detail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-detail-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Checkmark list */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
}

.check-icon {
    width: 24px;
    height: 24px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ================================
   Screenshot Gallery
   ================================ */

.screenshot-section {
    padding: 5rem 0;
}

.screenshot-frame {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.screenshot-frame:hover {
    box-shadow: 0 12px 48px rgba(99, 102, 241, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .screenshot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.screenshot-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ================================
   Mini How It Works
   ================================ */

.mini-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.mini-step {
    text-align: center;
    padding: 2rem 1.5rem;
}

.mini-step-number {
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 1.25rem;
}

.mini-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.mini-step p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ================================
   Stats Bar
   ================================ */

.stats-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item .stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: #cbd5e0;
    font-weight: 500;
}

/* ================================
   Comparison Section
   ================================ */

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.comparison-card {
    border-radius: var(--radius-md);
    padding: 2.5rem;
    position: relative;
}

.comparison-card.without {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.comparison-card.with {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.comparison-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comparison-card ul li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.5;
}

.comparison-card.without ul li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 700;
}

.comparison-card.with ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

/* ================================
   Related Features
   ================================ */

.related-features {
    padding: 5rem 0;
    background: var(--bg-surface);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.related-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: #cbd5e0;
}

.related-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.related-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.related-card .learn-more {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ================================
   CTA Section
   ================================ */

.feature-cta {
    text-align: center;
    padding: 5rem 0;
}

.feature-cta h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
}

.feature-cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================
   Breadcrumb
   ================================ */

.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: var(--text-tertiary);
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 768px) {
    .feature-hero {
        padding: 3rem 0 2rem;
    }

    .feature-section {
        padding: 3rem 0;
    }

    .stats-bar {
        padding: 2rem 1.5rem;
    }

    .comparison-card {
        padding: 2rem 1.5rem;
    }

    .mini-steps {
        grid-template-columns: 1fr;
    }

    .feature-hero-actions {
        flex-direction: column;
    }

    .feature-hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ================================
   Nav overrides for sub-pages
   ================================ */

.mobile-menu-toggle { display: none; }
.mobile-menu-close { display: none; }
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
}
