﻿/* ============================================================================
   File: mycasehub-public.css
   Path: Web/wwwroot/css/mycasehub-public.css
   Created: Batch 1.3 - Landing Page & Public Layout
   Updated: Fixed hero section, feature icons, pricing cards, scroll button
   Description: Public pages stylesheet (Landing, Register, Contact, etc.)
   ============================================================================ */

/* ============================================================================
   HERO SECTION - Full Viewport Height with Image Background
   ============================================================================ */
.hero-section {
    position: relative;
    min-height: calc(100vh - 56px); /* Full viewport minus navbar height */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/hero-justice.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 60px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background-color: #f97316;
    border-color: #f97316;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3);
}

    .hero-buttons .btn-primary:hover {
        background-color: #ea580c;
        border-color: #ea580c;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(249, 115, 22, 0.4);
    }

.hero-buttons .btn-outline-light {
    border: 2px solid #ffffff;
    color: #ffffff;
    background-color: transparent;
}

    .hero-buttons .btn-outline-light:hover {
        background-color: #ffffff;
        color: #1e40af;
        transform: translateY(-2px);
    }

    .hero-buttons .btn-outline-light:focus,
    .hero-buttons .btn-outline-light:active,
    .hero-buttons .btn-outline-light.focus {
        border: 2px solid #ffffff;
        color: #ffffff;
        background-color: transparent;
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
        outline: none;
    }

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-badge {
    color: #ffffff;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .feature-badge i {
        color: #34d399;
        font-size: 1.1rem;
    }

/* ============================================================================
   FEATURES SECTION - Fixed Icons and Layout
   ============================================================================ */
.features-section {
    background-color: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

    .feature-icon i {
        font-size: 2.5rem;
    }

.bg-primary {
    background-color: #1e40af !important;
}

.bg-success {
    background-color: #059669 !important;
}

.bg-warning {
    background-color: #f59e0b !important;
}

.bg-info {
    background-color: #0ea5e9 !important;
}

.bg-danger {
    background-color: #dc2626 !important;
}

.bg-secondary {
    background-color: #64748b !important;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================================
   PRICING SECTION - Fixed Card Layout
   ============================================================================ */
.pricing-section {
    background-color: #f8fafc;
}

.pricing-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .pricing-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

    .pricing-card.featured {
        border: 3px solid #1e40af;
        transform: scale(1.05);
        margin-top: 25px;
    }

        .pricing-card.featured:hover {
            transform: scale(1.08) translateY(-8px);
        }

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3);
    white-space: nowrap;
    z-index: 10;
}

.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.plan-target {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0;
}

    .plan-price .currency {
        font-size: 1.5rem;
        font-weight: 600;
        color: #64748b;
    }

    .plan-price .amount {
        font-size: 3rem;
        font-weight: 700;
        color: #1e40af;
        margin: 0 4px;
    }

    .plan-price .period {
        font-size: 1rem;
        color: #64748b;
    }

.annual-price {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

    .plan-features li {
        padding: 0.75rem 0;
        color: #475569;
        font-size: 1rem;
        display: flex;
        align-items: center;
    }

        .plan-features li i {
            color: #059669;
            margin-right: 12px;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .plan-features li strong {
            margin-right: 4px;
        }

        .plan-features li.text-muted i {
            color: #dc2626;
        }

        .plan-features li.text-muted {
            color: #94a3b8;
        }

.pricing-card .btn-block {
    width: 100%;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* ============================================================================
   COMPARE PLANS TABLE
   ============================================================================ */
.compare-table {
    font-size: 0.9rem;
}

    .compare-table .feature-column {
        min-width: 200px;
        font-weight: 500;
    }

    .compare-table th,
    .compare-table td {
        vertical-align: middle;
        padding: 0.75rem;
    }

    .compare-table .table-primary {
        background-color: rgba(30, 64, 175, 0.08) !important;
    }

    .compare-table thead {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .compare-table thead th {
        border-bottom: 2px solid #dee2e6;
        background-color: #f8f9fa;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .compare-table thead th.table-primary {
        background-color: rgba(30, 64, 175, 0.15) !important;
    }

    .compare-table .table-secondary td {
        background-color: #f8f9fa;
        font-size: 0.95rem;
    }

/* Compare Plans Modal - scrollable body for sticky header */
#comparePlansModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#comparePlansModal .table-responsive {
    overflow: visible;
}

/* ============================================================================
   SCROLL TO TOP BUTTON
   ============================================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

    .scroll-to-top:hover {
        background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
        transform: translateY(-4px);
        box-shadow: 0 6px 16px rgba(30, 64, 175, 0.5);
    }

    .scroll-to-top:active {
        transform: translateY(-2px);
    }

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Large desktops */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* Tablets and small desktops */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    .hero-section {
        min-height: calc(100vh - 56px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0 0 10px 0 !important;
    }

        .hero-buttons .btn.ms-3 {
            margin-left: 0 !important;
        }

    .hero-features {
        flex-direction: column;
        gap: 10px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

        .feature-icon i {
            font-size: 2rem;
        }

    .pricing-card {
        margin-bottom: 20px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.text-primary {
    color: #1e40af !important;
}

.text-orange {
    color: #f97316 !important;
}

.bg-light {
    background-color: #f8fafc !important;
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.ms-3 {
    margin-left: 1rem !important;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-orange {
    background-color: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

    .btn-orange:hover {
        background-color: #ea580c;
        border-color: #ea580c;
        color: #ffffff;
    }