/* ============================================
   GameFinder CMS - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --primary: #00d4aa;
  --primary-dark: #00b894;
  --primary-glow: #00d4aa33;
  --accent: #a855f7;
  --accent-glow: #a855f722;
  --bg: #080812;
  --bg2: #0e0e1a;
  --bg3: #141420;
  --bg4: #1a1a2e;
  --border: #1e1e35;
  --border2: #2a2a45;
  --text: #e8e8f5;
  --text2: #a0a0c0;
  --text3: #6e6e9a;
  --text4: #4a4a7a;
  --danger: #e74c3c;
  --warning: #f39c12;
  --success: #27ae60;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 30px rgba(0,0,0,0.5);
}

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

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

html { scroll-behavior: smooth; height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Push footer to bottom */
.site-footer { margin-top: auto; }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #0a0a14; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a55; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5 { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--text); line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
a { color: var(--primary); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
p { color: var(--text2); line-height: 1.7; }

/* ---- LAYOUT ---- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.page-wrap { padding: 48px 0 80px; }

/* ---- HEADER ---- */
.site-header {
  background: rgba(8,8,18,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 40px rgba(0,212,170,.06); }
.header-inner { height: 64px; display: flex; align-items: center; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 0 20px var(--primary-glow);
  flex-shrink: 0;
}
.logo-text { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 22px; color: var(--text); }
.logo-text span { color: var(--primary); }

.main-nav { display: flex; gap: 2px; flex: 1; }
.nav-link {
  padding: 8px 14px; border-radius: 8px; color: var(--text3);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: color .2s, background .2s; white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-glow); opacity: 1; }
.nav-link .badge-new { background: var(--danger); color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 10px; font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 100px;
  cursor: pointer; text-decoration: none; color: var(--text); font-size: 14px;
  transition: border-color .2s;
}
.user-chip:hover { border-color: var(--primary); opacity: 1; }
.user-chip .av { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 13px; }

.hamburger { display: none; background: none; border: none; color: var(--text3); cursor: pointer; padding: 6px; font-size: 22px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 9px; border: none;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all .2s; text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); opacity: .9; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 4px 20px var(--primary-glow); }
.btn-secondary { background: var(--bg3); border: 1px solid var(--border2); color: var(--text2); }
.btn-secondary:hover { border-color: var(--border2); color: var(--text); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }

/* ---- CARDS ---- */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--border2); }

/* ---- FORMS ---- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; color: var(--text3); font-weight: 600; margin-bottom: 6px; letter-spacing: .5px; text-transform: uppercase; }
.form-label span.req { color: var(--danger); }
.form-control {
  width: 100%; padding: 11px 14px; background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 9px; color: var(--text); font-size: 14px; outline: none;
  font-family: 'IBM Plex Sans', sans-serif; transition: .2s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control::placeholder { color: var(--text4); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text4); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ---- ALERT ---- */
.alert { padding: 12px 16px; border-radius: 9px; font-size: 14px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert-danger { background: #e74c3c15; border: 1px solid #e74c3c44; color: var(--danger); }
.alert-success { background: #27ae6015; border: 1px solid #27ae6044; color: #27ae60; }
.alert-info { background: var(--primary-glow); border: 1px solid #00d4aa44; color: var(--primary); }
.alert-warning { background: #f39c1215; border: 1px solid #f39c1244; color: var(--warning); }

/* ---- BADGES ---- */
.badge-type { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-lfp { background: #00d4aa18; color: var(--primary); border: 1px solid #00d4aa33; }
.badge-lft { background: var(--accent-glow); color: var(--accent); border: 1px solid #a855f733; }
.badge-tag { background: var(--bg3); border: 1px solid var(--border2); color: var(--text3); font-size: 12px; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.badge-premium { background: linear-gradient(135deg,#f39c12,#e67e22); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 700; }
.badge-online { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); display: inline-block; box-shadow: 0 0 6px var(--primary); }
.badge-offline { width: 9px; height: 9px; border-radius: 50%; background: var(--text4); display: inline-block; }

/* ---- AVATAR ---- */
.avatar {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; flex-shrink: 0;
  text-transform: uppercase; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.av-sm { width: 36px; height: 36px; font-size: 14px; }
.av-md { width: 48px; height: 48px; font-size: 18px; }
.av-lg { width: 72px; height: 72px; font-size: 26px; }
.av-xl { width: 96px; height: 96px; font-size: 36px; }

/* ---- POST CARD ---- */
.post-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  border-left: 3px solid var(--primary);
  transition: border-color .2s, transform .2s;
  position: relative; overflow: hidden;
}
.post-card.lft { border-left-color: var(--accent); }
.post-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.post-card-premium::after { content: '⭐ PREMIUM'; position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg,#f39c12,#e67e22); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; font-family: 'Rajdhani', sans-serif; }
.post-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.post-author { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 16px; color: var(--text); }
.post-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text3); margin-top: 3px; }
.post-meta span { display: flex; align-items: center; gap: 4px; }
.post-desc { color: var(--text2); font-size: 14px; line-height: 1.6; margin: 10px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.post-actions { display: flex; gap: 8px; margin-top: 14px; }

/* ---- GAME CARD ---- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.game-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 12px; cursor: pointer;
  text-align: center; transition: all .2s; text-decoration: none;
  display: block;
}
.game-card:hover { background: var(--bg4); transform: translateY(-3px); border-color: var(--border2); box-shadow: 0 8px 25px rgba(0,0,0,.4); opacity: 1; }
.game-emoji { font-size: 30px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; }
.game-emoji img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.game-name { font-size: 12px; color: var(--text2); font-weight: 600; line-height: 1.3; }
.game-genre { font-size: 11px; color: var(--text4); margin-top: 4px; }

/* ---- HERO ---- */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(ellipse at 50% -20%, #00d4aa0e 0%, transparent 65%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .025;
  background-image: repeating-linear-gradient(0deg,var(--primary) 0,var(--primary) 1px,transparent 0,transparent 40px),repeating-linear-gradient(90deg,var(--primary) 0,var(--primary) 1px,transparent 0,transparent 40px);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: #00d4aa12; border: 1px solid #00d4aa2a;
  font-size: 13px; color: var(--primary); margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 18px; color: var(--text3); max-width: 560px; margin: 0 auto 40px; }
.hero-center { text-align: center; position: relative; }

/* ---- SEARCH BOX ---- */
.search-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; padding: 24px; max-width: 500px; margin: 0 auto; }
.type-toggle { display: flex; background: var(--bg3); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.type-btn { flex: 1; padding: 10px 14px; border-radius: 7px; border: none; cursor: pointer; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 15px; color: var(--text3); background: transparent; transition: .2s; }
.type-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 2px 12px var(--primary-glow); }
.search-input-wrap { position: relative; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; pointer-events: none; }
.search-input { width: 100%; padding: 12px 14px 12px 44px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--border2); color: var(--text); font-size: 15px; outline: none; font-family: 'IBM Plex Sans', sans-serif; transition: .2s; }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.search-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px; max-height: 220px; overflow-y: auto; z-index: 100; }
.search-item { padding: 10px 16px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 14px; transition: background .15s; border-bottom: 1px solid var(--border); }
.search-item:last-child { border: 0; }
.search-item:hover { background: var(--bg4); }
.search-item-genre { margin-left: auto; font-size: 12px; color: var(--text4); }

/* ---- STATS BAR ---- */
.stats-bar { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; padding: 32px 0 48px; }
.stat-item { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 20px 28px; text-align: center; }
.stat-num { font-family: 'Rajdhani', sans-serif; font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text3); margin-top: 2px; }

/* ---- NEWS CARD ---- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.news-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .2s; text-decoration: none; display: block; }
.news-card:hover { transform: translateY(-3px); border-color: var(--border2); box-shadow: var(--shadow); opacity: 1; }
.news-card-img { width: 100%; height: 200px; background: linear-gradient(135deg, var(--bg4), var(--bg3)); display: flex; align-items: center; justify-content: center; font-size: 48px; overflow: hidden; flex-shrink: 0; position: relative; }
.news-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-body { padding: 18px 20px; }
.news-cat { font-size: 11px; color: var(--primary); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.news-title { font-family: 'Rajdhani', sans-serif; font-size: 18px; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.news-excerpt { font-size: 13px; color: var(--text3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--text4); }
.news-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text4); }

/* ---- FORUM ---- */
.forum-topic { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all .2s; text-decoration: none; }
.forum-topic:hover { border-color: var(--border2); background: var(--bg3); }
.forum-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.forum-title { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 3px; }
.forum-sub { font-size: 12px; color: var(--text3); }
.forum-stats { text-align: right; flex-shrink: 0; font-size: 13px; color: var(--text3); }
.forum-pinned { border-left: 3px solid var(--warning); }

/* ---- FILTERS ---- */
.filters-bar { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-label { font-size: 12px; color: var(--text3); font-weight: 600; white-space: nowrap; }
.filter-select { padding: 7px 12px; border-radius: 7px; background: var(--bg3); border: 1px solid var(--border2); color: var(--text); font-size: 13px; cursor: pointer; outline: none; }
.filter-select:focus { border-color: var(--primary); }
.filter-count { margin-left: auto; font-size: 13px; color: var(--text3); white-space: nowrap; }

/* ---- PAGINATION ---- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--border2); color: var(--text3); font-size: 14px; cursor: pointer; text-decoration: none; transition: all .2s; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }
.page-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: transparent; color: #fff; }

/* ---- MODAL ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .15s; }
.modal { background: var(--bg2); border: 1px solid var(--border2); border-radius: 18px; padding: 32px; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; animation: slideUp .2s; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-family: 'Rajdhani', sans-serif; font-size: 22px; }
.modal-close { background: none; border: none; color: var(--text3); font-size: 22px; cursor: pointer; line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--text); }

/* ---- TABS ---- */
.tabs { display: flex; gap: 0; background: var(--bg3); border-radius: 10px; padding: 4px; }
.tab-btn { flex: 1; padding: 9px 12px; border-radius: 7px; border: none; background: transparent; color: var(--text3); font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer; transition: .2s; }
.tab-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }

/* ---- PREMIUM CARD ---- */
.premium-card { background: var(--bg2); border: 2px solid var(--border); border-radius: 20px; padding: 36px; text-align: center; position: relative; transition: all .3s; }
.premium-card.popular { border-color: var(--primary); box-shadow: 0 0 40px var(--primary-glow); }
.premium-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 4px 18px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.premium-price { font-family: 'Rajdhani', sans-serif; font-size: 3rem; font-weight: 700; }
.premium-feature { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text2); }
.premium-feature:last-of-type { border: 0; }
.premium-feature .chk { color: var(--primary); font-size: 16px; }

/* ---- CONTENT ARTICLE ---- */
.article-content { color: var(--text2); line-height: 1.8; }
.article-content h2,h3,h4 { color: var(--text); margin: 24px 0 12px; }
.article-content p { margin-bottom: 14px; }
.article-content ul,ol { margin: 14px 0 14px 24px; }
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--primary); }
.article-content code { background: var(--bg3); padding: 2px 7px; border-radius: 5px; font-family: 'Space Mono', monospace; font-size: .9em; }
.article-content pre { background: var(--bg3); border: 1px solid var(--border2); border-radius: 9px; padding: 16px; overflow-x: auto; margin: 16px 0; }
.article-content blockquote { border-left: 3px solid var(--primary); margin: 16px 0; padding: 12px 20px; background: var(--bg3); border-radius: 0 9px 9px 0; font-style: italic; color: var(--text3); }

/* ---- SECTION HEADER ---- */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-family: 'Rajdhani', sans-serif; font-size: 1.8rem; }
.section-title span { color: var(--primary); }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text3); }
.empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 320px; margin: 0 auto 20px; }

/* ---- FOOTER ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg2); padding: 40px 0 24px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col h4 { font-family: 'Rajdhani', sans-serif; font-size: 16px; margin-bottom: 14px; color: var(--text); }
.footer-col a { display: block; color: var(--text3); font-size: 14px; margin-bottom: 8px; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-desc { color: var(--text3); font-size: 14px; line-height: 1.6; margin-top: 8px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text4); flex-wrap: wrap; gap: 10px; }
.social-links { display: flex; gap: 8px; }
.social-link { width: 34px; height: 34px; border-radius: 8px; background: var(--bg3); border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 16px; text-decoration: none; transition: .2s; }
.social-link:hover { border-color: var(--primary); opacity: 1; }

/* ---- NOTIFICATION TOAST ---- */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: all; padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 500; animation: slideInRight .3s; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast-info { background: var(--bg3); border: 1px solid var(--border2); color: var(--text); }

/* ---- UTILITY ---- */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text3) !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex-1 { flex: 1; }
.fw-bold { font-weight: 600; }
.w-100 { width: 100%; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }

/* ---- ANIMATIONS ---- */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
@keyframes slideInRight { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:none} }
@keyframes glow { 0%,100%{box-shadow:0 0 20px var(--primary-glow)} 50%{box-shadow:0 0 40px #00d4aa55} }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
.animate-fade-up { animation: fadeUp .6s ease forwards; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
  .header-inner { gap: 10px; }
  .stats-bar { flex-direction: column; align-items: center; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .modal { padding: 22px; }
}

/* Mobile menu */
.mobile-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); z-index: 199; padding: 12px 0; }
.mobile-nav.open { display: block; }
.mobile-nav .nav-link { display: block; padding: 12px 24px; border-radius: 0; }
