/**
 * Layout Minimal CSS - Clean Minimal Design
 * 
 * Provides layout-specific styling for the Minimal design template.
 * Works in conjunction with _Layout-Minimal.cshtml to create a clean, 
 * typography-focused page structure with refined visual hierarchy.
 * 
 * This file contains:
 * - Minimal layout container styles
 * - Simplified header and navigation
 * - Clean footer styling
 * - Centered content with max-width constraint
 * - Refined image, button, and interactive element styling
 * - Responsive adjustments for mobile
 */

/* ==========================================
   Layout Container Styles
   ========================================== */

body {
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #333333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Main layout container */
.layout-minimal-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
}

/* Header styling for minimal layout */
.layout-minimal-header {
    padding: 2rem 0;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 3rem;
}

/* Main content wrapper with max-width constraint */
.layout-minimal-main {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    margin-bottom: 3rem;
}

/* Footer styling for minimal layout */
.layout-minimal-footer {
    background-color: #fafafa;
    border-top: 1px solid #eeeeee;
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
}

/* ==========================================
   Navigation Styling
   ========================================== */

.layout-minimal-nav {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
}

.layout-minimal-nav a {
    color: #333333;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    outline: none;
}

.layout-minimal-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333333;
    transition: width 0.3s ease;
}

.layout-minimal-nav a:hover::after,
.layout-minimal-nav a:focus::after {
    width: 100%;
}

.layout-minimal-nav a:focus {
    outline: 2px solid #333333;
    outline-offset: 4px;
    border-radius: 2px;
}

/* ==========================================
   Content Area Styling - Typography Focused
   ========================================== */

.layout-minimal-content {
    padding: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.layout-minimal-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: #000000;
    letter-spacing: -0.02em;
    font-family: "Georgia", "Garamond", serif;
}

.layout-minimal-content h1 + p {
    font-size: 1.1rem;
    color: #666666;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.25px;
}

.layout-minimal-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #111111;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    font-family: "Georgia", "Garamond", serif;
    letter-spacing: -0.01em;
}

.layout-minimal-content h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 1.5rem;
}

.layout-minimal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #222222;
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.2px;
}

.layout-minimal-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333333;
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.2px;
}

.layout-minimal-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    word-spacing: 0.05em;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.3px;
}

.layout-minimal-content p:last-child {
    margin-bottom: 0;
}

.layout-minimal-content ul,
.layout-minimal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.layout-minimal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    letter-spacing: 0.25px;
}

.layout-minimal-content li:last-child {
    margin-bottom: 0;
}

.layout-minimal-content a {
    color: #333333;
    text-decoration: underline;
    transition: all 0.2s ease;
    outline: none;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.layout-minimal-content a:hover {
    color: #000000;
    text-decoration: underline wavy;
}

.layout-minimal-content a:focus {
    outline: 2px solid #333333;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Blockquote styling */
.layout-minimal-content blockquote {
    border-left: 4px solid #dddddd;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #666666;
    font-style: italic;
    line-height: 1.7;
    font-family: "Georgia", "Garamond", serif;
    font-size: 1.05rem;
    font-weight: 400;
}

.layout-minimal-content blockquote p {
    margin-bottom: 0.5rem;
}

/* Code block styling */
.layout-minimal-content pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid #e8e8e8;
    line-height: 1.5;
    font-family: "Fira Code", "Courier New", monospace;
    font-size: 0.9rem;
    font-weight: 400;
}

.layout-minimal-content code {
    font-family: "Fira Code", "Courier New", monospace;
    font-size: 0.9rem;
    color: #555555;
    font-weight: 400;
}

/* Image Styling */
.layout-minimal-content img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
    transition: box-shadow 0.3s ease;
}

.layout-minimal-content img:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.layout-minimal-content img.rounded-sm {
    border-radius: 4px;
}

.layout-minimal-content img.rounded-lg {
    border-radius: 12px;
}

/* Table Styling */
.layout-minimal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.layout-minimal-content table th {
    background-color: #f5f5f5;
    font-weight: 600;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid #eeeeee;
    color: #333333;
}

.layout-minimal-content table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.layout-minimal-content table tbody tr:hover {
    background-color: #fafafa;
}

/* Button Styling */
.layout-minimal-content button,
.layout-minimal-content .btn {
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.layout-minimal-content button:hover,
.layout-minimal-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card/Box Styling */
.layout-minimal-content .card,
.layout-minimal-content .box {
    border-radius: 8px;
    border: 1px solid #eeeeee;
    padding: 1.5rem;
    background-color: #fafafa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin: 1.5rem 0;
}

.layout-minimal-content .card:hover,
.layout-minimal-content .box:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Divider/Separator */
.layout-minimal-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 2rem 0;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */

@media (max-width: 768px) {
    .layout-minimal-main {
        padding: 0 1.5rem;
        margin-bottom: 2rem;
    }

    .layout-minimal-header {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

    .layout-minimal-content h1 {
        font-size: 1.75rem;
    }

    .layout-minimal-content h2 {
        font-size: 1.4rem;
        margin-top: 2rem;
    }

    .layout-minimal-content h3 {
        font-size: 1.1rem;
    }

    .layout-minimal-nav {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .layout-minimal-footer {
        padding: 1.5rem 0;
    }

    .layout-minimal-content img {
        border-radius: 6px;
        margin: 1rem 0;
    }

    .layout-minimal-content table {
        font-size: 0.9rem;
        margin: 1.5rem 0;
    }

    .layout-minimal-content table th,
    .layout-minimal-content table td {
        padding: 0.5rem;
    }

    .layout-minimal-content pre {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .layout-minimal-main {
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }

    .layout-minimal-header {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }

    .layout-minimal-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .layout-minimal-content h2 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }

    .layout-minimal-content h3 {
        font-size: 1rem;
    }

    .layout-minimal-content h4 {
        font-size: 0.95rem;
    }

    .layout-minimal-nav {
        flex-direction: column;
        gap: 1rem;
        font-size: 0.85rem;
    }

    .layout-minimal-nav a {
        padding: 0.5rem 0;
    }

    .layout-minimal-footer {
        padding: 1rem 0;
        font-size: 0.85rem;
    }

    .layout-minimal-content p {
        text-align: left;
        margin-bottom: 1.25rem;
    }

    .layout-minimal-content img {
        border-radius: 4px;
        margin: 1rem 0;
    }

    .layout-minimal-content ul,
    .layout-minimal-content ol {
        margin-bottom: 1.25rem;
        padding-left: 1.25rem;
    }

    .layout-minimal-content li {
        margin-bottom: 0.5rem;
    }

    .layout-minimal-content blockquote {
        padding-left: 1rem;
        margin: 1.5rem 0;
    }

    .layout-minimal-content table {
        font-size: 0.8rem;
        margin: 1rem 0;
    }

    .layout-minimal-content pre {
        font-size: 0.75rem;
        padding: 0.5rem;
        border-radius: 4px;
    }

    .layout-minimal-content button,
    .layout-minimal-content .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .layout-minimal-content .card,
    .layout-minimal-content .box {
        padding: 1rem;
        margin: 1rem 0;
    }
}
