/* Partially Generated by Copilot */
/* dotTC57 Page Specific Styles */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent sections from hiding behind fixed header */
section {
    scroll-margin-top: 450px; /* Account for fixed nav + header */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Keep main header fixed but add padding to body to prevent overlap */
body {
    padding-top: 80px; /* Adjust based on header height */
}

#overview {
    padding-top: 450px;
}

/* Header Links */
.header-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-github,
.btn-nuget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
}

.btn-github {
    background-color: #24292e;
    color: #ffffff;
    border: 2px solid #24292e;
}

.btn-github:hover {
    background-color: #1a1e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 41, 46, 0.3);
}

.btn-nuget {
    background-color: #004880;
    color: #ffffff;
    border: 2px solid #004880;
}

.btn-nuget:hover {
    background-color: #003560;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 72, 128, 0.3);
}

/* dotTC57 Sections */
.dottc57-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.dottc57-section.alt-bg {
    background-color: var(--light-bg);
}

.dottc57-section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.content-block {
    max-width: 900px;
    margin: 0 auto;
}

.content-block p {
    font-size: 1.15em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.content-block strong {
    color: var(--primary-color);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-card p {
    font-size: 1.1em;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* Problem/Solution Boxes */
.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.problem-box,
.solution-box {
    padding: 30px;
    border-radius: 8px;
}

.problem-box {
    background-color: #ffebee;
    border-left: 4px solid #d32f2f;
}

.solution-box {
    background-color: #e8f5e9;
    border-left: 4px solid var(--secondary-color);
}

.problem-box h3,
.solution-box h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.problem-box ul,
.solution-box ul {
    font-size: 1.05em;
    line-height: 1.7;
    margin-left: 20px;
}

.problem-box li,
.solution-box li {
    margin-bottom: 12px;
}

/* Code Comparison */
.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.code-before,
.code-after {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.code-before h3,
.code-after h3 {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.1em;
}

.code-before h3 {
    background-color: #c62828;
}

.code-after h3 {
    background-color: var(--secondary-color);
}

.code-before pre,
.code-after pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    background-color: #f8f9fa;
}

.code-before code,
.code-after code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    line-height: 1.5;
    color: #333;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.highlight-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.highlight-card h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.highlight-card p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

/* Use Cases */
.use-cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.use-case-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.use-case-card h3 {
    color: var(--secondary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.use-case-card p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.community-note {
    background-color: rgba(226, 92, 4, 0.1);
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
    margin-top: 30px;
    font-style: italic;
}

/* Call to Action */
.dottc57-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.dottc57-cta h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    color: #ffffff;
}

.dottc57-cta > .container > p {
    font-size: 1.3em;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 20px;
    color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-buttons .btn-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: 2px solid var(--secondary-color);
}

.cta-buttons .btn-primary:hover {
    background-color: #c74f03;
    border-color: #c74f03;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 92, 4, 0.3);
}

.cta-buttons .btn-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.cta-buttons .btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .problem-solution {
        grid-template-columns: 1fr;
    }
    
    .code-comparison {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases {
        grid-template-columns: 1fr;
    }
    
    .dottc57-section h2 {
        font-size: 2em;
    }
    
    .content-block p {
        font-size: 1.05em;
    }
    
    .dottc57-cta {
        padding: 60px 20px;
    }
    
    .dottc57-cta h2 {
        font-size: 2em;
    }
    
    .dottc57-cta > .container > p {
        font-size: 1.15em;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .header-links {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-github,
    .btn-nuget {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}
