/* ===== CSS VARIABLES ===== */
:root {
    --background: #ffffff;
    --foreground: #212836;
    --primary: #0f172a;
    --accent: #00d4ff;
    --accent-dark: #00a3b3;
    --accent-foreground: #0f1a33;
    --secondary: #123ff3;
    --secondary-foreground: #ffffff;
    --muted: #f5f7fa;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    --gradient-hero: linear-gradient(135deg, hsl(225, 60%, 14%) 0%, hsl(225, 60%, 24%) 50%, hsl(190, 100%, 20%) 100%);
    --gradient-accent: linear-gradient(90deg, hsl(190, 100%, 50%) 0%, hsl(190, 100%, 60%) 100%);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-md: 0 8px 30px -4px rgba(33, 40, 54, 0.12);
}

/* ===== RESET (was missing the * selector) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--foreground);
    background: var(--background);
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* ===== DISCLAIMER BOX ===== */
.disclaimer-box {
    background-color: #fffaeb;
    border-left: 4px solid hsl(45, 90%, 50%);
    padding: 1.25rem;
    border-radius: 4px;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.disclaimer-icon {
    flex-shrink: 0;
    color: #f2b90d;
    margin-top: 2px;
}

.disclaimer-icon svg {
    width: 24px;
    height: 24px;
}

.disclaimer-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--foreground);
}

.disclaimer-content strong {
    color: var(--foreground);
    font-weight: 700;
}

.disclaimer-content a {
    color: #00b3b3;
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.25rem;
}

.disclaimer-content a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .disclaimer-box {
        padding: 1rem;
        gap: 0.75rem;
    }
    .disclaimer-icon svg {
        width: 20px;
        height: 20px;
    }
    .disclaimer-content {
        font-size: 0.9rem;
    }
}


/* ===== ARTICLE HEADER (hero section - kept for future use) ===== */
.article-header {
    position: relative;
    width: 100%;
    padding: 3rem 0 5rem;
    overflow: hidden;
    background: var(--gradient-hero);
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px -2px rgba(33, 40, 54, 0.2);
}

.header-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, hsla(190,100%,50%,0.05) 0%, transparent 50%),
                       radial-gradient(circle at 80% 80%, hsla(14,100%,61%,0.05) 0%, transparent 50%);
    opacity: 1;
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.breadcrumbs {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    text-transform: capitalize;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.breadcrumbs a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.breadcrumbs span {
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.4);
}

.article-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

.article-meta a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}


/* ===== GUIDE CONTENT TYPOGRAPHY =====
   Content is bare <p>, <h2>, <h3>, <table> etc. in body
   (no .article-content wrapper exists in HTML)
   Using element selectors scoped to guide pages via this stylesheet
   ===== */

h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

p {
    font-size: 1.1875rem;
    margin-bottom: 1.75rem;
    line-height: 1.8;
    max-width: 1080px;
}

a {
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    border-bottom-color: var(--secondary);
    opacity: 0.8;
}

strong, b {
    font-weight: 700;
    color: var(--primary);
}

blockquote {
    border-left: 4px solid var(--accent);
    background: var(--muted);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: var(--muted-foreground);
    border-radius: 0 8px 8px 0;
}

code {
    background: var(--muted);
    padding: 0.25em 0.5em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: "Courier New", monospace;
    color: var(--primary);
    border: 1px solid var(--border);
}

pre {
    background: var(--primary);
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-md);
}

ul, ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

li {
    font-size: 1.1875rem;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}


/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    font-size: 1rem;
    background: #fff;
    display: table;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: #374151;
    line-height: 1.7;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:nth-child(even) {
    background-color: #f8f9ff;
}

tbody tr:nth-child(odd) {
    background-color: #fff;
}

tbody tr:hover {
    background-color: #f0f4ff;
}

tbody tr:last-child td {
    border-bottom: none;
}

td strong {
    color: var(--primary);
    font-weight: 700;
}

/* Responsive table wrapper (if used) */
.table-wrapper {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.table-wrapper table {
    margin: 0;
    box-shadow: none;
}

/* Mobile table scroll */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    th, td {
        padding: 1rem;
        font-size: 0.875rem;
    }
}


/* ===== CONTENT CONTAINER (guide body area) ===== */
/* Constrain bare content width on guide pages */
body > p,
body > h2,
body > h3,
body > ul,
body > ol,
body > blockquote,
body > table,
body > .table-wrapper,
body > .disclaimer-box {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

body > img,
body > p > img {
    display: block;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar (if present) */
.sidebar-container {
    display: none;
}

@media (min-width: 1024px) {
    .sidebar-container {
        display: block;
        height: 100%;
    }
}


/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 768px) {
    body {
        font-size: 1.0625rem;
    }
    h2 {
        font-size: 1.625rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    p, li {
        font-size: 1.0625rem;
    }
    .article-header h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
}

@media (max-width: 480px) {
    body > p,
    body > h2,
    body > h3,
    body > ul,
    body > ol,
    body > blockquote,
    body > table,
    body > .table-wrapper,
    body > .disclaimer-box {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
