@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ================================================
   WBS 2026 KATOWICE – DESIGN SYSTEM
   Dark header · White content · Crimson red accent
   ================================================ */

:root{
  --dark:       #1e1e1e;
  --dark-mid:   #2a2a2a;
  --red:        #C1272D;
  --red-hover:  #a3202a;
  --red-light:  rgba(193,39,45,.08);
  --white:      #ffffff;
  --off-white:  #f7f7f7;
  --text:       #2c2c2c;
  --text-muted: #6b6b6b;
  --border:     rgba(0,0,0,.08);
  --shadow:     0 8px 32px rgba(0,0,0,.08);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.12);
}

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

html, body{
  margin:0;
  padding:0;
}

/* ================================================
   BODY & BACKGROUND
   ================================================ */
body{
  font-family:'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

/* ================================================
   LINKS – Red accent
   ================================================ */
a{
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  transition: color .25s ease;
}
a:hover{
  color: var(--red-hover);
}

/* ================================================
   LAYOUT
   ================================================ */
.background-container{
  min-height: 100vh;
  padding: 0;
  background: var(--off-white);
}

.innercontent{
  max-width: 1100px;
  margin: 0 auto;
}

/* ================================================
   HEADER – Dark bar, matching Katowice homepage
   ================================================ */
#header{
  text-align: center;
  color: var(--white);
  padding: 28px 20px 22px;
  background: var(--dark);
  border-bottom: 4px solid var(--red);
  position: relative;
}

/* subtle radial glow behind the title */
#header::before{
  content:'';
  position:absolute;
  inset:0;
  background: radial-gradient(ellipse 600px 200px at 50% 80%, rgba(193,39,45,.12), transparent 70%);
  pointer-events:none;
}

#logo-ewtc img{
  max-width: 260px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
}

#header h1{
  margin: 0 0 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  z-index: 1;
}

#data{
  display: inline-block;
  margin: 0;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--red);
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .03em;
  box-shadow: 0 4px 16px rgba(193,39,45,.35);
  position: relative;
  z-index: 1;
}

/* ================================================
   MAIN CARD – White, elevated, modern
   ================================================ */
.contentEBLMP{
  margin-top: 0;
  padding: 32px 20px 48px;
}

.winter-card{
  background: var(--white);
  color: var(--text);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ================================================
   MENU / NAV BUTTONS
   ================================================ */
#menu-info{
  text-align: center;
  padding: 24px 32px 20px;
  background: var(--dark);
  border-bottom: none;
}

.btn-back-info{
  display: inline-block;
  padding: 11px 26px;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: none;
  margin: 0 6px 8px;
  transition: all .3s ease;
}

.btn-back-info:hover,
.btn-back-info:focus{
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(193,39,45,.35);
}

/* HIDDEN BUTTONS */
.btn-results,
.btn-bulletins{
  display: none;
}

/* ================================================
   PAGE CONTENT
   ================================================ */
.page-content{
  padding: 32px 40px 40px;
}

.page-content h2{
  margin-top: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* Red underline accent for headings */
.page-content h2::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

/* Fix for h2 inside center tag */
center + h2,
h2#registration{
  text-align: center;
}

.page-content p,
.page-content li{
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text);
}

.page-content p strong{
  color: var(--dark);
}

/* ================================================
   TABLES – Modern with Katowice dark headers
   ================================================ */
.bulletin-table{
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  border: none;
  font-size: .95rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.bulletin-table th,
.bulletin-table td{
  padding: 14px 18px;
  text-align: center;
}

.bulletin-table th{
  background: var(--dark);
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .03em;
  border: none;
}

/* Championship list rows: left-aligned, larger font */
.bulletin-table td{
  text-align: left;
  padding: 14px 24px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}

.bulletin-table tr:nth-child(even) td{
  background: var(--off-white);
}

.bulletin-table tr:nth-child(odd) td{
  background: var(--white);
}

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

.bulletin-table tr:hover td{
  background: var(--red-light);
}

/* LINKS INSIDE TABLES */
.bulletin-table a{
  color: var(--red);
  font-weight: 600;
  position: relative;
}

.bulletin-table a::after{
  content:'';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width .3s ease;
}

.bulletin-table a:hover{
  color: var(--red-hover);
}

.bulletin-table a:hover::after{
  width: 100%;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px){
  .background-container{
    padding: 0;
  }
  .contentEBLMP{
    padding: 20px 12px 32px;
  }
  .page-content{
    padding: 22px 20px 28px;
  }
  #header{
    padding: 20px 16px 18px;
  }
  #header h1{
    font-size: 22px;
  }
  #logo-ewtc img{
    max-width: 200px;
  }
  #menu-info{
    padding: 16px 16px 12px;
  }
  .btn-back-info{
    padding: 9px 18px;
    font-size: .8rem;
    margin: 0 4px 6px;
  }
  .bulletin-table th,
  .bulletin-table td{
    padding: 10px 12px;
    font-size: .88rem;
  }
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeIn{
  from{ opacity:0; transform:translateY(16px); }
  to{ opacity:1; transform:translateY(0); }
}

.winter-card{
  animation: fadeIn .6s ease both;
}

.bulletin-table{
  animation: fadeIn .6s ease .15s both;
}
