@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* { box-sizing: border-box; }

body {
    background: #0f2027;
    background: linear-gradient(to right, #2c5364, #203a43, #0f2027);
    font-family: 'Poppins', sans-serif;
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; margin: 0; padding: 20px;
    color: #333;
}

.main-layout {
    display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
    max-width: 1000px; width: 100%;
}

.quiz-container, .leaderboard-card {
    background: white; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.quiz-container { width: 550px; }
.leaderboard-card { width: 280px; padding: 20px; color: #444; }

/* Statistiky a Nápovědy */
.stats-bar, .hints-bar {
    display: flex; justify-content: space-between;
    padding: 15px 30px; background: #f8f9fa;
    border-bottom: 1px solid #eee; font-weight: bold;
}

.hints-bar { background: #eee; gap: 10px; }
.hint-btn {
    flex: 1; padding: 8px; border: none; border-radius: 8px;
    background: white; cursor: pointer; font-weight: bold;
    transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hint-btn:hover:not(:disabled) { background: #3498db; color: white; }
.hint-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.quiz-header { padding: 2rem; }
h2 { text-align: center; margin-bottom: 1.5rem; font-size: 1.4rem; }

ul { list-style: none; padding: 0; }
ul li { margin: 12px 0; }
ul li label {
    padding: 15px; border: 2px solid #eee; border-radius: 12px;
    display: block; cursor: pointer; transition: 0.2s;
}
ul li label:hover { background: #f0f7ff; border-color: #3498db; }

/* Speciální třídy pro nápovědy */
.hidden-answer { visibility: hidden; pointer-events: none; }
.correct-highlight { background-color: #d4edda !important; border-color: #28a745 !important; }

button#submit {
    width: 100%; border: none; background: #3498db; color: white;
    padding: 20px; font-size: 1.2rem; font-weight: bold; cursor: pointer;
}
button#submit:hover { background: #2980b9; }

/* Žebříček */
h3 { margin-top: 0; border-bottom: 2px solid #3498db; padding-bottom: 10px; }
.score-entry {
    display: flex; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid #eee;
}