/* ============================================================
    DARKTERM V3 - SEKCE APLIKACE (CORE.css)
   ============================================================ */

body {
    	background: radial-gradient(circle at center, 
        	#000000 0%,      /* Singularita - absolutní střed */
        	#000000 10%,     /* Rozšíření tmavého jádra */
        	#121212 35%,     /* První náznak světla */
        	#1a1a1a 70%,     /* Tvá hlavní barva DarkTerm */
        	#080808 100%     /* Okraje monitoru jdou opět do tmy */
    	);
    	background-attachment: fixed;
    	font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    	margin: 0;
    	color: white;
    	display: flex;
    	flex-direction: column;
    	min-height: 100vh;
    	overflow-x: hidden;
}
html { 
	scroll-behavior: smooth; 
}





.topBlock {
    display: flex;
    justify-content: space-between; /* Rozdělí levou, střední a pravou část */
    align-items: center;
    padding: 0 25px;
    height: 70px;
    background-color: #252525;
    border-bottom: 2px solid #00d4ff;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 2000;
    box-sizing: border-box;
}

/* Pravá skupina pro coiny a uživatele */
.rightGroup {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.leftGroup {
  	display: flex;
  	flex-direction: column;
  	line-height: 1.2;
}
.pageTitle {
    	font-size: 22px;
    	font-weight: 900;
    	color: #00d4ff !important;
    	letter-spacing: 1px;
    	text-transform: uppercase;
}




.coin-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3); 
    padding: 5px 12px;
    margin-left: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 204, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer; /* Změníme na ruku (pointer) */
    text-decoration: none; /* Odstraní případné podtržení odkazu */
}

.coin-wrapper:hover {
    border-color: #ffcc00;
    background: rgba(255, 204, 0, 0.05);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.1);
}

.coin-icon {
    width: 18px;
    height: 18px;
    background: #ffcc00;
    color: #000;
    border-radius: 2px; /* Mírně zaoblený čtverec ladí víc k V3 designu */
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-right: 10px;
}

.coin-amount {
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.coin-label {
    color: #ffcc00;
    font-size: 10px;
    font-weight: 900;
    margin-left: 5px;
    text-transform: uppercase;
}

/* Animace pulzu při přičtení */
.coin-pulse {
    animation: coinPulseV3 0.6s ease;
}

@keyframes coinPulseV3 {
    0% { transform: scale(1); border-color: #ffcc00; }
    50% { transform: scale(1.05); border-color: #fff; box-shadow: 0 0 15px #ffcc00; }
    100% { transform: scale(1); border-color: rgba(255, 204, 0, 0.4); }
}

/* Úprava existujícího listItem v topBlocku aby ladil */
.listItem {
  color: #888;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}




/* UŽIVATELSKÝ PANEL V LIŠTĚ */
.user-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-status {
    	text-align: right;
    	line-height: 1.2;
}

.u-prefix {
    	color: #888;
    	font-size: 10px;
    	display: block;
    	text-transform: uppercase;
    	letter-spacing: 0.5px;
}

.user-name {
    	color: #00d4ff;
    	font-weight: bold;
    	font-size: 14px;
}
/* TLAČÍTKO ODHLÁSIT (HORNÍ) */
.logoutBtnTop {
    	background: transparent;
    	color: #ff4444 !important;
    	border: 1px solid #ff4444;
    	text-decoration: none;
    	font-weight: bold;
    	font-size: 11px;
    	padding: 6px 14px;
    	border-radius: 4px;
    	transition: 0.3s ease;
    	text-transform: uppercase;
}

.logoutBtnTop:hover {
    	background: #ff4444;
    	color: white !important;
    	box-shadow: 0 0 12px rgba(255, 68, 68, 0.4);
    	transform: translateY(-1px);
}




























.bottomBar {
    	position: fixed;
    	bottom: 0; left: 0;
    	width: 100%; height: 55px;
    	background-color: #252525;
    	border-top: 2px solid #00d4ff;
    	display: flex;
    	justify-content: space-between;
    	align-items: center;
    	padding: 0 25px;
    	box-sizing: border-box;
    	z-index: 2000;
}
.backBtnFixed {
  	color: #00d4ff !important;
  	text-decoration: none;
  	font-weight: 800;
  	letter-spacing: 1px;
  	font-size: 13px;
  	transition: 0.2s;
}
.backBtnFixed:hover {
    	text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    	transform: translateX(-5px);
}
.bottomBarInfo {
  	color: #888;
  	font-size: 10px;
  	text-transform: uppercase;
}








@media (max-width: 768px) {
    /* Zmenšíme horní lištu, aby nezabírala místo pro hudbu */
.topBlock {
        padding: 0 10px;
        height: 65px; /* Trochu vyšší pro jistotu */
    }

    .pageTitle {
        font-size: 18px;
        margin-right: 5px;
    }



.user-name {
        max-width: 80px;
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
        font-size: 13px;
    }

    /* Coiny na mobilu trochu kompaktnější */
.coin-wrapper {
        display: none !important;
    }


    
    .coin-label {
        display: none; /* "Coins" text na mobilu pryč, stačí ikona a číslo */
    }

    /* Tlačítko odhlásit - na mobilu ho uděláme víc jako ikonu nebo menší */
    .logoutBtnTop {
        padding: 5px 8px !important;
        font-size: 10px !important;
        border-radius: 4px;
        margin-left: 5px;
    }

    /* Spodní lišta - zvětšíme výšku pro trefení prstem */
    .bottomBar {
        height: 65px;
        padding-bottom: env(safe-area-inset-bottom); /* Fix pro iPhone */
    }

    .backBtnFixed {
        font-size: 16px; /* Větší "ZPĚT" pro palec */
        padding: 10px;
    }

    .bottomBarInfo {
        display: none; /* Info text na mobilu pryč, zbytečný šum */
    }

    /* Úprava hlavního obsahu, aby nebyl pod lištami */
    body {
        padding-top: 60px; /* Výška topBlock */
        padding-bottom: 65px; /* Výška bottomBar */
    }
}




