/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== VARIABLES ========== */
:root {
  --bg-main: #000000;
  --bg-header: #000000;
  --accent-green: #7cff6b;
  --text-main: #ffffff;
  --text-muted: #bbbbbb;
  --card-bg: #050505;
  --card-border: rgba(255, 255, 255, 0.12);
}

/* ========== GLOBAL ========== */
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
}

main {
  padding-top: 110px;
  min-height: 100vh;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background: var(--bg-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

/* ===== HEADER RIGHT SIDE (PRIVATE NAV + USER PANEL) ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* mini private links when on a private page */
.private-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.private-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
}

.private-links a:hover {
  color: var(--accent-green);
}

/* ===== PRIVATE MENU (HAMBURGER, TOP RIGHT) ===== */
.private-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.private-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.private-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

/* dropdown */
.private-menu-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  min-width: 220px;
  background: #050505;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  padding: 8px 0;
  display: none;
  z-index: 200;
}

.private-menu.open .private-menu-dropdown {
  display: block;
}

.private-menu-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
}

.private-menu-dropdown a:hover {
  background: #111111;
  color: var(--accent-green);
}

/* User greeting + avatar + logout */
.user-panel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-greeting {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-green);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* Logout + login buttons */
.logout-button,
.login-button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--text-main);
  font-size: 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.logout-button:hover,
.login-button:hover {
  background: #111;
  color: var(--accent-green);
}

/* On small screens, stack more nicely */
@media (max-width: 768px) {
  .header-right {
    gap: 10px;
  }

  .user-greeting {
    display: none; /* if it feels too cramped on mobile, hide text */
  }
}

/* ===== PRIVATE PAGES (DISCORD-LOCKED AREAS) ===== */
.private-page {
  padding: 140px 20px 80px;
  background: #050505;
  min-height: 100vh;
}

.private-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.private-inner h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.private-inner p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 8px;
}

.private-inner code {
  font-size: 0.9rem;
}

/* (main-nav styles are still here in case you ever bring it back;
   they aren't used right now but harmless) */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--accent-green);
}

/* ===== TOURNAMENT DASHBOARD ===== */
.tourney-dashboard {
  background: radial-gradient(circle at top, #151515 0, #050505 45%, #000 100%);
}

.tourney-inner {
  max-width: 1100px;
  text-align: left;
}

.tourney-inner h1 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.tourney-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.tourney-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tourney-card {
  background: #050505;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  padding: 24px 24px 20px;
}

.tourney-card h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.tourney-card-text {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tourney-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.tourney-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.tourney-value {
  font-size: 0.95rem;
}

.tourney-status-idle {
  color: var(--accent-green);
}

.tourney-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.9;
  margin-top: 4px;
}

/* Registrations list */
.tourney-list {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 12px;
}

.tourney-list-header,
.tourney-list-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.tourney-list-header {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.tourney-list-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.tourney-list-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.tourney-name {
  font-weight: 500;
}

.tourney-name.muted {
  color: var(--text-muted);
}

.tourney-tag {
  font-size: 0.8rem;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Bracket overview */
.tourney-card-wide {
  grid-column: 1 / -1;
}

.tourney-bracket {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}

.tourney-round {
  min-width: 200px;
}

.tourney-round-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.tourney-match {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.tourney-match.placeholder {
  background: rgba(255, 255, 255, 0.02);
}

/* Admin tools / notes */
.tourney-ideas {
  margin-left: 18px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tourney-ideas li {
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .tourney-grid {
    grid-template-columns: 1fr;
  }

  .tourney-card-wide {
    grid-column: auto;
  }
}

.player-results-box {
  margin-top: 6px;
  max-height: 180px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #050505;
}

.player-result-item {
  padding: 6px 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.player-result-item:nth-child(odd) {
  background: rgba(255,255,255,0.02);
}

.player-result-item:nth-child(even) {
  background: rgba(255,255,255,0.01);
}

.player-result-item:hover {
  background: rgba(255,255,255,0.08);
}

.player-result-item.selected {
  background: rgba(124,255,107,0.18);
  color: var(--accent-green);
}

.player-result-item.empty {
  color: var(--text-muted);
  cursor: default;
}

/* ===== TR1CKYBOT DASHBOARD ===== */
.bot-dashboard {
  background: radial-gradient(circle at top, #111 0, #050505 45%, #000 100%);
}

.bot-inner {
  max-width: 1100px;
  text-align: left;
}

.bot-inner h1 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.bot-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.bot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.bot-card {
  background: #050505;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  padding: 24px 24px 20px;
}

.bot-card h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.bot-card-text {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.bot-status-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.bot-status-value {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.bot-status-online {
  color: var(--accent-green);
}

.bot-status-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.bot-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.bot-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.bot-link-button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #000;
  color: var(--text-main);
  font-size: 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bot-link-button:hover {
  background: #111;
  color: var(--accent-green);
}

.bot-card-wide {
  grid-column: 1 / -1;
}

.bot-ideas {
  margin-left: 18px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bot-ideas li {
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .bot-grid {
    grid-template-columns: 1fr;
  }

  .bot-card-wide {
    grid-column: auto;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;

  background-color: #000000;
  background-image: url("https://mstr1cky.com/assets/img/hero-bg.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1300px;
}

/* Heading + tagline */
.hero-heading {
  text-align: center;
  margin-bottom: 40px;
}

.hero-heading h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 10px;
}

.hero-heading p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
  color: #f2f2f2;
  opacity: 0.9;
}

/* ========== CARD GRID ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card box */
.card-box {
  width: 100%;
  height: 320px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Base image behavior (same for all) */
.card-image {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 24px;
  transition: transform 0.2s ease;
}

/* Per-icon fine tuning */
.card-image.tiktok-img {
  transform: scale(1.15);   /* slightly bigger */
}

.card-image.etsy-img {
  transform: scale(0.9);    /* shrink a bit */
}

.card-image.twitch-img {
  transform: scale(1.0);    /* baseline */
}

.card-image.tourney-img {
  transform: scale(1.0);
}

.card-image.discord-img {
  transform: scale(0.7);    /* much smaller */
}

/* Optional subtle hover pop on all icons */
.card-box:hover .card-image {
  transform: scale(1.05);
}

/* Pills */
.pill-button {
  margin-top: 18px;
  padding: 12px 30px;
  border-radius: 999px;
  background: #000000;
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease,
    box-shadow 0.2s ease;
}

.pill-button:hover {
  background: #111111;
  color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.85);
}

/* Center Discord card on its own row */
.discord-card {
  grid-column: 2 / span 2;
}

/* ========== ABOUT SECTION ========== */
.about-section {
  background: #050505;
  padding: 80px 20px;
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-inner h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-inner p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ========== 404 PAGE (kept for later) ========== */
.error-404 {
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(circle at top, #181818 0, #050505 55%, #000 100%);
}

.error-inner {
  max-width: 480px;
  text-align: center;
}

.error-logo {
  height: 60px;
  width: auto;
  margin: 0 auto 24px;
  display: block;
}

.error-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.error-text {
  color: var(--text-muted);
  margin-bottom: 26px;
}

.error-button {
  padding-inline: 40px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .discord-card {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
  }

  .logo-img {
    height: 60px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-inline: 10px;
  }
}
