/* OKW GLOBAL STYLE */

:root {
  --color-primary: hsl(260,60%,50%);
  --color-primary-dark: hsl(260,60%,30%);
}


/* TŁO DLA WSZYSTKICH STRON */
body{
    background:
        linear-gradient(
            rgba(10,10,10,0.35),
            rgba(10,10,10,0.35)
        ),
        url('/static/tlo.png');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #09090b;
    /* Apply primary color gradient */
    background: linear-gradient(rgba(10,10,10,0.35), rgba(10,10,10,0.35)),
                url('/static/tlo.png'),
                linear-gradient(to bottom right, var(--color-primary), var(--color-primary-dark));
}

/* LEPSZE DOPASOWANIE DO FULL HD 1920x1080 PRZY 100% */
html{
    scroll-behavior: smooth;
}

body{
    min-height: 100vh;
    overflow-x: hidden;
}

/* GŁÓWNE KONTENERY */
main{
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* HOME - MNIEJSZE ELEMENTY, ŻEBY MIEŚCIŁO SIĘ NA FULL HD */
.home-logo{
    width: 220px;
    height: 220px;
}

.home-title{
    font-size: clamp(48px, 5vw, 76px);
    line-height: 1;
}

.home-subtitle{
    margin-bottom: 28px;
}

.home-buttons{
    margin-bottom: 32px;
}

.home-card{
    padding: 20px;
}

/* MAP VOTE - KOMPAKTOWY UKŁAD */
#maps{
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

#maps .group{
    border-radius: 10px;
}

#maps h3{
    font-size: 10px;
}

/* DRABINKA - SKALOWANIE NA FULL HD */
.bracket-scale{
    transform: scale(0.98);
    transform-origin: top center;
}

/* MNIEJSZE ODSTĘPY W DRABINCE */
.match-box{
    padding: 8px;
}

.team-slot{
    padding: 6px;
}

.player-avatar{
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.player-nick{
    font-size: 10px;
}

/* RESPONSYWNOŚĆ */
@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: hsl(260,60%,35%);
    --color-primary-dark: hsl(260,60%,20%);
  }
  body {
    background: linear-gradient(rgba(20,20,30,0.8), rgba(20,20,30,0.8)),
                url('/static/tlo.png');
    color: #e5e5e5;
  }
}

/* Empty slot styling */
.empty-slot {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px;
  text-align: center;
  color: #ccc;
  transition: transform 0.2s, box-shadow 0.2s;
}
.empty-slot:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
@media (max-width: 1200px){
    .bracket-scale{
        transform: none;
    }
}

@media (max-height: 900px){
  body {
    background: linear-gradient(rgba(10,10,10,0.35), rgba(10,10,10,0.35)),
                url('/static/tlo.png'),
                linear-gradient(to bottom right, var(--color-primary), var(--color-primary-dark));
  }
    .home-logo{
        width: 180px;
        height: 180px;
    }

    .home-buttons{
        margin-bottom: 24px;
    }

    .home-card{
        padding: 16px;
    }

    .bracket-scale{
        transform: scale(0.82);
    }
}

@media (min-width: 1920px) {
    body {
        zoom: 0.85;
    }
}

#maps{
    max-width: 1300px !important;
    margin: 0 auto;
}

#maps .group{
    max-width: 240px;
}

#maps img{
    max-height: 120px;
    object-fit: contain;
}

#maps .group{
    display: flex;
    flex-direction: column;
}

#maps .group h3{
    width: 100%;
    text-align: center;
}

#maps .group > div:last-child{
    flex-shrink:0;
}

#maps h3{
    width:100%;
    text-align:center;
    margin:0;
}

#maps h3{
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.bracket-grid {
  display: grid;
  grid-template-columns:
    minmax(280px, 1.2fr)
    minmax(220px, 1fr)
    minmax(500px, 1.8fr)
    minmax(220px, 1fr)
    minmax(280px, 1.2fr);
  gap: 24px;
  /* Grid background based on primary color */
  background: var(--color-primary);
  align-items: center;
}