/* Main styles.css for root-level referenced pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Header styling to match the inline header styles */
header {
    background: rgba(15, 23, 42, 0.95);
    padding: 1rem 0;
    border-bottom: 1px solid #334155;
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #38bdf8;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #38bdf8;
}

/* Content styling */
main {
    padding: 2rem 0;
}

section {
    background: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.5rem 0 0.75rem 0;
}

p {
    margin-bottom: 1rem;
    color: #4b5563;
    line-height: 1.7;
}

pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

code {
    background-color: #f3f4f6;
    color: #1f2937;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

/* Footer styling */
.footer {
    background: #1e293b;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.875rem;
}

/* Resources section styling */
.resources-section {
    background: rgba(15, 23, 42, 0.8);
    padding: 3rem 0;
    margin-top: 3rem;
}

.resources-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #f59e0b;
    font-size: 2rem;
    border-bottom: none;
}

.resources-section a {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #e2e8f0;
    transition: transform 0.3s;
    display: block;
    margin-bottom: 1rem;
}

.resources-section a:hover {
    transform: translateY(-2px);
}

/* Related guides section */
section[style*="background: linear-gradient"] {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    padding: 3rem 0 !important;
    margin-top: 3rem !important;
    border-top: 3px solid #3b82f6 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    nav {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    section {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}