/* Specifické styly pro Bookface Kvíz Live */

.game-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.lobby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .lobby-grid {
        grid-template-columns: 1fr;
    }
}

.lobby-box {
    background: var(--color-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.lobby-box:hover {
    border-color: var(--color-primary);
}

.game-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.game-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.players-ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.players-ul li {
    background: var(--color-primary);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.playing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-bg);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.timer {
    font-size: 2rem;
    font-weight: bold;
    font-family: monospace;
    background: var(--color-bg);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--color-text);
}

.timer.warning {
    color: red;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.btn-large {
    font-size: 1.2rem;
    padding: 15px 40px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th, .results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background-color: var(--color-bg);
    font-weight: 600;
}

.results-table tr:nth-child(even) {
    background-color: rgba(249, 247, 242, 0.3);
}

.error-msg {
    animation: shake 0.4s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Specific Kvíz Live Styles */

.question-box {
    background: #fdfbf7;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    position: relative;
}

.question-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

.option-card {
    padding: 20px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    border: 4px solid transparent;
    transition: transform 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

button.option-card {
    cursor: pointer;
    width: 100%;
}

button.option-card:hover {
    transform: scale(1.02);
}

.option-a { background-color: #e74c3c; }
.option-b { background-color: #3498db; }
.option-c { background-color: #f1c40f; color: #333; }
.option-d { background-color: #2ecc71; }

.opt-letter {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin-right: 10px;
    font-size: 1rem;
}
.option-c .opt-letter {
    background: rgba(0,0,0,0.1);
}

.loader-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--color-primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-stat-bar {
    background: #eee;
    height: 20px;
    border-radius: 10px;
    margin-top: 5px;
    overflow: hidden;
    position: relative;
}

.result-stat-fill {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    transition: width 1s ease-out;
}
