/* ===== FRAGNOVA.INFO - Main Stylesheet ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #7c3aed;
  --primary-light: #a855f7;
  --accent: #06b6d4;
  --dark: #0d0d1a;
  --dark2: #13131f;
  --dark3: #1a1a2e;
  --card-bg: #16162a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #2d2d4e;
  --success: #10b981;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(124,58,237,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER / NAV ===== */
header {
  background: rgba(13,13,26,0.97);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1200px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary-light); }
.logo img { width: 36px; height: 36px; border-radius: 6px; }

nav { display: flex; align-items: center; gap: 6px; }
nav a {
  color: var(--text-muted); font-size: .92rem; font-weight: 500;
  padding: 7px 14px; border-radius: 7px; transition: all .2s;
}
nav a:hover, nav a.active {
  color: var(--text); background: var(--dark3);
}
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  padding: 8px 18px !important; border-radius: 8px !important;
}
.nav-cta:hover { background: var(--primary-light) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .3s;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 20px 16px; border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-muted); padding: 9px 12px; border-radius: 7px;
  font-size: .95rem; font-weight: 500;
}
.mobile-menu a:hover { background: var(--dark3); color: var(--text); }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 560px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover; background-position: center;
  filter: brightness(0.35);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.4) 0%, rgba(6,182,212,0.1) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px; padding: 80px 20px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block; background: rgba(124,58,237,0.3);
  border: 1px solid var(--primary-light); color: var(--primary-light);
  font-size: .78rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero h1 em { color: var(--primary-light); font-style: normal; }
.hero p {
  font-size: 1.1rem; color: #cbd5e1; max-width: 560px;
  margin-bottom: 32px;
}
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 9px; font-size: .95rem;
  font-weight: 700; cursor: pointer; border: none; transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); transform: translateY(-2px); }

/* ===== SECTION TITLES ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--dark2); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  margin-bottom: 12px;
}
.section-header h2 span { color: var(--primary-light); }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.divider {
  width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px; margin: 14px auto 0;
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
}
.tag-fps { background: rgba(239,68,68,0.15); color: #f87171; }
.tag-rpg { background: rgba(16,185,129,0.15); color: #34d399; }
.tag-racing { background: rgba(245,158,11,0.15); color: #fbbf24; }
.tag-strategy { background: rgba(6,182,212,0.15); color: #22d3ee; }
.tag-esports { background: rgba(124,58,237,0.15); color: #a78bfa; }

.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 14px; }
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--text-muted);
}
.rating {
  display: flex; align-items: center; gap: 5px;
  font-weight: 700; color: #fbbf24;
}
.rating svg { width: 14px; height: 14px; fill: #fbbf24; }

.read-more {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--primary-light); font-size: .88rem; font-weight: 600;
  margin-top: 10px; transition: gap .2s;
}
.read-more:hover { gap: 9px; color: var(--accent); }

/* ===== TOURNAMENTS ===== */
.tournament-hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 380px; display: flex; align-items: flex-end;
  margin-bottom: 40px;
}
.tournament-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.4);
}
.tournament-hero-content {
  position: relative; z-index: 2; padding: 32px;
  background: linear-gradient(0deg, rgba(13,13,26,0.9) 0%, transparent 100%);
  width: 100%;
}
.tournament-hero-content h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.tournament-hero-content p { color: #94a3b8; margin-bottom: 16px; }

.tournaments-list { display: flex; flex-direction: column; gap: 16px; }
.tournament-item {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  transition: border-color .2s;
}
.tournament-item:hover { border-color: var(--primary); }
.t-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.t-info { flex: 1; }
.t-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.t-info p { font-size: .85rem; color: var(--text-muted); }
.t-meta { text-align: right; flex-shrink: 0; }
.t-date { font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; }
.t-status {
  display: inline-block; font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.status-live { background: rgba(239,68,68,0.15); color: #f87171; }
.status-upcoming { background: rgba(16,185,129,0.15); color: #34d399; }
.status-ended { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--dark3); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 32px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; text-align: center;
}
.stat-num {
  font-size: 2rem; font-weight: 900; color: var(--primary-light);
  line-height: 1;
}
.stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* ===== NEWSLETTER ===== */
.newsletter-box {
  background: linear-gradient(135deg, var(--dark3) 0%, rgba(124,58,237,0.15) 100%);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 48px; text-align: center;
}
.newsletter-box h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.newsletter-box p { color: var(--text-muted); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 12px 18px; border-radius: 8px;
  background: var(--dark); border: 1px solid var(--border);
  color: var(--text); font-size: .95rem; outline: none;
  transition: border-color .2s;
}
.newsletter-form input:focus { border-color: var(--primary-light); }
.newsletter-form input::placeholder { color: var(--text-muted); }
.form-success {
  display: none; color: var(--success); font-weight: 600;
  margin-top: 14px; font-size: .95rem;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  position: relative; overflow: hidden;
  min-height: 320px; display: flex; align-items: center;
}
.about-hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/about.jpg');
  background-size: cover; background-position: center top;
  filter: brightness(0.3);
}
.about-hero-content {
  position: relative; z-index: 2; padding: 60px 20px;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.about-hero-content h1 { font-size: 2.6rem; font-weight: 900; margin-bottom: 12px; }
.about-hero-content p { color: #94a3b8; font-size: 1.1rem; max-width: 560px; }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-text h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.about-text h2 span { color: var(--primary-light); }
.about-text p { color: var(--text-muted); margin-bottom: 14px; }

.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: transform .2s;
}
.team-card:hover { transform: translateY(-4px); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 14px;
}
.team-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-card p { font-size: .85rem; color: var(--text-muted); }

/* ===== CONTACT PAGE ===== */
.contact-hero {
  position: relative; overflow: hidden;
  min-height: 280px; display: flex; align-items: center;
}
.contact-hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/contact.jpg');
  background-size: cover; background-position: center;
  filter: brightness(0.3);
}
.contact-hero-content {
  position: relative; z-index: 2; padding: 60px 20px;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.contact-hero-content h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: 10px; }
.contact-hero-content p { color: #94a3b8; font-size: 1.05rem; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
}
.contact-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 20px;
}
.contact-icon {
  width: 42px; height: 42px; border-radius: 9px;
  background: rgba(124,58,237,0.15); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: 3px; }
.contact-item p { font-size: .85rem; color: var(--text-muted); }

.contact-form-box {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.contact-form-box h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 22px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 16px; border-radius: 8px;
  background: var(--dark); border: 1px solid var(--border);
  color: var(--text); font-size: .92rem; outline: none;
  transition: border-color .2s; font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary-light); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: var(--dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== POLICY PAGES ===== */
.policy-hero {
  background: var(--dark3); border-bottom: 1px solid var(--border);
  padding: 60px 0 40px;
}
.policy-hero h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 10px; }
.policy-hero p { color: var(--text-muted); }
.policy-content {
  max-width: 820px; margin: 0 auto; padding: 48px 20px;
}
.policy-content h2 {
  font-size: 1.25rem; font-weight: 800; margin: 32px 0 12px;
  color: var(--primary-light);
}
.policy-content h3 {
  font-size: 1.05rem; font-weight: 700; margin: 22px 0 8px;
}
.policy-content p { color: var(--text-muted); margin-bottom: 12px; line-height: 1.75; }
.policy-content ul {
  color: var(--text-muted); padding-left: 22px; margin-bottom: 14px;
}
.policy-content ul li { margin-bottom: 6px; line-height: 1.7; }
.policy-content a { color: var(--primary-light); }
.policy-content a:hover { color: var(--accent); }
.policy-updated {
  display: inline-block; background: rgba(124,58,237,0.1);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 14px; font-size: .82rem; color: var(--text-muted);
  margin-bottom: 28px;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--dark3); border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  transform: translateY(100%); transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: .88rem; color: var(--text-muted); flex: 1; min-width: 220px; }
.cookie-banner p a { color: var(--primary-light); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  background: var(--primary); color: #fff; border: none;
  padding: 9px 20px; border-radius: 7px; font-size: .88rem;
  font-weight: 700; cursor: pointer; transition: background .2s;
}
.cookie-accept:hover { background: var(--primary-light); }
.cookie-decline {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); padding: 9px 16px;
  border-radius: 7px; font-size: .88rem; cursor: pointer;
  transition: all .2s;
}
.cookie-decline:hover { border-color: var(--text-muted); color: var(--text); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark2); border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: .88rem; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-size: .9rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: .87rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .82rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--primary-light); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 14px 0; font-size: .83rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { color: var(--text); }

/* ===== REVIEW DETAIL ===== */
.review-header { padding: 48px 0 0; }
.review-header h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 14px; }
.review-meta-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 24px; font-size: .88rem; color: var(--text-muted);
}
.review-score-big {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 8px 20px; border-radius: 8px; font-size: 1.3rem;
  font-weight: 900; color: #fff;
}
.review-img-full {
  width: 100%; max-height: 460px; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 32px;
}
.review-body { max-width: 820px; }
.review-body h2 { font-size: 1.3rem; font-weight: 800; margin: 28px 0 12px; }
.review-body p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.8; }
.pros-cons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: 28px 0;
}
.pros, .cons {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.pros h4 { color: var(--success); font-weight: 700; margin-bottom: 10px; }
.cons h4 { color: #f87171; font-weight: 700; margin-bottom: 10px; }
.pros ul, .cons ul { list-style: none; }
.pros ul li, .cons ul li {
  font-size: .9rem; color: var(--text-muted);
  padding: 4px 0; padding-left: 18px; position: relative;
}
.pros ul li::before { content: '+'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.cons ul li::before { content: '-'; position: absolute; left: 0; color: #f87171; font-weight: 700; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pros-cons { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .tournament-item { flex-direction: column; align-items: flex-start; }
  .t-meta { text-align: left; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.9rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
