/* ============================================
   SEOGraz - Individual Term Pages
   ============================================ */

.hero--term {
    padding: 2.5rem 0 1.5rem;
}

.hero--term h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
}

.hero--term .hero-intro {
    font-size: 1.1rem;
    max-width: 650px;
}

/* Term Content */
.content--term {
    padding-top: 2rem;
}

.content--term section {
    border-bottom: none;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.content--term h2 {
    margin-top: 2.5rem;
}

.content--term h2:first-of-type {
    margin-top: 0;
}

/* Key Facts Box */
.key-facts {
    background: var(--bg-section);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.key-facts h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--accent);
}

.key-facts ul {
    margin: 0;
    padding-left: 1.25rem;
}

.key-facts li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Checklist */
.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding-left: 1.75rem;
    position: relative;
}

.checklist li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Pro/Con */
.pro-con-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.pro-box, .con-box {
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.pro-box {
    background: #f0f9f0;
    border-left: 4px solid #2d7a2d;
}

.pro-box h4 {
    color: #2d7a2d;
}

.con-box {
    background: #fdf0f0;
    border-left: 4px solid #c0392b;
}

.con-box h4 {
    color: #c0392b;
}

.pro-box h4, .con-box h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.pro-box ul, .con-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.pro-box li, .con-box li {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* Code Example */
.code-example {
    background: #1a2e1a;
    color: #e8f0e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.88rem;
    line-height: 1.6;
}

.code-example code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.code-label {
    font-size: 0.8rem;
    color: var(--accent-warm-light);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Source Sans 3', sans-serif;
}

/* Tools List */
.tools-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.tool-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-section);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.tool-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--accent);
}

.tool-item p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--text-soft);
}

/* Navigation between terms */
.term-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.term-nav a {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    background: var(--bg-section);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.2s ease;
    max-width: 45%;
}

.term-nav a:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(26, 60, 52, 0.08);
}

.term-nav .nav-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.term-nav .nav-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 700;
}

.term-nav .term-prev {
    text-align: left;
}

.term-nav .term-next {
    text-align: right;
    margin-left: auto;
}

/* Mobile */
@media (max-width: 768px) {
    .pro-con-grid {
        grid-template-columns: 1fr;
    }

    .tools-list {
        grid-template-columns: 1fr;
    }

    .term-nav {
        flex-direction: column;
    }

    .term-nav a {
        max-width: 100%;
    }

    .key-facts {
        padding: 1.25rem;
    }
}
