/* ============================================================
   common.css — Shared styles for all TokCalc pages
   ============================================================ */

/* --- DARK MODE VARIABLES --- */
:root {
    --primary: #3a86ff;
    --primary-hover: #2667cc;
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-input: #2d2d2d;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #333333;
    --youtube-red: #ff0000;
    --bmc-yellow: #FFDD00;
    --nav-height: 80px;
}

/* --- RESET / BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* --- NAVIGATION --- */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    height: var(--nav-height);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.domain-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    display: block;
}
.logo span { color: var(--youtube-red); }

.nav-tabs {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 0;
    position: relative;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text-main); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* --- LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: calc(100vh - var(--nav-height) - 100px);
}

/* --- COMPONENTS --- */
.article-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    line-height: 1.8;
    color: var(--text-muted);
}
.article-card h2 { color: #fff; margin-top: 10px; font-size: 2em; }

.article-tag {
    background: rgba(58, 134, 255, 0.2);
    color: #6faaff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.bmc-button {
    background-color: var(--bmc-yellow);
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.2s;
}
.read-more:hover {
    color: var(--primary-hover);
}

/* --- FOOTER --- */
footer {
    background: #000;
    border-top: 1px solid var(--border-color);
    color: #666;
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
}
footer a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}
footer a:hover {
    color: var(--primary);
}

/* --- STATS WIDGET PULSE --- */
.pulse-ring {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(3); opacity: 0; }
    100% { transform: scale(3); opacity: 0; }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .nav-tabs { gap: 15px; }
    .nav-link { font-size: 14px; }
}

@media (max-width: 600px) {
    .header-inner { flex-direction: column; height: auto; padding: 10px 15px; gap: 8px; }
    .nav-tabs { gap: 20px; }
    :root { --nav-height: auto; }
}

/* --- BLOG ARTICLE STYLES --- */
.breadcrumb {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb span {
    margin: 0 8px;
    color: #555;
}

.page-header {
    margin-bottom: 30px;
}
.page-header h1 {
    font-size: 2em;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.2;
}
.page-header p {
    color: var(--text-muted);
    font-size: 1.1em;
    margin: 0;
}

.page-content {
    max-width: 820px;
}

.content-section {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    line-height: 1.8;
    color: var(--text-muted);
}
.content-section h2 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.5em;
}
.content-section h3 {
    color: #ddd;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}
.content-section p {
    margin-bottom: 14px;
}
.content-section ul, .content-section ol {
    padding-left: 24px;
    margin-bottom: 14px;
}
.content-section li {
    margin-bottom: 8px;
}
.content-section strong {
    color: #fff;
}

.section-blue { border-left: 4px solid var(--primary); }
.section-green { border-left: 4px solid #4caf50; }
.section-yellow { border-left: 4px solid var(--bmc-yellow); }
.section-red { border-left: 4px solid var(--youtube-red); }

.cta-box {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.15), rgba(255, 0, 0, 0.1));
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}
.cta-box p {
    color: var(--text-main);
    font-size: 1.1em;
    margin: 0 0 16px 0;
}
.cta-btn {
    display: inline-block;
    background: var(--youtube-red);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: background 0.2s, transform 0.1s;
}
.cta-btn:hover {
    background: #cc0000;
    color: #fff;
    transform: translateY(-1px);
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.related-articles {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}
.related-articles h2 {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 16px;
}
.related-list {
    list-style: none;
    padding: 0;
}
.related-list li {
    margin-bottom: 12px;
}
.related-list a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.related-list a:hover {
    color: var(--primary-hover);
}
.related-list .related-tag {
    display: inline-block;
    background: rgba(58, 134, 255, 0.2);
    color: #6faaff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 8px;
}

/* --- KEY TAKEAWAYS BOX --- */
.takeaways {
    background: rgba(58, 134, 255, 0.08);
    border: 1px solid rgba(58, 134, 255, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}
.takeaways h2 {
    color: var(--primary);
    margin: 0 0 14px 0;
    font-size: 1.3em;
}
.takeaways ul {
    padding-left: 20px;
    margin: 0;
}
.takeaways li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-muted);
}
.takeaways strong {
    color: #fff;
}