/* CA Gun Guide - Modern Static Site */
:root {
    --primary: #1a365d;
    --secondary: #c53030;
    --accent: #ed8936;
    --light: #f7fafc;
    --dark: #2d3748;
    --text: #4a5568;
    --border: #e2e8f0;
    --success: #48bb78;
    --warning: #ecc94b;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    color: white;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-top {
    background: rgba(0,0,0,0.2);
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-main {
    padding: 20px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Navigation */
nav {
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background 0.3s;
    font-weight: 500;
}

nav a:hover, nav a.active {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Tool Banner */
.tool-banner {
    background: var(--secondary);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.tool-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.tool-banner a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* Main Content */
main {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text);
    font-size: 1.1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.card-content {
    padding: 25px;
}

.card-category {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.card p {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--secondary);
}

/* Article Page */
.article-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    color: white;
    padding: 60px 0;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    background: white;
}

.article-content h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.article-content h3 {
    color: var(--dark);
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: var(--dark);
}

.warning-box {
    background: #fff5f5;
    border-left: 4px solid var(--secondary);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.warning-box h4 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.tip-box {
    background: #f0fff4;
    border-left: 4px solid var(--success);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.tip-box h4 {
    color: var(--success);
    margin-bottom: 10px;
}

/* Tool Page */
.tool-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tool-frame {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.disclaimer {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    font-size: 0.85rem;
    color: #a0aec0;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #718096;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
}

/* Table of Contents */
.toc {
    background: #f7fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.toc h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--text);
    text-decoration: none;
    display: block;
    padding: 5px 0;
    border-bottom: 1px dotted var(--border);
}

.toc a:hover {
    color: var(--primary);
}

/* Affiliate Notice */
.affiliate-notice {
    background: #ebf8ff;
    border: 1px solid #90cdf4;
    border-radius: 8px;
    padding: 15px;
    margin: 30px 0;
    font-size: 0.9rem;
    color: #2b6cb0;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #edf2f7;
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text);
}
