
:root {
  --bg-body: #020617;
  --bg-header: rgba(15, 23, 42, 0.96);
  --bg-card: rgba(15, 23, 42, 0.95);
  --bg-alt: rgba(15, 23, 42, 0.9);
  --accent: #e11d48;
  --accent2: #22c55e;
  --accent-soft: rgba(225, 29, 72, 0.18);
  --border: #1f2937;
  --border-strong: #374151;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --chip-blue: #1d4ed8;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
  color: var(--text-main);
}

body {
  position: relative;
  min-height: 100vh;
}

.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 20%, rgba(34,197,94,0.14) 0, transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(56,189,248,0.15) 0, transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(239,68,68,0.18) 0, transparent 60%);
  filter: blur(1px);
  animation: bgMove 25s linear infinite alternate;
}

@keyframes bgMove {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-15px, 10px, 0);
  }
  100% {
    transform: translate3d(10px, -15px, 0);
  }
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* TOPBAR */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(90deg, rgba(15,23,42,0.92), rgba(15,23,42,0.8));
  color: #f9fafb;
  border-bottom: 1px solid rgba(148,163,184,0.3);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.brand-badge {
  background: radial-gradient(circle at 30% 0, #f97316, #e11d48);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 9px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.7);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.75rem;
  color: #9ca3af;
}

.main-nav {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: #e5e7eb;
  padding: 6px 12px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.main-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(#020617, #020617) padding-box,
    linear-gradient(120deg, rgba(96,165,250,0.6), rgba(248,113,113,0.7)) border-box;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.main-nav a:hover::before {
  opacity: 1;
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

/* BUTTONS */

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
  transition: 0.18s transform, 0.18s box-shadow, 0.18s background, 0.18s border-color, 0.18s color;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(248,250,252,0.6),
    transparent
  );
  transform: translateX(0);
  opacity: 0;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
  animation: shimmer 0.8s forwards;
}

@keyframes shimmer {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(260%);
  }
}

.btn.primary {
  background: radial-gradient(circle at 0 0, #f97316, #e11d48);
  border-color: rgba(248,250,252,0.16);
  color: #f9fafb;
  box-shadow: 0 10px 30px rgba(248, 113, 113, 0.6);
}

.btn.primary:hover {
  transform: translateY(-1px) scale(1.02);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(148,163,184,0.5);
  color: #e5e7eb;
}

.btn.ghost:hover {
  background: rgba(15,23,42,0.9);
}

.btn.small {
  padding: 5px 10px;
  font-size: 0.8rem;
}

.btn.glow {
  box-shadow: 0 0 22px rgba(125,211,252,0.7);
}

.btn.neon {
  border-color: rgba(56,189,248,0.7);
  box-shadow: 0 0 20px rgba(56,189,248,0.7);
}

/* TICKER */


.ticker-wrap {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  border-bottom: 1px solid rgba(148,163,184,0.4);
  background: radial-gradient(circle at 0 0, rgba(8,47,73,0.9), rgba(15,23,42,0.95));
  padding: 6px 0;
}


.ticker-label {
  display: inline-block;
  padding: 4px 8px;
  background: rgba(15,23,42,0.9);
  color: #f9fafb;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(148,163,184,0.6);
  margin-left: 20px;
}

.ticker {
  display: block;
  width: 100vw;
  overflow: hidden;
  height: 30px;
  padding-left: 20px;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 20px;
  animation: ticker 40s linear infinite;
}

.ticker-track.paused {
  animation-play-state: paused;
}

.ticker-item {
  margin-right: 32px;
  cursor: pointer;
}

.ticker-item span.dot {
  color: #22c55e;
  margin-right: 6px;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* HERO */

.hero {
  padding: 20px 0 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.hero-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,184,0.5);
}

.hero-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 340px;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0, rgba(56,189,248,0.32), transparent 55%),
    linear-gradient(
      180deg,
      rgba(15,23,42,0.05) 0%,
      rgba(15,23,42,0.86) 60%,
      rgba(15,23,42,0.96) 100%
    );
  color: #f9fafb;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.hero-tag {
  align-self: flex-start;
  background: rgba(15,23,42,0.9);
  border-radius: 999px;
  border: 1px solid rgba(248,250,252,0.3);
  color: #e5e7eb;
  font-size: 0.75rem;
  padding: 4px 10px;
  margin-bottom: 4px;
}

.hero-image-overlay h1 {
  font-size: 1.5rem;
  margin: 0;
}

.hero-image-overlay p {
  font-size: 0.9rem;
  margin: 4px 0 8px;
  color: #e5e7eb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* HERO SIDE */

.hero-side {
  background: rgba(15,23,42,0.94);
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.7);
  padding: 12px 12px 10px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.6);
}

.side-title {
  margin: 0 0 8px;
  font-size: 1rem;
  border-bottom: 2px solid #22c55e;
  padding-bottom: 4px;
}

.side-list {
  margin: 0;
  padding-left: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.side-list li + li {
  margin-top: 4px;
}

/* SECTION */

.section {
  padding: 24px 0;
}

.section-alt {
  background: radial-gradient(circle at 0 0, rgba(15,23,42,0.9), rgba(15,23,42,0.95));
  border-top: 1px solid rgba(148,163,184,0.4);
  border-bottom: 1px solid rgba(148,163,184,0.4);
}

.section-header {
  margin-bottom: 12px;
}

.section-header h2,
.section-header h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.section-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* NEWS GRID */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-grid.small-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card {
  background: rgba(15,23,42,0.9);
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.55);
  padding: 10px 12px 9px;
  box-shadow: 0 14px 30px rgba(15,23,42,0.7);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.news-card-inner {
  position: relative;
  z-index: 1;
}

.news-card.featured {
  grid-column: span 2;
}

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

.news-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.news-excerpt {
  font-size: 0.88rem;
  margin: 3px 0 0;
  color: #d1d5db;
}

.news-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  color: #a5b4fc;
  margin-bottom: 3px;
}

.news-card:hover::before {
  opacity: 1;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(248,250,252,0.5);
}

/* BLOG GRID */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.blog-card {
  background: rgba(15,23,42,0.92);
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.55);
  padding: 10px 12px 9px;
  box-shadow: 0 12px 28px rgba(15,23,42,0.65);
}

.blog-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.blog-excerpt {
  font-size: 0.9rem;
  margin: 0;
}

/* CLUB / TEAM */

.club-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.club-card {
  background: rgba(15,23,42,0.95);
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.6);
  padding: 12px;
  box-shadow: 0 14px 32px rgba(15,23,42,0.7);
}

.club-card h3 {
  margin: 0 0 6px;
}

.club-card ul {
  margin: 0;
  padding-left: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.club-card li + li {
  margin-top: 4px;
}

/* ADMIN SECTION */

.section-admin {
  background: radial-gradient(circle at 50% 0, rgba(37,99,235,0.3), rgba(15,23,42,0.98));
  border-top: 1px solid rgba(148,163,184,0.5);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.admin-card {
  background: rgba(15,23,42,0.95);
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.7);
  padding: 12px;
  box-shadow: 0 14px 28px rgba(15,23,42,0.75);
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(148,163,184,0.6);
  background: rgba(3,7,18,0.96);
  color: #d1d5db;
  padding: 14px 0;
  margin-top: 24px;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-text {
  margin: 2px 0 0;
  color: #9ca3af;
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.3), rgba(15,23,42,0.98));
  border-radius: 16px;
  padding: 14px 14px 10px;
  max-width: 460px;
  width: 92%;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148,163,184,0.8);
}

.modal-wide {
  max-width: 720px;
}

.modal-content h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.form label {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.form input,
.form textarea {
  width: 100%;
  margin-top: 3px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,0.8);
  font-family: inherit;
  font-size: 0.9rem;
  background: rgba(15,23,42,0.92);
  color: #e5e7eb;
}

.form textarea {
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56,189,248,0.6);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

/* TEXT HELPERS */

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.78rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #e5e7eb;
}

.hidden {
  display: none !important;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-image img {
    max-height: 260px;
  }
  .club-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-grid.small-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ticker-label {
  display: inline-block;
  padding: 4px 8px;
  background: rgba(15,23,42,0.9);
  color: #f9fafb;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(148,163,184,0.6);
  margin-left: 20px;
}
  .ticker {
  display: block;
  width: 100vw;
  overflow: hidden;
  height: 30px;
  padding-left: 20px;
}
  .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


#matrix-left, #matrix-right {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 120px;
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
}

#matrix-left { left: 0; }
#matrix-right { right: 0; }



#matrix-left, #matrix-right {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 180px;
    z-index: 0;
    opacity: 0.25;
    pointer-events: none;
}

#matrix-left { left: 0; }
#matrix-right { right: 0; }

/* Main content above side effects */
body, main, .container, header, footer {
    position: relative;
    z-index: 1;
}

