/* RandomChat.io Blog — shared stylesheet
   Loaded by /blog/index.html and /blog/<slug>.html only.
   Visual language matches the existing SEO landing pages (omegle-alternative.html, etc.)
   but is extracted into a single cacheable file to avoid duplicating ~100 lines per article.
   Category color is injected via the --cat-a / --cat-b CSS variables on <body>. */

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

:root {
    --cat-a: #667eea;
    --cat-b: #764ba2;
    --text: #1a1a2e;
    --muted: #555;
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

a { color: var(--cat-a); }

/* ============ NAVBAR (copied from landing pages) ============ */
.navbar { position: sticky; top: 0; z-index: 1000; background: rgba(26, 26, 46, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 0 20px; }
.navbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: white; }
.navbar-brand img { width: 40px; height: 40px; border-radius: 10px; }
.navbar-brand span { font-size: 22px; font-weight: 700; background: linear-gradient(135deg, #a5b4fc, #c4b5fd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.navbar-links { display: flex; align-items: center; gap: 8px; }
.navbar-links a { color: rgba(255, 255, 255, 0.85); text-decoration: none; padding: 8px 16px; border-radius: 8px; font-size: 15px; font-weight: 500; transition: all 0.2s; }
.navbar-links a:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.navbar-cta { background: linear-gradient(135deg, #667eea, #764ba2) !important; color: white !important; padding: 10px 20px !important; border-radius: 25px !important; }
.mobile-menu-btn { display: none; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; font-size: 22px; cursor: pointer; color: white; padding: 8px 12px; }

/* ============ HERO ============ */
.page-hero {
    background: linear-gradient(135deg, var(--cat-a) 0%, var(--cat-b) 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
}
.page-hero .eyebrow { display: inline-block; background: rgba(255,255,255,0.15); color: white; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px; text-decoration: none; }
.page-hero .eyebrow:hover { background: rgba(255,255,255,0.25); }
.page-hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 20px; max-width: 900px; margin-left: auto; margin-right: auto; line-height: 1.2; }
.page-hero p { font-size: 19px; opacity: 0.92; max-width: 760px; margin: 0 auto 24px; }
.page-hero .meta { font-size: 14px; opacity: 0.85; }
.page-hero .meta span + span::before { content: "·"; margin: 0 10px; }

.cta-button { display: inline-block; background: white; color: var(--cat-a); padding: 16px 40px; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: 18px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); transition: transform 0.2s; }
.cta-button:hover { transform: translateY(-3px); }

/* ============ ARTICLE CONTENT ============ */
main { max-width: 900px; margin: -40px auto 60px; padding: 0 20px; position: relative; z-index: 10; }
.content-card { background: var(--card); border-radius: 20px; padding: 50px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); margin-bottom: 30px; }
.content-card h2 { font-size: 28px; color: var(--text); margin-top: 42px; margin-bottom: 18px; line-height: 1.3; }
.content-card h2:first-child, .content-card h2:first-of-type { margin-top: 0; }
.content-card h3 { font-size: 22px; color: var(--text); margin-top: 30px; margin-bottom: 14px; }
.content-card p { margin-bottom: 16px; color: var(--muted); font-size: 17px; }
.content-card ul, .content-card ol { margin-left: 22px; margin-bottom: 20px; }
.content-card li { margin-bottom: 10px; color: var(--muted); font-size: 17px; }
.content-card strong { color: var(--cat-a); }
.content-card blockquote { border-left: 4px solid var(--cat-a); padding: 16px 22px; margin: 22px 0; background: rgba(102,126,234,0.06); border-radius: 8px; color: var(--muted); font-style: italic; }
.content-card table { width: 100%; border-collapse: collapse; margin: 26px 0; border-radius: 12px; overflow: hidden; font-size: 16px; }
.content-card thead th { background: linear-gradient(135deg, var(--cat-a), var(--cat-b)); color: white; padding: 14px 16px; text-align: left; font-weight: 600; }
.content-card tbody td { padding: 12px 16px; border-bottom: 1px solid #eee; }
.content-card tbody tr:nth-child(even) { background: #f8fafc; }
.content-card code { background: #eef2ff; padding: 2px 6px; border-radius: 4px; font-size: 15px; color: #4f46e5; }
.content-card a { color: var(--cat-a); font-weight: 600; text-decoration: none; }
.content-card a:hover { text-decoration: underline; }

/* ============ INLINE CALLOUTS ============ */
.callout { background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08)); border-left: 4px solid var(--cat-a); padding: 20px 24px; margin: 24px 0; border-radius: 12px; }
.callout h4 { color: var(--cat-a); margin-bottom: 8px; }

/* ============ RELATED / INTERNAL LINKING ============ */
.related { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.related h3 { font-size: 20px; margin-bottom: 16px; color: var(--text); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.related-card { display: block; padding: 16px 18px; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); transition: all 0.2s; }
.related-card:hover { transform: translateY(-2px); border-color: var(--cat-a); box-shadow: 0 8px 24px rgba(102,126,234,0.12); }
.related-card .kicker { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--cat-a); margin-bottom: 6px; letter-spacing: 0.3px; }
.related-card .title { font-size: 15px; font-weight: 600; color: var(--text); }

/* ============ BLOG LISTING PAGE ============ */
.blog-hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); padding: 90px 20px 60px; text-align: center; color: white; }
.blog-hero h1 { font-size: 46px; font-weight: 800; margin-bottom: 16px; }
.blog-hero p { font-size: 18px; opacity: 0.85; max-width: 680px; margin: 0 auto; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.article-card { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.06); transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.article-card .banner { height: 140px; background: linear-gradient(135deg, var(--card-a, #667eea), var(--card-b, #764ba2)); display: flex; align-items: center; justify-content: center; font-size: 38px; color: white; text-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.article-card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.article-card .cat-badge { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 20px; background: rgba(102,126,234,0.12); color: var(--cat-a); margin-bottom: 12px; }
.article-card h2 { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.35; }
.article-card p { font-size: 14px; color: var(--muted); flex: 1; margin-bottom: 14px; }
.article-card .meta { font-size: 12px; color: #94a3b8; }

.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 50px; padding-bottom: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 10px 16px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; background: white; border: 1px solid var(--border); transition: all 0.2s; font-size: 14px; }
.pagination a:hover { border-color: var(--cat-a); color: var(--cat-a); }
.pagination .current { background: linear-gradient(135deg, var(--cat-a), var(--cat-b)); color: white; border-color: transparent; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

.blog-main { max-width: 1200px; margin: -30px auto 60px; padding: 0 24px; position: relative; z-index: 10; }

/* ============ FOOTER ============ */
.footer { background: #1a1a2e; color: white; padding: 60px 20px 30px; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3, .footer-section h4 { font-size: 16px; margin-bottom: 20px; color: #fff; }
.footer-section a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; padding: 8px 0; font-size: 14px; transition: color 0.2s; }
.footer-section a:hover { color: white; }
.footer-social { display: flex; gap: 15px; margin-top: 15px; }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; color: rgba(255,255,255,0.5); font-size: 14px; }

/* ============ FLOATING CHAT BUTTON ============ */
.fab-chat { position: fixed; bottom: 24px; right: 24px; z-index: 9000; text-decoration: none; display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 14px 22px; border-radius: 50px; font-size: 15px; font-weight: 700; box-shadow: 0 6px 25px rgba(102,126,234,0.45); transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.fab-chat:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 35px rgba(102,126,234,0.55); }
.fab-chat-icon { font-size: 20px; line-height: 1; }
.fab-chat-label { display: inline; }
.fab-chat-ring { position: absolute; inset: -4px; border-radius: 50px; border: 2px solid rgba(102,126,234,0.5); animation: fab-pulse 2.5s ease-in-out infinite; pointer-events: none; }
@keyframes fab-pulse { 0%, 100% { opacity: 0; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .navbar-links { display: none; }
    .mobile-menu-btn { display: block; }
    .page-hero { padding: 60px 20px 70px; }
    .page-hero h1 { font-size: 30px; }
    .page-hero p { font-size: 16px; }
    .blog-hero h1 { font-size: 32px; }
    .content-card { padding: 28px; }
    .content-card h2 { font-size: 24px; }
    .content-card p, .content-card li { font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .fab-chat { bottom: 18px; right: 16px; padding: 12px 18px; font-size: 14px; border-radius: 50%; padding: 16px; }
    .fab-chat-label { display: none; }
    .fab-chat-icon { font-size: 24px; }
}
