:root {
  --bg:#0f1724;
  --panel:#0b1320;
  --muted:#94a3b8;
  --accent:#6ee7b7;
  --glass: rgba(255,255,255,0.03);
  --highlight: #6d28d9;
}

* { box-sizing:border-box; }
body {
  margin:0;
  font-family:"Inter", sans-serif;
  background:linear-gradient(180deg,#0b1220 0%, #0e1430 100%);
  color:#e6eef8;
  
}

.app {
  display:flex;
  gap:28px;
  padding:28px;
  min-height:100vh;
  min-width: 320px;
}

/* SIDEBAR */
.sidebar {
  width:260px;
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  background-image: url('images/pic5.jpg');
  border-radius:18px;
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:18px;
  box-shadow: 0 6px 24px rgba(3,8,23,0.6);
  background-size: cover;
  background-position: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 26px;
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  }
.logo img {
  width: 36px;
  height: auto;
}
.logo span {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
@media (max-width: 1100px) {
  .logo {
    justify-content: center;
        font-size: 24px;
  }

  .logo img {
    width: 34px;
  }
}
@media (max-width: 768px) {
  .logo img {
    height: 28px;
  }

  .logo span {
    font-size: 18px;
  }
}
.search {
  background:var(--glass);
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-size:14px;
}
.nav {
  display:flex;
  flex-direction:column;
  gap:8px;
  
}
.nav a {
  color:#cfe6ff;
  text-decoration:none;
  padding:10px 12px;
  border-radius:10px;
  font-weight:600;
  font-size:20px;
}
.nav a:hover { 
  background: rgba(255,255,255,0.05); 
}
.nav a.active {
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 12px rgba(110,231,183,0.5);
  color: var(--accent);
  font-weight: 800;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}
.nav a.active {
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 12px rgba(110,231,183,0.5);
  color: var(--accent);
  font-weight: 800;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}

.categories {
  display:flex;
  flex-direction:column;
  gap:8px;
}
.cat {
  background: rgba(255,255,255,0.03);
  padding:10px;
  border-radius:10px;
  color:var(--muted);
  font-weight:600;
}
.side-banner {
  background:linear-gradient(180deg,#6d28d9,#06b6d4);
  padding:14px;
  border-radius:12px;
}
.banner-text {
  font-weight:800;
  font-size:18px;
}
.banner-sub {
  opacity:.9;
  margin-top:6px;
  font-weight:600;
  color: var(--accent);
}

/* MAIN */
.main { flex:1; 
  display:flex; 
  flex-direction:column; 
  gap:20px;
  overflow-x: auto
}
.topbar {
  display:flex;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(79,70,229,0.12));
  border-radius:16px;
  padding:14px;
  justify-content:space-between;
  align-items:center;
}

.main-title { 
  font-size:32px; 
  font-weight:1000; 
  padding: 20px;
  color:var(--accent) 
}
.lang { 
  color:var(--muted); 
  font-weight:600; }
.notif {
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,0.03);
  display:flex; align-items:center; justify-content:center;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(79,70,229,0.12));
  border-radius:16px;
  
  padding:36px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.kicker { 
  color:var(--highlight); 
  font-size:24px; 
  font-weight:1000; 
  text-shadow: 0 1px 4px rgb(0, 0, 0);
  padding-bottom: 8px;
}

.hero h1 {
  margin:0;
  font-size:34px;
  font-weight:800;
  color:white;
  text-shadow: 0 1px 4px rgb(0, 0, 0);
}
.hero p { 
  margin:10px 0; 
  color:var(--accent); 
  font-weight:800;
  font-size:20px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.btn-primary {
  background:white;
  color:#0b1320;
  padding:10px 16px;
  border-radius:12px;
  font-weight:700;
  text-decoration:none;
}
.hero-illustration {
  width:240px;  
  height:120px;
  border-radius:12px;
  background:linear-gradient(180deg,#ffd6a598,#8b16f9);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#fff;
  text-decoration:none;
  font-size: 24px;
}

.hero-footer {
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(79,70,229,0.12));
  border-radius:16px;
  padding:28px;
  justify-content:space-between;
  align-items:center;
}
footer{
  margin: 18px;
}

/* GRID */
.section-title {
  font-weight:700;
  margin:6px 0 12px;
  color:#dbeafe;
}
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px;
}
.card {
  background: rgba(255,255,255,0.02);
  background-image: url('images/pic4.webp');
  background-size: cover;
  background-position: center;
  border-radius:14px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  box-shadow: 0 6px 20px rgba(2,8,23,0.6);
  transition:transform .18s ease;
}
.card:hover { transform:translateY(-6px); }
.card-top {
  display:flex;
  align-items:center;
  gap:12px;
}
.logo-sq {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-sq img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* флагът запълва квадрата */
}

.logo-sq {
  width:44px; height:44px; border-radius:10px;
  background:linear-gradient(135deg,#10b981,#047857);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; color:white;
}
.logo-sq.green { background:linear-gradient(45deg,#16a34a,#059669); }
.logo-sq.blue { background:linear-gradient(45deg,#0ea5e9,#2563eb); }
.logo-sq.red { background:linear-gradient(45deg,#eb2e4a,#b9112d); }
.stars { color:#fbbf24; font-size:13px; }

.meta {
  display:flex;
  align-items:center;
  gap:8px;
}
.badge {
  background: rgba(255, 255, 255, 0.276);
  padding:8px 10px;
  border-radius:10px;
  font-weight:800;
  color:var(--accent);
  font-size:13px;
}
.claim {
  margin-left:auto;
  background:linear-gradient(90deg,#3b82f6,#7c3aed);
  color:white;
  padding:8px 12px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
}

/* RESPONSIVE */
/* @media (max-width:1100px) {
  .sidebar { display:none; }
} */
@media (max-width:640px) {
  .hero { flex-direction:column; align-items:flex-start; }
  .hero-illustration { width:100%; }
}

@media (max-width: 1100px) {
  #table-container table {
    min-width: 900px; /* по-малко, за да се скролира удобно */
  }
}
#table-container {
  width: 100%;
  overflow-x: auto;
}

#table-container table {
  min-width: 1200px; /* или колкото ти трябва, за да се поберат всички колони */
  table-layout: fixed; /* да се разпредели равномерно */
}


/* TABLE STYLES */
table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-size: 16px;
}

th, td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

th {
  background: rgba(109,40,217,0.3);
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr {
  font-size: 10px;
  text-align: center;  
}

tr:hover {
  background: rgba(255,255,255,0.04);

}

#league-select {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  font-weight: 700;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
#league-select option {
  background: #0b1320;
  color: var(--accent);
}

#table-container {
  width: 100%;
  overflow-x: auto; /* хоризонтален скрол ако таблицата е широка */
  margin-top: 20px;
  padding-bottom: 10px;
}

#table-container table {
  min-width: 1200px; /* задава минимална ширина за всички колони */
  table-layout: fixed;
}

#league-select {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  font-weight: 700;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#league-select option {
  background: #0b1320;
  color: var(--accent);
}
.back-btn {
  display: inline-flex;        /* важен момент: само около съдържанието */
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(110,231,183,0.5);
  font-size: 14px;
  padding: 0;
  width: auto;                 /* не заема целия ред */
  max-width: max-content;      /* точно около текста и стрелката */
  background: none;
  margin: 0;
  transition: color 0.2s ease;
}

.back-btn i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.back-btn:hover {
  color: #ffffff;
}

.back-btn:hover i {
  transform: translateX(-3px);
}

/* --- Когато екранът стане тесен, sidebar пада под topbar и се променя--- */
@media (max-width: 1100px) {
  .app {
    flex-direction: column;
    gap: 18px;
    padding: 18px;
  }

  .main {
    order: 2;
    text-align: center;
  }

  .sidebar {
    order: 2;
    width: 100%;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.959), rgba(255,255,255,0.02));
    background-image: url('images/pic5.jpg');
    box-shadow: 0 6px 24px rgba(3,8,23,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 14px;
  }
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav a {
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 8px;
  }

  .side-banner {
    display: none;
  }

 
  .top-left{
    text-align: center;
  }
  .topbar{
    display:contents;
  }
}


