/* ==============================================================================
   GardenWarGame - Production Stylesheet
   Modern, Clean, Fast, High-Contrast Typography & Logo Branding
   ============================================================================== */

:root {
    --primary: #059669;
    --primary-hover: #047857;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --accent: #10b981;
    --teal: #0d9488;
    --code-bg: #0f172a;
    --code-text: #f8fafc;
    --success: #16a34a;
    --warning: #d97706;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.65;
    font-size: 16px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Site Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
}

.logo-icon-wrap {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #059669, #0f172a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.shield-path {
    color: #6ee7b7;
}

.spark-path {
    color: #ffffff;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.logo-text .accent {
    color: #059669;
}

.logo-text .teal {
    color: #0d9488;
}

.logo-text .tld {
    font-size: 0.75rem;
    color: #059669;
    font-family: var(--font-mono);
    font-weight: 600;
    margin-left: 2px;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.main-nav a {
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.4rem 0.2rem;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--primary);
}

.header-search .search-form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.header-search input {
    border: none;
    background: transparent;
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
    outline: none;
    width: 170px;
}

.header-search button {
    border: none;
    background: transparent;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 3.5rem 0 3rem;
}

.hero-inner {
    max-width: 860px;
    text-align: center;
}

.hero-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid #d1fae5;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hero-logo-icon {
    width: 24px;
    height: 24px;
    background: #059669;
    border-radius: 6px;
    padding: 3px;
    color: #fff;
}

.hero-brand-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #065f46;
}

.hero-clean-tag {
    font-size: 0.75rem;
    font-mono;
    background: #ecfdf5;
    color: #047857;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #a7f3d0;
    font-weight: 600;
}

.hero-heading {
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-search-form {
    display: flex;
    max-width: 650px;
    margin: 0 auto;
    border: 2px solid #059669;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(5,150,105,0.15);
}

.hero-search-form input {
    flex: 1;
    border: none;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    outline: none;
}

.hero-search-form button {
    background: #059669;
    color: #ffffff;
    border: none;
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.hero-search-form button:hover {
    background: #047857;
}

.quick-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quick-keywords a {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
}

/* Category Grid */
.section-categories, .section-featured {
    padding: 3rem 0 1rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.cat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cat-card-header h3 a {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
}

.cat-badge {
    background: #ecfdf5;
    color: #059669;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.cat-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.cat-link {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
}

.card-cat {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-weight: 600;
}

.card-time {
    color: #94a3b8;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.card-title a {
    color: #0f172a;
}

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

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
    font-size: 0.8rem;
}

.card-date {
    color: #94a3b8;
}

.card-read {
    font-weight: 700;
}

/* ARTICLE VIEW: PROMINENT LOGO BANNER */
.article-layout {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    margin-top: 1rem;
}

.article-main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem;
}

.article-logo-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #064e3b 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
    color: #ffffff;
}

.banner-logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shield-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10b981, #0d9488);
    border-radius: 10px;
    padding: 6px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #ffffff;
}

.brand-title .highlight-accent {
    color: #34d399;
}

.brand-title .highlight-teal {
    color: #5eead4;
}

.brand-title .brand-tld {
    font-size: 0.75rem;
    color: #34d399;
    font-family: var(--font-mono);
    margin-left: 2px;
}

.brand-sub {
    font-size: 0.75rem;
    color: #cbd5e1;
    display: block;
    margin-top: 2px;
}

.banner-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clean-url-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.domain-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* Article Meta */
.article-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.meta-pills {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.category-pill {
    background: #ecfdf5;
    color: #047857;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
}

.article-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 1rem;
}

.article-author-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.author-name {
    font-weight: 700;
    color: #0f172a;
}

.author-role {
    font-size: 0.8rem;
    color: #64748b;
    margin-left: 0.35rem;
}

.updated-date strong {
    color: #059669;
}

/* AdSense Notice Box */
.adsense-placeholder {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    margin: 1.75rem 0;
    color: #64748b;
}

.adsense-placeholder .ad-label {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #e2e8f0;
    color: #475569;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

/* Quick Answer Card */
.quick-answer-card {
    background: #f0fdf4;
    border-left: 4px solid #059669;
    border-radius: 0 10px 10px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}

.qa-badge {
    color: #065f46;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qa-content p {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.6;
}

/* Table of Contents */
.toc-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}

.toc-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.toc-list a {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 500;
}

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

/* Content Sections */
.content-section {
    margin: 2.25rem 0;
}

.content-section h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.causes-list, .verification-list {
    list-style: none;
    margin-top: 0.75rem;
}

.causes-list li, .verification-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.step-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #059669;
    color: #fff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Code block */
.code-wrapper {
    background: var(--code-bg);
    border-radius: 8px;
    margin: 0.75rem 0;
    overflow: hidden;
    position: relative;
}

.code-header {
    background: #1e293b;
    color: #94a3b8;
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

pre {
    padding: 1rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--code-text);
    line-height: 1.5;
}

code {
    font-family: var(--font-mono);
}

/* Alert Boxes */
.alert-box {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.88rem;
    margin-top: 0.75rem;
}

.warning-box {
    background: #fffbeb;
    border-left: 3px solid #d97706;
    color: #92400e;
}

.tip-box {
    background: #ecfdf5;
    border-left: 3px solid #059669;
    color: #065f46;
}

/* Matrix Table */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.troubleshooting-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.troubleshooting-table th, .troubleshooting-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.troubleshooting-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

/* FAQs */
.faq-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.faq-q {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.faq-a {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    border-bottom: 2px solid #059669;
    padding-bottom: 0.35rem;
}

.sidebar-logo-card {
    text-align: center;
    padding: 0.5rem 0;
}

.sidebar-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #059669, #0f172a);
    border-radius: 12px;
    padding: 8px;
    color: #fff;
    margin: 0 auto 0.75rem;
}

.sidebar-logo-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.sidebar-logo-card .tld {
    color: #059669;
}

.sidebar-logo-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.sidebar-search {
    display: flex;
}

.sidebar-search input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    outline: none;
}

.sidebar-search button {
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 0.5rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.cat-list, .recent-list {
    list-style: none;
}

.cat-list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid #f8fafc;
}

.cat-list a {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #334155;
}

.recent-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
}

.recent-title {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.recent-date {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #64748b;
}

.breadcrumbs .current {
    color: #0f172a;
    font-weight: 600;
}

/* Site Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding-top: 3.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand .logo-text {
    color: #ffffff;
    font-size: 1.4rem;
}

.footer-desc {
    margin: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-disclaimer-note {
    font-size: 0.78rem;
    color: #64748b;
}

.footer-col h4 {
    color: #f8fafc;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

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

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: #94a3b8;
    font-size: 0.88rem;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    background: #020617;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    border-top: 1px solid #1e293b;
}

.bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links a {
    color: #94a3b8;
    margin: 0 0.35rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .header-search {
        display: none;
    }
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .toc-list {
        grid-template-columns: 1fr;
    }
}
