/* ===== AGENT REVOLUTION SHARED STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a27;
    --bg-card-hover: #22223a;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a82;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --orange: #e17055;
    --orange-bright: #ff7675;
    --green: #00b894;
    --border: #2a2a3d;
    --gradient-1: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-2: linear-gradient(135deg, #e17055 0%, #ff7675 100%);
}

* { 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;
    overflow-x: hidden;
}

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

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-primary); }

code, .mono { font-family: 'JetBrains Mono', monospace; }

/* ===== NAV ===== */
.site-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.site-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo span { color: var(--accent-light); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

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

.nav-links a:hover { color: var(--text-primary); }

.nav-links .nav-cta {
    background: var(--gradient-2);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-links .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(225, 112, 85, 0.4);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-2);
    color: white;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(225, 112, 85, 0.4);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
    color: white;
}

/* ===== SECTIONS ===== */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-light);
    margin-bottom: 16px;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 60px;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HERO ===== */
.hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

/* ===== CODE BLOCKS ===== */
.code-block {
    background: #0d0d18;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow-x: auto;
    position: relative;
    line-height: 1.6;
}

.code-block .comment { color: var(--text-muted); }
.code-block .keyword { color: var(--accent-light); }
.code-block .string { color: var(--green); }
.code-block .variable { color: var(--orange); }

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d0d18;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 10px 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-block-header + .code-block {
    border-radius: 0 0 12px 12px;
    border-top: 1px solid var(--border);
}

.copy-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.copy-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.copy-btn.copied {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 100px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-light); }
.breadcrumbs span { margin: 0 8px; }

/* ===== ARTICLE / CONTENT ===== */
.article-header {
    padding: 30px 0 40px;
    max-width: 800px;
}

.article-header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.article-meta .category {
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    padding: 4px 12px;
    border-radius: 100px;
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content {
    max-width: 800px;
    padding-bottom: 60px;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 48px 0 16px;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 36px 0 12px;
}

.article-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    color: var(--text-secondary);
    margin: 0 0 20px 24px;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.article-content .code-block { margin: 24px 0; }

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(108, 92, 231, 0.05);
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary);
    font-style: italic;
}

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

.article-content a { color: var(--accent-light); text-decoration: underline; }
.article-content a:hover { color: var(--text-primary); }

/* Mid-article CTA */
.mid-cta {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
    text-align: center;
}

.mid-cta h3 { font-size: 1.2rem; margin-bottom: 12px; }
.mid-cta p { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.95rem; }

/* ===== SHARE BUTTONS ===== */
.share-buttons {
    display: flex;
    gap: 12px;
    margin: 30px 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.85; color: white; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }

/* ===== AUTHOR BIO ===== */
.author-bio-box {
    display: flex;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
    align-items: start;
}

.author-bio-box .avatar {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.author-bio-box h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.author-bio-box .role { color: var(--accent-light); font-size: 0.85rem; margin-bottom: 12px; }
.author-bio-box p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== RELATED ARTICLES ===== */
.related-articles { padding: 60px 0; border-top: 1px solid var(--border); }
.related-articles h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 32px; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== BLOG CARDS ===== */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 40px var(--accent-glow);
}

.blog-card-body { padding: 24px; }

.blog-card .category {
    display: inline-block;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    padding: 3px 10px;
    border-radius: 100px;
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== BLOG FILTERS ===== */
.blog-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== FAQ ===== */
.faq-section { padding: 80px 0; }

.faq-grid { max-width: 800px; }

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
    background: none;
    border: none;
    color: var(--text-primary);
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.faq-question:hover { color: var(--accent-light); }
.faq-question .toggle { font-size: 1.5rem; color: var(--accent); transition: transform 0.3s; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 500px; padding-top: 16px; }
.faq-item.open .toggle { transform: rotate(45deg); }

/* ===== NEWS ===== */
.news-entry {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.news-entry:hover { border-color: var(--accent); }

.news-entry .date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-entry h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.news-entry p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; }

.news-entry .tags {
    display: flex;
    gap: 8px;
}

.news-tag {
    display: inline-block;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    padding: 3px 10px;
    border-radius: 100px;
    color: var(--accent-light);
    font-size: 0.7rem;
    font-weight: 500;
}

.news-tag.ai-tools { background: rgba(0, 184, 148, 0.1); border-color: rgba(0, 184, 148, 0.2); color: var(--green); }
.news-tag.industry { background: rgba(225, 112, 85, 0.1); border-color: rgba(225, 112, 85, 0.2); color: var(--orange); }

/* ===== NEWSLETTER ===== */
.newsletter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 60px 0;
}

.newsletter h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.newsletter p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.95rem; }

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input:focus { border-color: var(--accent); }

.newsletter-form button {
    padding: 14px 28px;
    border-radius: 10px;
    background: var(--gradient-1);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover { transform: translateY(-1px); }

/* ===== FOOTER ===== */
.site-footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; line-height: 1.6; }

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

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

.footer-col li { margin-bottom: 10px; }

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ===== GUIDE PAGE ===== */
.guide-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    padding: 40px 0 80px;
}

.guide-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.guide-sidebar ul { list-style: none; }

.guide-sidebar li { margin-bottom: 6px; }

.guide-sidebar a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.guide-sidebar a:hover, .guide-sidebar a.active {
    color: var(--accent-light);
    background: rgba(108, 92, 231, 0.05);
    border-left-color: var(--accent);
}

.guide-sidebar .sidebar-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 600;
    padding: 16px 12px 6px;
}

/* ===== RESOURCES ===== */
.template-section { margin-bottom: 48px; }
.template-section h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.template-section > p { color: var(--text-muted); margin-bottom: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .blog-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .guide-layout { grid-template-columns: 1fr; }
    .guide-sidebar { position: static; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }
    .hamburger { display: flex; }
    .hero { padding: 120px 0 60px; }
    .section-title { font-size: 2rem; }
    .article-header h1 { font-size: 2rem; }
    .blog-grid, .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .share-buttons { flex-wrap: wrap; }
    .author-bio-box { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 480px) {
    .hero h1, .article-header h1 { font-size: 1.8rem; }
    .btn-primary { width: 100%; justify-content: center; }
}
