/* ============================= */
/* AUVESTA WM TIPPSPIEL DESIGN */
/* ============================= */


/* ---------- ROOT COLORS ---------- */

:root{
--gold:#d4af37;
--gold-light:#f3d47a;

--black:#000;
--dark:#0b0b0b;

--grey:#888;
--grey-light:#ccc;

--white:#fff;

--success:#28c76f;
--danger:#ff4d4f;
}


/* ---------- BODY ---------- */

body{
margin:0;
font-family:system-ui;
background:radial-gradient(circle at top,#1a1a1a,#000 70%);
color:white;
}

#app{
min-height:calc(100vh - 70px);
position:relative;
z-index:1;
}


/* ---------- HEADER ---------- */

.header{
padding:15px;
display:flex;
justify-content:center;
align-items:center;
border-bottom:1px solid #222;
}

.logo img{
height:26px;
opacity:0.95;
}


/* ---------- START SCREEN ---------- */

.startScreen{
min-height:calc(100vh - 70px);
display:flex;
flex-direction:column;
padding:30px 20px;
padding-bottom:90px;
}


/* WM HERO IMAGE */

.startHero{
display:flex;
justify-content:center;
align-items:center;
flex:1;
}

.wmLogo{
width:100%;
margin:auto;
position:relative;
max-width: 400px;
}

.wmLogo::after{
content:"";
position:absolute;
top:50%;
left:50%;
width:100%;
transform:translate(-50%,-50%);
background:radial-gradient(circle, rgba(212,175,55,0.35), transparent 70%);
filter:blur(40px);
z-index:-1;
}


/* HERO TEXT */

.heroContent{
margin-top:auto;
text-align:left;
z-index:2;
}

.heroContent h1{
font-size:34px;
font-weight:700;
line-height:1.1;
margin-bottom:10px;
}

.heroContent p{
color:#bbb;
font-size:15px;
margin-bottom:25px;
}


/* START BUTTON */

.startButton{

position:relative;

width:100%;
height:60px;

border-radius:40px;
border:none;

background:linear-gradient(
90deg,
#d4af37,
#f3d47a
);

color:#000;

font-weight:700;
font-size:17px;

box-shadow:
0 10px 30px rgba(0,0,0,0.6),
0 0 20px rgba(212,175,55,0.4);

overflow:hidden;

cursor:pointer;

}

.startButton::after{

content:"⚽";

position:absolute;

font-size:22px;

top:50%;
left:-40px;

transform:translateY(-50%);

animation:ballRun 4s linear infinite;

}


@keyframes ballRun{

0%{
left:-40px;
}

100%{
left:110%;
}

}


.startButton::after{

content:"⚽";

position:absolute;

font-size:22px;

top:50%;
left:-40px;

transform:translateY(-50%);

animation:ballRun 4s linear infinite,
           ballSpin 1s linear infinite;

}

@keyframes ballSpin{
0%{ transform:translateY(-50%) rotate(0deg); }
100%{ transform:translateY(-50%) rotate(360deg); }
}


/* ---------- CONTAINER ---------- */

.container{
padding:20px;
padding-bottom:100px;
max-width:500px;
margin:auto;
}


/* ---------- TYPOGRAPHY ---------- */

.title{
font-size:24px;
font-weight:600;
margin-bottom:15px;
}

.subtitle{
font-size:14px;
color:var(--grey);
}

.text{
font-size:16px;
}

.small{
font-size:12px;
color:var(--grey);
}


/* ---------- CARDS ---------- */

.card{
background:linear-gradient(145deg,rgba(40,40,40,0.9),rgba(20,20,20,0.9));
border-radius:22px;
padding:18px;
margin-bottom:18px;
box-shadow:0 12px 30px rgba(0,0,0,0.6);
border:1px solid rgba(255,255,255,0.05);
backdrop-filter:blur(10px);
transition:0.2s ease;
}

.card:active{
transform:scale(0.98);
}


/* ---------- BUTTONS ---------- */

button{
cursor:pointer;
transition:0.2s ease;
}

button:active{
transform:scale(0.96);
}


/* PRIMARY BUTTON */

.btn-primary{
width:100%;
height:48px;
border:none;
border-radius:14px;
background:linear-gradient(90deg,var(--gold),var(--gold-light));
color:black;
font-weight:600;
}


/* SECONDARY BUTTON */

.btn-secondary{
width:100%;
height:48px;
background:#1c1c1c;
border:none;
border-radius:14px;
color:white;
font-size:15px;
margin-top:12px;
box-shadow:0 3px 10px rgba(0,0,0,0.4);
}

.btn-secondary:hover{
background:#2a2a2a;
}

.logout{
background:#2a0000;
color:#ff6b6b;
}


/* ---------- INPUT ---------- */

.input{
width:100%;
height:45px;
background:#111;
border:1px solid #333;
border-radius:10px;
padding-left:12px;
color:white;
margin-bottom:12px;
}


/* ---------- MATCH CARD ---------- */

.matchCard{
background:linear-gradient(145deg,rgba(40,40,40,0.9),rgba(20,20,20,0.9));
border-radius:22px;
padding:18px;
margin-bottom:18px;
box-shadow:0 12px 30px rgba(0,0,0,0.6);
border:1px solid rgba(255,255,255,0.05);
}

.teamRow{
display:flex;
justify-content:space-between;
align-items:center;
font-size:17px;
font-weight:500;
}

.team{
display:flex;
align-items:center;
gap:10px;
}

.flag{
width:30px;
height:22px;
border-radius:4px;
}

.matchTime{
text-align:center;
color:var(--grey);
font-size:13px;
margin-top:6px;
}


/* ---------- SCORE INPUT ---------- */

.scoreInput{
display:flex;
justify-content:center;
gap:12px;
margin-top:14px;
}

.scoreInput input{
width:50px;
height:50px;
background:black;
border:1px solid #333;
border-radius:12px;
color:white;
text-align:center;
font-size:20px;
}

.saveBtn{
width:100%;
height:48px;
margin-top:14px;
border:none;
border-radius:14px;
background:linear-gradient(90deg,var(--gold),var(--gold-light));
color:black;
font-weight:600;
}


/* ---------- LEADERBOARD ---------- */

.rankRow{
display:flex;
justify-content:space-between;
align-items:center;
padding:14px 6px;
font-size:16px;
border-bottom:1px solid #222;
}

.rankRow:last-child{
border-bottom:none;
}

.rankTop{
background:linear-gradient(90deg,rgba(212,175,55,0.2),transparent);
border-radius:12px;
}

.rankNumber{
color:var(--gold);
font-weight:600;
}


/* ---------- PROFILE ---------- */

.profileBox{
background:linear-gradient(145deg,#1b1b1b,#0d0d0d);
border-radius:22px;
padding:18px;
margin-bottom:20px;
box-shadow:0 10px 25px rgba(0,0,0,0.6);
border:1px solid rgba(255,255,255,0.05);
}


/* ---------- LANGUAGE SELECTOR ---------- */

.languageItem{
display:flex;
align-items:center;
gap:12px;
padding:14px;
border-radius:14px;
background:#151515;
margin-bottom:12px;
transition:0.2s ease;
}

.languageItem:hover{
background:#1d1d1d;
}


/* ---------- BOTTOM NAVIGATION ---------- */

.bottomNav{
position:fixed;
bottom:0;
left:0;
width:100%;
height:70px;
background:#111;
display:flex;
justify-content:space-around;
align-items:center;
border-top:1px solid #222;
z-index:9999;
}

.navItem{
display:flex;
flex-direction:column;
align-items:center;
font-size:11px;
color:#aaa;
gap:4px;
}

.navItem i{
font-size:20px;
}

.navItem.active{
color:var(--gold);
}

.navItem.active i{
transform:scale(1.2);
}


/* ---------- FLEX UTILITIES ---------- */

.flex{display:flex;}
.space-between{justify-content:space-between;}
.center{justify-content:center;align-items:center;}


#app{
min-height:calc(100vh - 70px);
position:relative;
z-index:1;
}

.bottomNav{
z-index:9999;
}