/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Source Sans 3', sans-serif; color: #e0e0e0; background: #0a0a0a; line-height: 1.75; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --neon: #39ff14;
  --neon-dim: rgba(57,255,20,0.15);
  --neon-glow: 0 0 12px rgba(57,255,20,0.4), 0 0 40px rgba(57,255,20,0.1);
  --bg: #0a0a0a;
  --bg2: #111;
  --bg3: #181818;
  --white: #fff;
  --gray: #888;
  --gray-light: #bbb;
  --border: rgba(57,255,20,0.12);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 6px;
  --max-w: 1240px;
}

/* READING PROGRESS */
.tr-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: var(--neon); box-shadow: var(--neon-glow); z-index: 999; transition: width 0.15s; }

/* HEADER */
.tr-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.tr-header-inner { max-width: var(--max-w); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.tr-logo { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--white); letter-spacing: -0.03em; }
.tr-logo span { color: var(--neon); text-shadow: var(--neon-glow); }
.tr-nav { display: flex; gap: 28px; align-items: center; }
.tr-nav a { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); transition: color 0.3s, text-shadow 0.3s; }
.tr-nav a:hover, .tr-nav a.active { color: var(--neon); text-shadow: 0 0 8px rgba(57,255,20,0.5); }
.tr-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.tr-burger span { width: 24px; height: 2px; background: var(--neon); transition: all 0.3s; }

/* LAYOUT */
.tr-layout { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 60px; display: grid; grid-template-columns: 280px 1fr; gap: 0; min-height: 80vh; }

/* LEFT SIDEBAR — LIGHT PANEL */
.tr-sidebar-left { background: linear-gradient(180deg, rgba(57,255,20,0.06) 0%, rgba(57,255,20,0.02) 60%, transparent 100%); border-right: 1px solid var(--border); padding: 40px 24px 40px 0; position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; display: flex; flex-direction: column; gap: 32px; }
.tr-sidebar-left::-webkit-scrollbar { width: 2px; }
.tr-sidebar-left::-webkit-scrollbar-thumb { background: var(--neon); border-radius: 2px; }

.tr-sb-section h4 { font-family: var(--font-head); font-size: 0.9rem; color: var(--neon); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); letter-spacing: 0.04em; }
.tr-sb-link { display: block; font-size: 0.84rem; color: var(--gray-light); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); transition: color 0.2s, padding-left 0.2s; }
.tr-sb-link:hover { color: var(--neon); padding-left: 6px; }
.tr-sb-tag { display: inline-block; font-size: 0.72rem; background: var(--neon-dim); color: var(--neon); padding: 3px 10px; border-radius: 20px; margin: 3px 4px 3px 0; transition: background 0.2s, box-shadow 0.2s; }
.tr-sb-tag:hover { background: rgba(57,255,20,0.25); box-shadow: 0 0 8px rgba(57,255,20,0.3); }
.tr-sb-quote { font-family: var(--font-head); font-style: italic; font-size: 0.92rem; color: var(--gray-light); line-height: 1.6; padding: 16px; background: var(--bg2); border-left: 2px solid var(--neon); border-radius: var(--radius); }
.tr-sb-quote footer { font-size: 0.72rem; color: var(--gray); margin-top: 8px; font-style: normal; }

/* MAIN CONTENT */
.tr-main { padding: 40px 0 0 40px; }

/* HERO */
.tr-hero { margin-bottom: 48px; }
.tr-hero-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--neon); border: 1px solid var(--neon); padding: 4px 14px; margin-bottom: 18px; text-shadow: 0 0 6px rgba(57,255,20,0.4); }
.tr-hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); color: var(--white); line-height: 1.18; margin-bottom: 20px; }
.tr-hero-lead { font-size: 1.08rem; color: var(--gray-light); max-width: 680px; line-height: 1.8; margin-bottom: 22px; }
.tr-hero-meta { font-size: 0.78rem; color: var(--gray); display: flex; gap: 18px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.tr-hero-meta strong { color: var(--gray-light); }
.tr-hero-img { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); position: relative; }
.tr-hero-img img { width: 100%; height: 380px; object-fit: cover; }
.tr-hero-img::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, var(--bg)); }
.tr-hero-img figcaption { position: absolute; bottom: 8px; right: 14px; font-size: 0.7rem; color: var(--gray); z-index: 2; }

/* ARTICLE BODY */
.tr-body h2 { font-family: var(--font-head); font-size: 1.55rem; color: var(--white); margin: 40px 0 16px; padding-left: 16px; border-left: 3px solid var(--neon); box-shadow: -6px 0 16px rgba(57,255,20,0.08); }
.tr-body h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--neon); margin: 28px 0 12px; }
.tr-body p { margin-bottom: 16px; color: #ccc; font-size: 1rem; }
.tr-body blockquote { margin: 28px 0; padding: 22px 26px; background: var(--bg2); border-left: 3px solid var(--neon); color: var(--gray-light); font-style: italic; font-size: 1.02rem; line-height: 1.65; border-radius: var(--radius); box-shadow: inset 0 0 20px rgba(57,255,20,0.03); }
.tr-body blockquote footer { font-size: 0.75rem; color: var(--gray); margin-top: 8px; font-style: normal; }

/* CARDS */
.tr-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.tr-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.tr-card:hover { border-color: rgba(57,255,20,0.4); box-shadow: 0 0 20px rgba(57,255,20,0.08); transform: translateY(-3px); }
.tr-card-num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: rgba(57,255,20,0.15); line-height: 1; margin-bottom: 6px; }
.tr-card h3 { font-family: var(--font-head); font-size: 1.05rem; color: var(--white); margin-bottom: 10px; }
.tr-card p { font-size: 0.88rem; color: var(--gray-light); line-height: 1.6; }
.tr-card-tag { display: inline-block; font-size: 0.68rem; background: var(--neon-dim); color: var(--neon); padding: 3px 10px; border-radius: 20px; margin-top: 12px; }

/* HIGHLIGHT BOX */
.tr-highlight { background: linear-gradient(135deg, rgba(57,255,20,0.08), rgba(57,255,20,0.03)); border: 1px solid rgba(57,255,20,0.2); border-radius: var(--radius); padding: 28px 30px; margin: 32px 0; position: relative; overflow: hidden; }
.tr-highlight::before { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--neon), transparent); }
.tr-highlight h3 { font-family: var(--font-head); font-size: 1.15rem; color: var(--neon); margin-bottom: 12px; }
.tr-highlight p { color: var(--gray-light); font-size: 0.94rem; }
.tr-highlight ul { margin: 12px 0 0 18px; }
.tr-highlight li { color: var(--gray-light); font-size: 0.9rem; margin-bottom: 6px; }
.tr-highlight li::marker { color: var(--neon); }

/* IMAGE BLOCKS */
.tr-img-block { margin: 32px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); position: relative; }
.tr-img-block img { width: 100%; height: 320px; object-fit: cover; }
.tr-img-block figcaption { font-size: 0.72rem; color: var(--gray); padding: 10px 16px; background: var(--bg2); }

/* RECOMMENDATION CARDS */
.tr-rec-list { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.tr-rec { display: flex; gap: 18px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; align-items: flex-start; transition: border-color 0.3s, transform 0.2s; }
.tr-rec:hover { border-color: rgba(57,255,20,0.3); transform: translateX(4px); }
.tr-rec-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--neon-dim); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; border: 1px solid var(--border); }
.tr-rec h4 { font-family: var(--font-head); font-size: 1rem; color: var(--white); margin-bottom: 6px; }
.tr-rec p { font-size: 0.85rem; color: var(--gray-light); line-height: 1.55; }

/* CONCLUSION */
.tr-conclusion { background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--neon); border-radius: var(--radius); padding: 30px; margin: 36px 0 20px; }
.tr-conclusion h3 { font-family: var(--font-head); font-size: 1.35rem; color: var(--white); margin-bottom: 14px; }
.tr-conclusion p { color: var(--gray-light); font-size: 0.95rem; margin-bottom: 10px; }

/* TAGS ROW */
.tr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; padding-top: 18px; border-top: 1px solid var(--border); }

/* NEWSLETTER */
.tr-newsletter { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin: 36px 0; text-align: center; }
.tr-newsletter h4 { font-family: var(--font-head); font-size: 1.15rem; color: var(--white); margin-bottom: 8px; }
.tr-newsletter p { font-size: 0.85rem; color: var(--gray); margin-bottom: 16px; }
.tr-nl-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.tr-nl-input { flex: 1; padding: 10px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--white); font-family: var(--font-body); font-size: 0.88rem; outline: none; transition: border-color 0.3s; }
.tr-nl-input:focus { border-color: var(--neon); box-shadow: 0 0 8px rgba(57,255,20,0.15); }
.tr-nl-btn { padding: 10px 22px; background: var(--neon); color: var(--bg); font-weight: 700; font-size: 0.85rem; border: none; border-radius: var(--radius); cursor: pointer; transition: box-shadow 0.3s, transform 0.2s; font-family: var(--font-body); }
.tr-nl-btn:hover { box-shadow: 0 0 16px rgba(57,255,20,0.4); transform: scale(1.03); }

/* RELATED ARTICLES */
.tr-related { margin: 40px 0; }
.tr-related h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.tr-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tr-related-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color 0.3s, transform 0.2s; }
.tr-related-card:hover { border-color: rgba(57,255,20,0.3); transform: translateY(-3px); }
.tr-related-card span { font-size: 0.68rem; color: var(--neon); text-transform: uppercase; letter-spacing: 0.08em; }
.tr-related-card h4 { font-family: var(--font-head); font-size: 0.95rem; color: var(--white); margin: 8px 0; line-height: 1.35; }
.tr-related-card p { font-size: 0.8rem; color: var(--gray); }

/* FOOTER */
.tr-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.tr-footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.tr-footer h4 { font-family: var(--font-head); color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.tr-footer p { font-size: 0.84rem; color: var(--gray); line-height: 1.7; }
.tr-footer ul { list-style: none; }
.tr-footer li { margin-bottom: 8px; }
.tr-footer a { font-size: 0.84rem; color: var(--gray); transition: color 0.2s; }
.tr-footer a:hover { color: var(--neon); }
.tr-footer-bottom { max-width: var(--max-w); margin: 30px auto 0; padding: 18px 24px 0; border-top: 1px solid var(--border); text-align: center; font-size: 0.75rem; color: #555; }
.tr-footer-disclaimer { max-width: var(--max-w); margin: 12px auto 0; padding: 0 24px; text-align: center; font-size: 0.7rem; color: #444; line-height: 1.6; }

/* COOKIES BANNER */
.tr-cookie-toggle { display: none; }
.tr-cookie-banner { position: fixed; bottom: 20px; right: 20px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; max-width: 360px; z-index: 200; box-shadow: 0 4px 30px rgba(0,0,0,0.5); display: block; }
.tr-cookie-toggle:checked ~ .tr-cookie-banner { display: none; }
.tr-cookie-banner p { font-size: 0.82rem; color: var(--gray-light); margin-bottom: 14px; line-height: 1.5; }
.tr-cookie-banner a { color: var(--neon); text-decoration: underline; }
.tr-cookie-btns { display: flex; gap: 8px; }
.tr-cookie-accept { padding: 8px 18px; background: var(--neon); color: var(--bg); font-weight: 700; font-size: 0.8rem; border: none; border-radius: var(--radius); cursor: pointer; font-family: var(--font-body); }
.tr-cookie-decline { padding: 8px 18px; background: transparent; color: var(--gray); font-size: 0.8rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-family: var(--font-body); }

/* LEGAL PAGES */
.tr-legal { max-width: 800px; margin: 0 auto; padding: 48px 24px 60px; }
.tr-legal h1 { font-family: var(--font-head); font-size: 2rem; color: var(--white); margin-bottom: 24px; }
.tr-legal h2 { font-family: var(--font-head); font-size: 1.3rem; color: var(--neon); margin: 28px 0 12px; }
.tr-legal p { font-size: 0.94rem; color: var(--gray-light); margin-bottom: 14px; }

/* SUCCESS PAGE */
.tr-success { max-width: 600px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.tr-success h1 { font-family: var(--font-head); font-size: 2.4rem; color: var(--neon); margin-bottom: 16px; text-shadow: var(--neon-glow); }
.tr-success p { color: var(--gray-light); font-size: 1.05rem; margin-bottom: 28px; }
.tr-success a { display: inline-block; padding: 12px 30px; background: var(--neon); color: var(--bg); font-weight: 700; border-radius: var(--radius); transition: box-shadow 0.3s; }
.tr-success a:hover { box-shadow: var(--neon-glow); }

/* 404 PAGE */
.tr-404 { max-width: 600px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.tr-404 h1 { font-family: var(--font-head); font-size: 6rem; color: var(--neon); text-shadow: var(--neon-glow); margin-bottom: 12px; }
.tr-404 p { color: var(--gray-light); font-size: 1.05rem; margin-bottom: 28px; }
.tr-404-links { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.tr-404-links a { color: var(--neon); font-size: 0.9rem; transition: text-shadow 0.2s; }
.tr-404-links a:hover { text-shadow: 0 0 8px rgba(57,255,20,0.4); }

/* ARTICLE PAGE LAYOUT (no sidebar) */
.tr-article-page { max-width: 800px; margin: 0 auto; padding: 40px 24px 60px; }
.tr-article-page .tr-hero { margin-bottom: 36px; }

/* ANIMATIONS */
@keyframes tr-fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.tr-anim { animation: tr-fade-up 0.6s ease forwards; }
.tr-anim-d1 { animation: tr-fade-up 0.6s 0.1s ease both; }
.tr-anim-d2 { animation: tr-fade-up 0.6s 0.2s ease both; }
.tr-anim-d3 { animation: tr-fade-up 0.6s 0.3s ease both; }

/* GLOW TEXT ON HOVER */
.tr-glow-hover:hover { color: var(--neon); text-shadow: 0 0 10px rgba(57,255,20,0.4); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .tr-layout { grid-template-columns: 1fr; }
  .tr-sidebar-left { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 24px 0; flex-direction: row; flex-wrap: wrap; gap: 20px; overflow: visible; }
  .tr-sb-section { min-width: 200px; flex: 1; }
  .tr-main { padding: 28px 0 0; }
  .tr-nav { display: none; }
  .tr-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 20px 24px; border-bottom: 1px solid var(--border); z-index: 99; }
  .tr-burger { display: flex; }
  .tr-card-grid { grid-template-columns: 1fr; }
  .tr-related-grid { grid-template-columns: 1fr; }
  .tr-footer-inner { grid-template-columns: 1fr; }
  .tr-nl-form { flex-direction: column; }
  .tr-hero h1 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .tr-hero h1 { font-size: 1.5rem; }
  .tr-body h2 { font-size: 1.3rem; }
  .tr-cookie-banner { left: 12px; right: 12px; max-width: none; }
}