/**
 * Layout V2 CSS - Professional V2 Design
 * 
 * Provides layout-specific styling for the V2 professional design template.
 * Works in conjunction with _LayoutV2.cshtml to create the overall page structure.
 * 
 * This file contains:
 * - Layout container styles
 * - Header and navigation styling
 * - Footer styling
 * - Main content area layout
 * - Responsive adjustments
 */

/* ==========================================
   Layout Container Styles
   ========================================== */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: clip;
}

/* Main layout container */
.layout-v2-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Header styling for V2 layout */
.layout-v2-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

/* Main content wrapper */
.layout-v2-main {
    flex: 1;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

/* Footer styling for V2 layout */
.layout-v2-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0;
    margin-top: auto;
    border-top: 1px solid #34495e;
}

/* ==========================================
   Navigation Styling
   ========================================== */

.layout-v2-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: 500;
}

.layout-v2-nav a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.layout-v2-nav a:hover {
    color: #3498db;
}

/* ==========================================
   Content Area Styling
   ========================================== */

.layout-v2-content {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.layout-v2-content h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.layout-v2-content h2 {
    color: #34495e;
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */

@media (max-width: 768px) {
    .layout-v2-container {
        padding: 0;
    }

    .layout-v2-content {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .layout-v2-content h1 {
        font-size: 2rem;
    }

    .layout-v2-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .layout-v2-footer {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .layout-v2-content {
        padding: 1rem;
        margin: 0 0.25rem;
    }

    .layout-v2-content h1 {
        font-size: 1.5rem;
    }

    .layout-v2-content h2 {
        font-size: 1.25rem;
    }
}

/* ==========================================
   Mobile navbar overrides
   ========================================== */

/* On mobile the fixed-top header becomes relative so no body offset is needed */
@media (max-width: 991.98px) {
    .fixed-top-contain {
        position: relative !important;
        top: auto !important;
    }

    .body-container {
        margin-top: 0 !important;
    }
}
