﻿/* ===================================================================
   Homepage-Specific Styles (Index.cshtml)
   Location: Pages/Index.css
   Scope: Only applies to homepage
   Bootstrap 5 CSS Variables: Use var(--bs-*) instead of hardcoded colors

   Note: Common workflow components (.standards-badge, .pillar-card, 
         .pillar-icon) are defined in workflow-enhancements.css (theme-level)
         and automatically available. Only homepage-specific overrides
         and unique styles should be defined here.
   =================================================================== */

/* Hero Section - Additional padding for absolute header */
/* Header is absolutely positioned on homepage (ViewData["IsHeaderWrapAbsolute"] = true) */
/* This prevents header from overlapping hero content */
.hero-with-absolute-header {
    padding-top: 8rem !important; /* 128px - accounts for ~90px header + buffer */
}

/* Hero Section - Extra bottom padding for wave clearance */
/* Trust indicators need significant space above 150px wave */
.hero-extra-bottom-padding {
    padding-bottom: 12rem !important; /* 192px - ensures trust indicators fully visible above wave */
}

/* Responsive: Smaller header on mobile/tablet */
@media (max-width: 991.98px) {
    .hero-with-absolute-header {
        padding-top: 6rem !important; /* 96px - collapsed navbar is smaller */
    }

    .hero-extra-bottom-padding {
        padding-bottom: 10rem !important; /* 160px - adjusted for mobile */
    }
}

/* Use Case Cards - Homepage Only */
.use-case-card {
    transition: all 0.3s ease;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.use-case-card.featured {
    border: 2px solid var(--bs-primary);
    position: relative;
}

.use-case-card.featured::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0066a1 100%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.1;
}

.use-case-card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(var(--bs-primary-rgb), 0.15) !important;
    transform: translateY(-5px);
}

/* Workflow Icon Placeholder - Homepage Use Cases */
.workflow-icon-placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bs-light) 0%, var(--bs-gray-200) 100%);
    border-radius: var(--bs-border-radius);
}

/* Pillar Icon Image - Homepage-specific sizing override */
/* Note: .pillar-icon is defined in workflow-enhancements.css */
.pillar-icon-img {
    width: 60px;
    height: 60px;
}

/* Grant Application BPMN Image - Featured Use Case */
.grant-bpmn-image {
    max-height: 250px;
    object-fit: contain;
    background: white;
    padding: 10px;
}

/* Workflow Placeholder Icon - Coming Soon Use Cases */
.workflow-placeholder-icon {
    font-size: 4rem;
    color: var(--bs-primary);
    opacity: 0.4;
}

/* ===================================================================
   Platform in Action Section - Tabbed Screenshots
   =================================================================== */

/* Screenshot Container */
.screenshot-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--bs-border-radius);
}

.screenshot-container img {
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.screenshot-container img:hover {
    transform: scale(1.02);
}

/* Tab Navigation */
.nav-pills .nav-link {
    border-radius: var(--bs-border-radius);
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.nav-pills .nav-link:hover {
    background: var(--bs-gray-200);
}

.nav-pills .nav-link.active {
    background: var(--bs-primary);
    color: white;
}

/* Tab Content Animation */
.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive: Stack tabs on mobile */
@media (max-width: 767.98px) {
    .nav-pills {
        flex-direction: column;
    }

    .nav-pills .nav-link {
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .screenshot-container img {
        margin-bottom: 1rem;
    }
}

/* ===================================================================
   Get Started Section - Trust + Pricing + CTAs
   =================================================================== */

/* Trust Indicators */
.trust-indicator {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.trust-indicator:hover {
    transform: translateY(-3px);
}

/* Success Metrics */
.success-metric {
    padding: 1rem;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--bs-secondary);
    display: block;
    margin-top: 0.5rem;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--bs-border-color);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Featured Pricing Card (Professional tier) */
.pricing-card.featured {
    border: 2px solid var(--bs-primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.pricing-card.featured::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0066a1 100%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.05;
}

/* CTA Cards */
.cta-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--bs-border-color);
}

.cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive: Pricing and CTA cards on mobile */
@media (max-width: 767.98px) {
    .pricing-card,
    .cta-card {
        margin-bottom: 1.5rem;
    }

    .metric-number {
        font-size: 2rem;
    }
}

/* ===================================================================
   Four Pillars Cards (Homepage)
   =================================================================== */

/* Four Pillars Cards */
.pillar-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pillar-card-icon {
    font-size: 3rem;
    color: var(--bs-primary);
    margin-bottom: 1.5rem;
}

.pillar-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.pillar-card-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.pillar-card .pillar-card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4a4a !important;
    margin-bottom: 1rem;
}

.pillar-card .pillar-card-benefit {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666 !important;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--bs-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .pillar-card {
        padding: 2rem;
    }

    .pillar-card-icon {
        font-size: 2.5rem;
    }

    .pillar-card-title {
        font-size: 1.3rem;
    }
}

