/* ===================================================================
   Features Hub Page Styles (Features/Index.cshtml)
   Location: Pages/Features/Index.css
   Scope: Only applies to /features page
   Bootstrap 5 CSS Variables: Use var(--bs-*) for colors
   
   Note: Common components (.standards-badge, .pillar-card, .workflow-card)
         are defined in workflow-enhancements.css (theme-level).
         Only features-specific styles and enhancements defined here.
   =================================================================== */

/* =================================================================
   Pillar Icons - Category Icons for Four Pillars
   ================================================================= */
.pillar-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0066a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-icon i {
    font-size: 2rem;
    color: white;
}

.pillar-card:hover .pillar-icon {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 28px rgba(var(--bs-primary-rgb), 0.35);
}

/* Pillar-specific gradient colors */
.pillar-icon.pillar-workflow {
    background: linear-gradient(135deg, #0078d4 0%, #0066a1 100%);
}

.pillar-icon.pillar-forms {
    background: linear-gradient(135deg, #107c10 0%, #0b5a0b 100%);
}

.pillar-icon.pillar-automation {
    background: linear-gradient(135deg, #ca5010 0%, #8e3a0d 100%);
}

.pillar-icon.pillar-audit {
    background: linear-gradient(135deg, #881798 0%, #5c1066 100%);
}

/* =================================================================
   Feature Navigation Pills - Jump-to-Section Navigation
   ================================================================= */
.feature-nav-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
    position: sticky;
    top: 80px;
    background: white;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.feature-nav-pill {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: var(--bs-light);
    color: var(--bs-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-nav-pill:hover {
    background: var(--bs-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

.feature-nav-pill.active {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

@media (max-width: 767.98px) {
    .feature-nav-pills {
        position: relative;
        top: 0;
        padding: 1rem 0;
    }

    .feature-nav-pill {
        font-size: 0.875rem;
        padding: 0.4rem 1rem;
    }
}

/* =================================================================
   Platform Comparison Table - Feature Comparison
   ================================================================= */
.platform-comparison-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.platform-comparison-table thead {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0066a1 100%);
    color: white;
}

.platform-comparison-table thead th {
    padding: 1.25rem 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
}

.platform-comparison-table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.platform-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.platform-comparison-table tbody tr:hover {
    background: rgba(var(--bs-primary-rgb), 0.03);
}

/* Comparison table icons */
.platform-comparison-table .bi-check-circle {
    color: var(--bs-success);
}

.platform-comparison-table .bi-x-circle {
    color: var(--bs-danger);
}

.platform-comparison-table .bi-dash-circle {
    color: var(--bs-warning);
}

/* Responsive */
@media (max-width: 767.98px) {
    .platform-comparison-table {
        font-size: 0.875rem;
    }

    .platform-comparison-table thead th,
    .platform-comparison-table tbody td {
        padding: 0.875rem 0.5rem;
    }
}

/* =================================================================
   Feature Tier Table - Feature Availability by Plan
   ================================================================= */
.feature-tier-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.feature-tier-table thead {
    background: linear-gradient(135deg, #107c10 0%, #0b5a0b 100%);
    color: white;
}

.feature-tier-table thead th {
    padding: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
}

.feature-tier-table thead th:first-child {
    text-align: left;
}

.feature-tier-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-tier-table tbody td:first-child {
    font-weight: 500;
}

.feature-tier-table tbody tr:last-child td {
    border-bottom: none;
}

.feature-tier-table tbody tr:hover {
    background: rgba(16, 124, 16, 0.03);
}

/* Tier badges */
.tier-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tier-badge.tier-free {
    background: #e3f2fd;
    color: #0078d4;
}

.tier-badge.tier-professional {
    background: #f3e5f5;
    color: #881798;
}

.tier-badge.tier-enterprise {
    background: #fff3e0;
    color: #ca5010;
}

/* Responsive */
@media (max-width: 991.98px) {
    .feature-tier-table {
        font-size: 0.875rem;
    }

    .feature-tier-table thead th,
    .feature-tier-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

/* =================================================================
   Feature Cards - Enhanced Feature Display Cards
   ================================================================= */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--bs-primary);
}

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0066a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card .feature-icon i {
    font-size: 1.75rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bs-dark);
}

.feature-card p {
    color: var(--bs-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card ul li {
    padding: 0.5rem 0;
    color: var(--bs-secondary);
    font-size: 0.95rem;
}

.feature-card ul li i {
    margin-right: 0.5rem;
    color: var(--bs-primary);
}

.feature-card .btn {
    margin-top: 1rem;
}

/* Feature card variants */
.feature-card.card-workflow .feature-icon {
    background: linear-gradient(135deg, #0078d4 0%, #0066a1 100%);
}

.feature-card.card-forms .feature-icon {
    background: linear-gradient(135deg, #107c10 0%, #0b5a0b 100%);
}

.feature-card.card-automation .feature-icon {
    background: linear-gradient(135deg, #ca5010 0%, #8e3a0d 100%);
}

.feature-card.card-audit .feature-icon {
    background: linear-gradient(135deg, #881798 0%, #5c1066 100%);
}

/* =================================================================
   Feature List with Icons - Bullet List with Checkmarks
   ================================================================= */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--bs-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 24px;
    height: 24px;
    background: var(--bs-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.feature-list li strong {
    color: var(--bs-primary);
}

/* =================================================================
   Call-to-Action Cards - Enhanced CTA Sections
   ================================================================= */
.cta-card {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0066a1 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    color: white;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 8px 24px rgba(var(--bs-primary-rgb), 0.25);
}

.cta-card h3 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.cta-card .btn-light {
    background: white;
    color: var(--bs-primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
}

.cta-card .btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.cta-card .btn-outline-light {
    border-color: white;
    color: white;
}

.cta-card .btn-outline-light:hover {
    background: white;
    color: var(--bs-primary);
}

/* =================================================================
   Responsive Utilities
   ================================================================= */
@media (max-width: 991.98px) {
    .pillar-icon {
        width: 70px;
        height: 70px;
    }

    .pillar-icon i {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }

    .cta-card h3 {
        font-size: 1.5rem;
    }

    .cta-card p {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .feature-list li {
        font-size: 0.95rem;
        padding-left: 1.75rem;
    }

    .feature-list li::before {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
}

/* =================================================================
   Smooth Scroll Behavior for Navigation
   ================================================================= */
html {
    scroll-behavior: smooth;
}

/* Offset for sticky navigation when jumping to sections */
section[id] {
    scroll-margin-top: 150px;
}

@media (max-width: 767.98px) {
    section[id] {
        scroll-margin-top: 100px;
    }
}

/* =================================================================
   Print Styles (Optional - for documentation printing)
   ================================================================= */
@media print {
    .feature-nav-pills,
    .cta-card {
        display: none;
    }

    .feature-card,
    .platform-comparison-table,
    .feature-tier-table {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
