@font-face {
  font-family: 'BitcountGrid';
  src: url('/assets/fonts/BitcountGridSingle-VariableFont_CRSV,ELSH,ELXP,slnt,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --orange: #ea7216;
  --dark: #0e1621;
  --light: #ddd;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--light);
  font-family: 'BitcountGrid', sans-serif;
  letter-spacing: 0.3px;
}

.tournament-page {
  max-width: 1300px;
  margin: 60px auto;
  padding: 0 20px;
}

/* Header */
.tournament-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.tournament-header h1 {
  font-size: 2.6rem;
  text-shadow: 0 0 12px rgba(234, 114, 22, 0.7);
  font-weight: 700;
}

.new-tournament-btn {
  background: var(--orange);
  color: var(--dark);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(234, 114, 22, 0.6);
  transition: all 0.3s ease;
}
.new-tournament-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(234, 114, 22, 0.8);
}

/* Live Suche */
.live-search {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--light);
  margin-bottom: 40px;
  font-family: 'BitcountGrid', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}
.live-search:focus {
  border-color: var(--orange);
  box-shadow: 0 0 10px rgba(234,114,22,0.4);
}

/* Grid */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 30px;
}

/* Card */
.tournament-card {
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  height: 150px;
  box-shadow: 0 0 15px rgba(234,114,22,0.12);
}
.tournament-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(234,114,22,0.3);
}

/* Info */
.tournament-info {
  padding: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
}

/* Host + Text */
.host-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.host-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  object-fit: cover;
  background: var(--dark);
  box-shadow: 0 0 10px rgba(234,114,22,0.4);
}

.tournament-text h2 {
  margin: 0;
  color: var(--light);
  font-size: 1.4rem;
  text-shadow: 0 0 8px rgba(234,114,22,0.5);
}
.tournament-text .game {
  color: #bbb;
  font-size: 0.95rem;
}
.tournament-text .prize {
  color: var(--orange);
  font-weight: 600;
}
.tournament-text .created {
  color: var(--orange);
  font-weight: 600;
  margin-top: 4px;
}

/* Banner */
.tournament-banner {
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 14px 14px 0;
  position: relative;
}
.tournament-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
  transition: transform 0.4s ease;
}
.tournament-card:hover .tournament-banner img {
  transform: scale(1.05);
}

/* Keine Turniere */
.no-tournaments {
  text-align: center;
  margin-top: 100px;
  font-size: 1.2rem;
  opacity: 0.8;
  text-shadow: 0 0 5px rgba(255,255,255,0.15);
}

/* Responsive */
@media (max-width: 700px) {
  .tournament-grid {
    grid-template-columns: 1fr;
  }
  .tournament-card {
    flex-direction: column;
    height: auto;
  }
  .tournament-info, .tournament-banner {
    width: 100%;
  }
  .tournament-banner {
    height: 120px;
  }
}
