/* 1. DEFINICJA WŁASNEJ CZCIONKI */
@font-face {
  font-family: 'Ethnocentric';
  src: url('ethnocentric.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 2. ZMIENNE KOLORYSTYCZNE */
:root {
  --bg-color: #000000;
  /* #1e1f22; */
  /* Discord Dark */
  --card-bg: #2b2d31;
  /* Discord Section */
  --dc-blurple: #5865f2;
  /* Discord Blue */
  --primary-cyan: #00ffcc;
  /* QLIP Cyan */
  --text-white: #f2f3f5;
  --text-muted: #b5bac1;
  --twitch: #9146ff;
  --youtube: #ff0000;
  --kofi: #29abe0;
}

/* 3. RESET I GŁÓWNE STYLE */
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-white);
  margin: 0;
  display: flex;
  justify-content: center;
  padding: 40px 15px;
  line-height: 1.6;
}

.main-wrapper {
  width: 100%;
  max-width: 600px;
}

/* 4. NAGŁÓWEK (LOGO + TEKST) */
.header-inline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.main-logo {
  max-width: 75px;
  height: auto;
}

.top-title {
  font-family: 'Ethnocentric', sans-serif;
  font-size: 1.7rem;
  font-weight: normal;
  text-transform: capitalize;
  margin: 0;
  text-align: left;
  letter-spacing: 1px;
}

.top-title .low {
  font-size: 1.2rem;
}

.highlight {
  color: var(--primary-cyan);
}

/* 5. WELCOME BOX */
.welcome-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  border-left: 4px solid var(--primary-cyan);
  text-align: left;
}

.welcome-box p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-white);
}

/* 6. DISCORD CTA */
.discord-btn {
  display: flex;
  align-items: center;
  background: var(--dc-blurple);
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  margin-bottom: 25px;
  transition: transform 0.2s, background 0.2s;
}

.discord-btn:hover {
  transform: scale(1.02);
  background: #4752c4;
}

.btn-icon {
  width: 40px;
  margin-right: 15px;
}

.btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-main {
font-size: 1.6rem;
    font-family: 'Ethnocentric', sans-serif;
    margin-bottom: -5px;
}

/* 7. SEKTY (CARDS) */
.card-box {
  background: var(--card-bg);
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 15px;
  text-align: left;
}

.card-box h2 {
  font-family: 'Ethnocentric', sans-serif;
  font-size: 0.8rem;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-muted);
}

/* Social Grid */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  gap: 10px;
  transition: opacity 0.2s;
}

.social-btn:hover {
  opacity: 0.9;
}

.social-btn img {
  width: 20px;
}

.twitch {
  background: var(--twitch);
}

.youtube {
  background: var(--youtube);
}

/* Support */
.support-box p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.btn-kofi {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kofi);
  padding: 14px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  gap: 10px;
}

/* --- NOWY STYL DLA BRAVO LEAGUE CARD --- */

.event-card {
  display: block;
  position: relative;
  text-decoration: none;
  background: #1e1f22; /* Ciemne tło pasujące do Discorda */
  border-radius: 12px;
  margin-bottom: 25px;
  overflow: hidden;
  border: 1px solid #3f4147;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* Subtelny cień na start */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Kolorowa poświata pod spodem */
.event-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
  opacity: 0.5;
  transition: opacity 0.3s;
  z-index: 0;
}

.event-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Ikona pucharu w tle/z prawej */
.event-icon {
  position: absolute;
  right: -10px;
  bottom: -10px;
  font-size: 5rem;
  opacity: 0.05;
  transform: rotate(-15deg);
  transition: all 0.3s;
  z-index: 0;
}

/* --- TEXT STYLING --- */

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.live-badge {
  color: #ff4444; /* Czerwony LIVE */
  display: flex;
  align-items: center;
  gap: 6px;
}
.comming-badge {
  color: #f1c40f; /* Czerwony LIVE */
  display: flex;
  align-items: center;
  gap: 6px;
}

.blink {
  animation: blinker 1.5s linear infinite;
}

.event-mode {
  color: var(--primary-cyan);
  background: rgba(0, 255, 204, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.event-title {
  font-family: 'Ethnocentric', sans-serif; /* Twoja czcionka z nagłówka */
  font-size: 1.4rem;
  color: white;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  line-height: 1.1;
}

.highlight-year {
  color: #d946ef; /* Różowy akcent */
}

.event-footer {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 600;
  transition: color 0.3s;
}

/* --- HOVER EFFECTS (Najważniejsze!) --- */

.event-card:hover {
  transform: translateY(-3px); /* Lekkie uniesienie */
  border-color: #d946ef; /* Różowa ramka po najechaniu */
  box-shadow: 0 10px 20px rgba(219, 39, 119, 0.2); /* Różowa poświata */
}

.event-card:hover .event-glow {
  opacity: 1; /* Mocniejsze tło */
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.3) 0%, rgba(147, 51, 234, 0.3) 100%);
}

.event-card:hover .event-icon {
  transform: rotate(0deg) scale(1.1);
  opacity: 0.15;
  right: 10px;
  bottom: 10px;
}

.event-card:hover .event-footer {
  color: white; /* Tekst robi się biały */
}

/* Animacja kropki LIVE */
@keyframes blinker {
  50% { opacity: 0; }
}

/* --- ARCHIVE BUTTON STYLE (Alpha) --- */
.alpha-btn {
  background: #2b2d31;
  border: 1px solid #3f4147;
  color: #9ca3af;
  justify-content: center;
  margin-top: 10px;
  font-size: 0.85rem;
}

.alpha-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: #3f4147;
}

/* 8. SERWERY (TABLE) */
.divider {
  border: 0;
  border-top: 1px solid #3f4147;
  margin: 35px 0;
}

.section-title {
  font-family: 'Ethnocentric', sans-serif;
  font-size: 0.85rem;
  text-align: left;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.table-container {
  overflow-x: auto;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid #3f4147;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--primary-cyan);
  padding: 12px;
  text-align: left;
  text-transform: uppercase;
  font-size: 0.7rem;
}

td {
  padding: 12px;
  border-bottom: 1px solid #3f4147;
}

tr:last-child td {
  border-bottom: none;
}

table a {
  color: var(--primary-cyan);
  text-decoration: none;
  font-weight: bold;
}

/* 9. LEGENDY I FOOTER */
.legends-section {
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legends-section strong {
  color: var(--text-white);
}

footer {
  margin-top: 50px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--primary-cyan);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
}

.copy {
  font-size: 0.7rem;
  opacity: 0.3;
}
/* TŁO NEBULA - TYLKO DESKTOP */
/*@media (min-width: 1024px) {*/
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('fp-nebula.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2;
    /* Twoje ustawienie przezroczystości */
    z-index: -1;
    /* Warstwa pod treścią */
  }

/* 10. MOBILE */
@media (max-width: 500px) {
  .header-inline {
    flex-direction: column;
    text-align: center;
  }

  .top-title {
    text-align: center;
    font-size: 1.1rem;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }
}