/* ============================= */
/* 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:64px;
opacity:1;
}


/* ---------- 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:30px;
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;
}

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

.header{
display:flex;
align-items:center;
justify-content:space-between;
padding:0px 0px 5px 5px;
}

.headerLang select{
background:#111;
color:#fff;
border:1px solid #333;
border-radius:10px;
padding:6px 10px;
font-size:14px;
outline:none;
}

.headerLang select option{
background:#111;
color:#fff;
}





.langDropdown{
    position:relative;
}

.langBtn{
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#111;
    border:1px solid #2a2a2a;
    padding:0;
    cursor:pointer;
}

.flagIcon{
    width:30px;
    height:30px;
    border-radius:50%;
    object-fit:cover;
    display:block;
}

.flagItem{
    width:30px;
    height:30px;
    border-radius:50%;
    object-fit:cover;
    display:block;
}

.langMenu div{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px;
    cursor:pointer;
}

.langMenu{
    position:absolute;
    top:60px;
    right:0;
    width:70px;
    background:#111;
    border:1px solid #2a2a2a;
    border-radius:20px;
    padding:8px;
    display:none;
    flex-direction:column;
    gap:8px;
    z-index:999;
}

.langMenu div{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:8px 0;
    cursor:pointer;
}

.langMenu.active{
    display:flex;
}




.logo{
    float: left;
}


.headerActions{
    display:flex;
    align-items:center;
    gap:10px;
    float: right;
    margin-top:10px;
}

.logoutBtn{
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#111;
    border:1px solid #2a2a2a;
    color:#fff;
    font-size:20px;
    cursor:pointer;
    transition:0.2s;
}

.logoutBtn:hover{
    background:#1b1b1b;
    border-color:#444;
}




header.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #111;
}


body {
    padding-top: 100px;
}


.header .container{

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

    gap:14px;

    padding:0px 0px 5px 0px !important;
}

.logo{

    flex-shrink:0;
}

.logo img {
  height: 65px;
  width: auto;
  margin-top: 10px; 
}

.headerActions{

    display:flex;
    align-items:center;

  

    margin-left:auto;
}

.ranking-head{

    display:flex;
    align-items:center;

    gap:14px;

    padding:10px 10px;

    border-radius:22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.03),
            rgba(212,175,55,0.08)
        );

    border:1px solid rgba(212,175,55,0.14);

    box-shadow:
        0 6px 20px rgba(0,0,0,0.3);
}

.ranking-points-wrap,
.ranking-rank-wrap{

    display:flex;
    flex-direction:column;

    justify-content:center;
}

.ranking-label{

    font-size:10px;
    font-weight:600;

    text-transform:uppercase;
    letter-spacing:1px;

    color:#888;

    margin-bottom:4px;
}

.platzpunkte{

    font-size:16px;
    line-height:1;

    font-weight:900;

    color:var(--gold);
}

.ranking-divider{

    width:1px;
    height:42px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(255,255,255,0.14),
            transparent
        );
}

.ranking-rank{

    display:flex;
    align-items:flex-end;

    gap:2px;
}

.ranking-hash{

    font-size:18px;
    line-height:1;

    font-weight:700;

    color:rgba(255,255,255,0.25);

    margin-bottom:4px;
}

.platz{

    font-size:26px;
    line-height:0.9;

    font-weight:900;

    color:var(--gold);

    text-shadow:
        0 0 14px rgba(212,175,55,0.22);
}

.langBtn,
.logoutBtn{

    width:52px;
    height:52px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(255,255,255,0.02);

    border:1px solid rgba(255,255,255,0.08);

    flex-shrink:0;
}

.logoutBtn{

    color:#fff;
    font-size:22px;
}





.header{
    position:relative;
    z-index:9999;
}

.langDropdown{
    position:relative;
    z-index:99999;
}

.langMenu{

    position:absolute;

    top:65px;
    right:0;

    z-index:999999;

    max-height:320px;
    overflow-y:auto;
}