/* === Tactics With Tom — guide & article pages === */

.twt-page-hero {
    position: relative;
    padding: 4.5rem 0 3rem;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(10, 25, 41, 0.6) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

/* Subtle tactical grid backdrop */
.twt-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent);
    pointer-events: none;
}

.twt-page-hero .container { position: relative; z-index: 1; }

.twt-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.twt-page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4rem);
    color: var(--text-primary, #fff);
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.twt-page-lead {
    font-size: 1.1rem;
    color: var(--text-secondary, rgba(255,255,255,0.75));
    max-width: 720px;
    line-height: 1.7;
}

/* Category nav pills */
.twt-cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.twt-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary, #f8f9fa);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.twt-cat-pill:hover, .twt-cat-pill.active {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

/* Article cards */
.twt-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 3rem 0 4rem;
}

.twt-article-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg, rgba(15, 34, 52, 0.7));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 1.75rem;
    text-decoration: none;
    color: var(--text-primary, #fff);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.twt-article-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.twt-article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    color: var(--text-primary, #fff);
}

.twt-article-card:hover::after { opacity: 1; }

.twt-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

.twt-card-meta .read-time {
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.twt-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
    line-height: 1.15;
}

.twt-card-summary {
    color: var(--text-secondary, rgba(255,255,255,0.7));
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.twt-card-cta {
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.875rem;
}

/* === Article body === */
.twt-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 0 3rem;
}

.twt-article-body {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-secondary, rgba(255,255,255,0.82));
}

.twt-article-body h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    color: var(--text-primary, #fff);
    margin: 2.25rem 0 0.75rem;
    letter-spacing: 0.02em;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
}

.twt-article-body h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--text-primary, #fff);
    margin: 1.5rem 0 0.5rem;
}

.twt-article-body p { margin-bottom: 1.1rem; }

.twt-article-body strong { color: var(--text-primary, #fff); }

.twt-article-body ul, .twt-article-body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
}

.twt-article-body li { margin-bottom: 0.5rem; }

/* FAQ */
.twt-faq {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.twt-faq h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--text-primary, #fff);
    margin-bottom: 1rem;
}

.twt-faq-item {
    background: var(--card-bg, rgba(15, 34, 52, 0.6));
    border: 1px solid var(--card-border, rgba(255,255,255,0.08));
    border-radius: 12px;
    padding: 1.1rem 1.35rem;
    margin-bottom: 0.75rem;
}

.twt-faq-item h3 {
    font-size: 1.05rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.4rem;
}

.twt-faq-item p {
    margin: 0;
    color: var(--text-secondary, rgba(255,255,255,0.75));
    line-height: 1.65;
}

/* Related guides */
.twt-related {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.twt-related h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--text-primary, #fff);
    margin-bottom: 1rem;
}

/* Article CTA footer */
.twt-article-cta {
    margin-top: 3rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(15, 34, 52, 0.6) 60%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
}

.twt-article-cta p {
    color: var(--text-secondary, rgba(255,255,255,0.8));
    margin-bottom: 1rem;
}

.twt-empty-note {
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    font-style: italic;
    padding: 2rem 0 4rem;
}
