/* Clawdiator - Article Styles */
/* Black (#0a0a0a) + Gold (#d4af37) Theme */

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --gold: #d4af37;
    --gold-light: #e8c967;
    --gold-dark: #b8942d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

/* Header */
header {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

header nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--gold);
}

header nav a:first-child {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
}

article {
    background: var(--bg-secondary);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 0;
    padding: 2.5rem;
}

article h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1.2;
}

article .meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

article h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

article p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

article ul, article ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

article li {
    margin-bottom: 0.75rem;
}

article li strong {
    color: var(--gold);
}

article a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

article a:hover {
    border-bottom-color: var(--gold);
}

article blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

article code {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 0.2rem 0.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    border-radius: 3px;
}

article pre {
    background: var(--bg-primary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.85rem;
}

/* Related Articles */
article h2:last-of-type {
    margin-top: 3rem;
}

article ul:last-child {
    list-style: none;
    margin-left: 0;
}

article ul:last-child li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

article ul:last-child li:last-child {
    border-bottom: none;
}

/* Sidebar */
aside {
    position: sticky;
    top: 5rem;
    align-self: start;
}

aside h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

aside p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--gold);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.cta-button:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

footer nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

footer nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

footer nav a:hover {
    color: var(--gold);
}

/* Responsive */
@media (max-width: 900px) {
    main {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    
    aside {
        position: static;
        order: -1;
        background: var(--bg-secondary);
        border: 1px solid rgba(212, 175, 55, 0.1);
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    article {
        padding: 1.5rem;
    }
    
    article h1 {
        font-size: 1.75rem;
    }
    
    header nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    
    article {
        padding: 1.25rem;
    }
    
    article h1 {
        font-size: 1.5rem;
    }
}

/* ============================================
   ALTERNATE TEMPLATE STYLES (main-nav, article-hero)
   ============================================ */

/* Container utility */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Main Navigation (alternate) */
.main-nav {
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.main-nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-nav .logo {
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
}

.main-nav .nav-links {
    display: flex;
    gap: 2rem;
}

.main-nav .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.main-nav .nav-links a:hover {
    color: var(--gold);
}

/* Article Hero */
.article-hero {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.article-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-hero .subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.article-hero .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-hero .meta span {
    margin: 0 1rem;
}

/* Article Content (alternate) */
.article-content {
    padding: 3rem 0;
}

.article-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.main-article {
    background: var(--bg-secondary);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 2.5rem;
}

.main-article section {
    margin-bottom: 2.5rem;
}

.main-article .intro .lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Checklist Styles */
.checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.checklist li {
    padding: 1rem 1rem 1rem 2.5rem;
    margin-bottom: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 0;
    position: relative;
    color: var(--text-secondary);
}

.checklist li::before {
    content: "☐";
    position: absolute;
    left: 1rem;
    color: var(--gold);
    font-size: 1rem;
}

/* Tip/Callout boxes */
.tip, .callout, .warning {
    background: rgba(212, 175, 55, 0.08);
    border-left: 4px solid var(--gold);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.tip strong, .callout strong, .warning strong {
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}

/* Related Articles box */
.related {
    background: var(--bg-primary);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 2rem;
    margin-top: 3rem;
}

.related h4 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.related li:last-child {
    border-bottom: none;
}

/* Main Footer (alternate) */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2.5rem 0;
    margin-top: 3rem;
}

.main-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-footer .footer-links {
    display: flex;
    gap: 2rem;
}

.main-footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.main-footer .footer-links a:hover {
    color: var(--gold);
}

.main-footer .copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Table styles */
article table, .main-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

article th, .main-article th {
    background: var(--bg-primary);
    color: var(--gold);
    padding: 1rem;
    text-align: left;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

article td, .main-article td {
    background: var(--bg-secondary);
    padding: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-secondary);
}

/* FAQ Styles */
.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-secondary);
}

/* Responsive adjustments for alternate template */
@media (max-width: 768px) {
    .main-nav .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .article-hero {
        padding: 2.5rem 0 2rem;
    }
    
    .article-hero h1 {
        font-size: 1.75rem;
    }
    
    .article-hero .subtitle {
        font-size: 1rem;
    }
    
    .main-article {
        padding: 1.5rem;
    }
    
    .main-footer .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
