/* ===== BATTLEBRAVO.PRO - MAIN STYLESHEET ===== */

:root {
  --bg-primary: #0d0d1a;
  --bg-secondary: #16213e;
  --bg-card: #1a1a2e;
  --accent-orange: #ff6b35;
  --accent-blue: #00d4ff;
  --text-primary: #e8e8f0;
  --text-secondary: #9999bb;
  --border-color: #2a2a4a;
  --gradient-hero: linear-gradient(135deg, #0d0d1a 0%, #16213e 50%, #0f3460 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-blue);
}

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

/* ===== HEADER & NAV ===== */
header {
  background: rgba(13, 13, 26, 0.97);
  border-bottom: 2px solid var(--accent-orange);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent-orange);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
}

nav ul li a {
  color: var(--text-primary);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--accent-orange);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero h1 span {
  color: var(--accent-orange);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 35px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent-orange);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: #e55a25;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* ===== SECTION LAYOUT ===== */
section {
  padding: 80px 20px;
}

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

.section-header {
  text-align: center;
  margin-bottom: 55px;
}

.section-label {
  display: inline-block;
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-orange);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.15);
}

.card-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tag {
  background: rgba(255, 107, 53, 0.15);
  color: var(--accent-orange);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag.blue {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-blue);
}

.card-date {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.stars {
  color: #ffd700;
  font-size: 0.9rem;
}

.rating-num {
  font-weight: 700;
  font-size: 0.9rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-orange);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 10px;
  color: var(--accent-orange);
}

/* ===== FEATURED SECTION ===== */
.featured-section {
  background: var(--bg-secondary);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.featured-image {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.featured-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-image:hover img {
  transform: scale(1.03);
}

.featured-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.3;
}

.featured-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
}

.featured-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 28px;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-orange);
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter-box p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 260px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent-orange);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-secondary);
}

.form-message {
  margin-top: 14px;
  font-size: 0.95rem;
  min-height: 22px;
}

.form-message.success {
  color: #4caf50;
}

.form-message.error {
  color: #f44336;
}

/* ===== TOURNAMENTS PAGE ===== */
.tournament-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.tournament-hero .hero-bg {
  background-image: url('../images/tournament.jpg');
}

.tournament-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  transition: all 0.3s ease;
}

.tournament-card:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.12);
}

.tournament-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tournament-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}

.tournament-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tournament-meta .icon {
  color: var(--accent-orange);
}

.tournament-status {
  text-align: right;
}

.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.status-badge.open {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-badge.upcoming {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.status-badge.closed {
  background: rgba(153, 153, 187, 0.15);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-hero .hero-bg {
  background-image: url('../images/about.jpg');
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.team-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
}

.team-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.team-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-hero .hero-bg {
  background-image: url('../images/contact.jpg');
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
}

.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 107, 53, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.contact-item p {
  color: var(--text-primary);
  margin: 0;
  font-size: 0.95rem;
}

/* ===== FORMS ===== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 36px;
}

.form-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-orange);
}

.form-group select option {
  background: var(--bg-secondary);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== REVIEWS PAGE ===== */
.reviews-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.reviews-hero .hero-bg {
  background-image: url('../images/review1.jpg');
}

.review-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}

/* ===== POLICY PAGES ===== */
.policy-hero {
  background: var(--bg-secondary);
  padding: 70px 20px;
  border-bottom: 1px solid var(--border-color);
}

.policy-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.policy-hero p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.policy-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 20px;
}

.policy-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--accent-orange);
}

.policy-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 10px;
}

.policy-content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.8;
}

.policy-content ul {
  color: var(--text-secondary);
  padding-left: 22px;
  margin-bottom: 14px;
  line-height: 1.8;
}

.policy-content ul li {
  margin-bottom: 6px;
}

.policy-content a {
  color: var(--accent-orange);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 2px solid var(--accent-orange);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  flex-wrap: wrap;
}

.cookie-banner p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 1;
  min-width: 250px;
}

.cookie-banner p a {
  color: var(--accent-orange);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--accent-orange);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.cookie-accept:hover {
  background: #e55a25;
}

.cookie-decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.cookie-decline:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 20px 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ===== REGISTER SECTION ===== */
.register-section {
  background: var(--bg-secondary);
}

.register-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 44px;
}

.register-box h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.register-box > p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .featured-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tournament-card {
    grid-template-columns: 1fr;
  }

  .tournament-status {
    text-align: left;
  }
}

@media (max-width: 700px) {
  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 2px solid var(--accent-orange);
    flex-direction: column;
    padding: 20px;
    gap: 5px;
  }

  nav ul.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .featured-stats {
    gap: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .register-box {
    padding: 28px 20px;
  }
}
