/**
 * ShamLock Features Page Styles
 * Marketing page showcasing product features
 */

:root {
    --sham-green: #16a34a;
    --sham-green-hover: #15803d;
    --sham-green-dark: #0f4c2e;
    --sham-gold: #d6b25e;
    --sham-gold-hover: #c5a04d;
    --text-dark: #1f2937;
    --text-body: #374151;
    --text-muted: #6b7280;
    --bg-light: #f8f9fa;
    --bg-alt: #f3f4f6;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

/* ============================================
   BASE / LAYOUT
   ============================================ */

.features-page {
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-body);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.features-container-narrow {
    max-width: 800px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.features-hero {
    background: var(--sham-green-dark);
    padding: 80px 0;
    text-align: center;
}

.features-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.features-hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 400;
}

/* ============================================
   QUICK FEATURES GRID
   ============================================ */

.features-grid-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.features-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-quick-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--sham-green);
    transition: all 0.3s ease;
}

.feature-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--sham-gold);
}

.feature-quick-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--sham-green), var(--sham-green-hover));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-quick-icon svg {
    stroke: #ffffff;
}

.feature-quick-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sham-green-dark);
    margin: 0 0 12px;
}

.feature-quick-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-quick-card li {
    font-size: 0.9rem;
    color: #000000;
    padding: 4px 0;
    position: relative;
    padding-left: 16px;
}

.feature-quick-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--sham-green);
    border-radius: 50%;
}

/* Coverage badges */
.features-coverage {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.coverage-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}

.coverage-badge {
    background: var(--sham-green);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   FREE VS MEMBERSHIP TABLE
   ============================================ */

.features-comparison-section {
    padding: 60px 0;
    background: #ffffff;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sham-green-dark);
    text-align: center;
    margin: 0 0 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--sham-green);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    margin: -1rem 0 2rem;
}

.comparison-table-wrapper {
    max-width: 700px;
    margin: 0 auto;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table thead th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.comparison-table .membership-col {
    background: rgba(214, 178, 94, 0.1);
    border-left: 3px solid var(--sham-gold);
}

.comparison-table thead .membership-col {
    background: rgba(214, 178, 94, 0.2);
    color: #b8860b;
}

.comparison-table tbody td {
    font-size: 0.95rem;
    color: var(--text-body);
}

.table-yes {
    color: var(--sham-green);
    font-weight: 600;
}

.table-no {
    color: var(--text-muted);
}

/* ============================================
   CORE FEATURES (TEXT) - Bold, prominent styling
   ============================================ */

.features-core-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.core-feature {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
}

.core-feature:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.core-feature h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sham-green-dark);
    margin: 0 0 0.75rem;
}

.core-feature p {
    margin: 0 0 1rem;
    color: #000000;
    font-size: 1.125rem;
    line-height: 1.7;
}

.core-feature ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #000000;
    font-size: 1.05rem;
}

.core-feature li {
    margin-bottom: 0.5rem;
}

/* ============================================
   SHOWCASE SECTIONS (WITH SCREENSHOTS)
   ============================================ */

.features-showcase-section {
    padding: 80px 0;
}

.features-showcase-section.alt-bg {
    background: var(--bg-light);
}

.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-row.reverse {
    direction: rtl;
}

.showcase-row.reverse > * {
    direction: ltr;
}

.showcase-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sham-green-dark);
    margin: 0 0 1rem;
}

.showcase-content p {
    color: #000000;
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.showcase-content ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #000000;
}

.showcase-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.showcase-callout {
    font-style: italic;
    color: var(--sham-green-dark);
    font-weight: 500;
    margin-top: 1rem !important;
}

.showcase-image {
    text-align: center;
}

.feature-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

/* Text-only showcase */
.showcase-text-only {
    text-align: center;
}

.showcase-text-only h2,
.showcase-text-only h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sham-green-dark);
    margin: 0 0 0.75rem;
}

.showcase-text-only p {
    color: #000000;
    margin: 0 0 1rem;
}

.showcase-text-only ul {
    display: inline-block;
    text-align: left;
    margin: 0;
    padding-left: 1.25rem;
}

/* ============================================
   YOUR DASHBOARD SECTION
   ============================================ */

.features-dashboard-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.dashboard-features {
    margin-top: 40px;
}

.dashboard-feature-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-light);
}

.dashboard-feature-row:last-child {
    border-bottom: none;
}

.dashboard-feature-row.reverse {
    grid-template-columns: 1.2fr 1fr;
    direction: rtl;
}

.dashboard-feature-row.reverse > * {
    direction: ltr;
}

.dashboard-feature-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sham-green-dark);
    margin: 0 0 0.5rem;
}

.dashboard-feature-content p {
    color: #000000;
    margin: 0 0 0.75rem;
}

.dashboard-feature-content ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #000000;
    font-size: 0.95rem;
}

.dashboard-feature-image {
    text-align: center;
}

.dashboard-feature-image .feature-screenshot {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

/* ============================================
   COMING SOON
   ============================================ */

.features-coming-section {
    padding: 60px 0;
    background: #ffffff;
}

.coming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.coming-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    border: 1px dashed var(--border-light);
}

.coming-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.coming-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

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

.features-cta-section {
    padding: 80px 0;
    background: var(--sham-green-dark);
    text-align: center;
}

.features-cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--sham-green);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.cta-button:hover {
    background: var(--sham-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.feature-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 40px;
    backdrop-filter: blur(4px);
}

.feature-lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 10px;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 1024px) {
    .features-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-row,
    .dashboard-feature-row,
    .dashboard-feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .showcase-row.reverse,
    .dashboard-feature-row.reverse {
        direction: ltr;
    }

    .showcase-image,
    .dashboard-feature-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .features-hero {
        padding: 60px 0;
    }

    .features-hero-title {
        font-size: 2rem;
    }

    .features-hero-subtitle {
        font-size: 1.125rem;
    }

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

    .features-coverage {
        flex-wrap: wrap;
    }

    .features-showcase-section,
    .features-dashboard-section {
        padding: 50px 0;
    }

    .coming-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-lightbox {
        padding: 20px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .features-container {
        padding: 0 1rem;
    }

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

    .cta-button {
        font-size: 1rem;
        padding: 14px 30px;
        width: 100%;
        text-align: center;
    }
}
