/* FunFragger 2026 - CounterStrike.de Inspired CS2 Theme */
:root {
  --bg-main: #0b0e14;
  --bg-header: #121722;
  --bg-card: #141a26;
  --bg-card-hover: #1c2436;
  --bg-sidebar: #0f141f;
  --accent-orange: #ff6b00;
  --accent-amber: #f59e0b;
  --accent-cyan: #38bdf8;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 107, 0, 0.25);
  --border-glow: 0 0 15px rgba(255, 107, 0, 0.3);
  --radius: 8px;
}

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

body {
  background-color: var(--bg-main);
  background-image: 
    linear-gradient(rgba(11, 14, 20, 0.82), rgba(11, 14, 20, 0.92)),
    url('bg.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--accent-orange);
}

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

/* Top Navbar (Counterstrike.de Style) */
.top-navbar {
  background: var(--bg-header);
  border-bottom: 2px solid var(--accent-orange);
  padding: 0 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.brand-logo:hover {
  text-decoration: none;
  color: #fff;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent-orange);
  color: #000;
  text-shadow: none;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.6);
}

/* Header Banner Card */
.site-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 25px;
  box-shadow: var(--border-glow);
  position: relative;
}

.header-banner {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.header-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 10px;
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.6);
}

/* Main Layout Grid */
.layout-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

@media (max-width: 850px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none; /* Mobile menu handles this */
  }
}

/* Sidebar Styling */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-orange);
  letter-spacing: 1px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.widget-menu {
  list-style: none;
}

.widget-menu li {
  margin-bottom: 6px;
}

.widget-menu a {
  display: block;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  color: var(--text-main);
  font-weight: 600;
  border-left: 3px solid transparent;
}

.widget-menu a:hover,
.widget-menu a.active {
  background: rgba(255, 107, 0, 0.15);
  color: var(--accent-orange);
  border-left-color: var(--accent-orange);
  transform: translateX(4px);
}

/* Content Area */
.content-area {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-height: 500px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-orange);
}

/* Category Badges (Counterstrike.de Style) */
.cat-badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--accent-orange);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-radius: 3px;
  letter-spacing: 0.5px;
  margin-right: 8px;
}

/* Cards & Posts */
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent-orange);
  box-shadow: var(--border-glow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-body {
  font-size: 0.95rem;
  color: #cbd5e1;
}

/* Win/Loss Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.badge-win {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.badge-loss {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

/* Forms & Buttons */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: #070a10;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent-orange);
  color: #000000;
  font-weight: 800;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--accent-amber);
  color: #000;
  box-shadow: 0 0 14px var(--accent-orange);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}

.btn-danger {
  background: var(--accent-red);
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 0 12px var(--accent-red);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 90%;
  max-width: 550px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}
.modal-header h2 {
  margin: 0;
  color: var(--accent-orange);
  font-size: 1.25rem;
  text-transform: uppercase;
}
.close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.close-btn:hover {
  color: var(--accent-orange);
}
.modal-body {
  padding: 20px;
  color: #cbd5e1;
}
.about-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.about-image-container img {
  width: 150px;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.about-text p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.about-text strong {
  color: #fff;
}
@media (max-width: 600px) {
  .about-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.member-card {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.member-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-orange);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.15);
}