/* --- SVATEBNÍ HRA: OSUDOVÉ PÁRY --- */
@import url('style.css');

.game-header {
    text-align: center;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.game-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.game-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.rules-banner {
    background: #FFFFFF;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1rem;
    text-align: center;
}

.rule-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.rule-badge {
    background: var(--accent);
    color: var(--text-white);
    font-weight: 700;
    border-radius: 50px;
    padding: 0.2rem 0.6rem;
    font-size: 0.85rem;
}

/* TEAM ENTRY BAR */
.team-bar {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-bar label {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-input-group {
    display: flex;
    gap: 0.75rem;
}

.team-input-group input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

.team-input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(195, 159, 104, 0.2);
}

/* PROGRESS OVERVIEW */
.game-progress-container {
    max-width: 1000px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(90, 105, 85, 0.06);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.progress-bar-wrap {
    flex: 1;
    height: 10px;
    background: rgba(90, 105, 85, 0.15);
    border-radius: 5px;
    margin: 0 1.5rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: width 0.4s ease;
}

/* SECTION TITLES (TRASA vs LIPINY) */
.section-divider-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.badge-location-lipiny {
    background: var(--accent);
    color: #FFFFFF;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
}

.badge-location-trasa {
    background: rgba(90, 105, 85, 0.15);
    color: var(--primary-dark);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

/* PHOTO CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.photo-card {
    background: #FFFFFF;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-header-banner {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-number {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.badge-done {
    background: var(--accent);
    color: var(--text-white);
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

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

.field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.field-pts-badge {
    font-size: 0.75rem;
    color: var(--accent-hover);
    font-weight: 600;
}

.form-field input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #FAF8F5;
    transition: var(--transition);
}

.form-field input:focus {
    background: #FFFFFF;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(90, 105, 85, 0.2);
}

/* SUBMIT BUTTON CONTAINER */
.submit-container {
    text-align: center;
    margin: 2rem auto 4rem;
    max-width: 500px;
}

.btn-submit-game {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: var(--accent);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.btn-submit-game:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ADMIN TRIGGER & MODAL */
.admin-trigger-bar {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px dashed var(--border);
}

.admin-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.82) !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
}

.admin-modal-overlay.active {
    display: flex !important;
}

.admin-modal {
    background: #FFFFFF !important;
    color: #2D392C !important;
    width: 94%;
    max-width: 1050px;
    max-height: 92vh;
    border-radius: var(--radius);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative !important;
    z-index: 100000 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 1rem;
}

.admin-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-dark);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* MANUAL PAPER TEAM ENTRY BOX */
.manual-team-box {
    background: var(--accent-light);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.manual-team-title {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.manual-form-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.manual-form-row input {
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

/* ADMIN TEAM CARDS & REVIEW TABLES */
.admin-teams-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-team-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #FFFFFF;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.admin-team-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    user-select: none;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.admin-team-head:hover {
    background: var(--accent-light);
}

.btn-collapse-toggle {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.btn-collapse-toggle:hover {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

/* SLEEK SCORE CHIPS (0b vs 1b) */
.admin-score-toggle {
    display: inline-flex;
    gap: 0.2rem;
    align-items: center;
    background: rgba(0,0,0,0.05);
    padding: 2px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.08);
    margin-top: 0.25rem;
}

.score-chip {
    border: none;
    background: transparent;
    padding: 0.2rem 0.55rem;
    border-radius: 16px;
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.score-chip:hover {
    background: rgba(255, 255, 255, 0.8);
}

.score-chip-0.selected {
    background: #E74C3C !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.35);
}

.score-chip-1.selected {
    background: #27AE60 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 5px rgba(39, 174, 96, 0.35);
}

/* PODIUM / LEADERBOARD ANIMATION */
.podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0 2rem;
    min-height: 260px;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.podium-first {
    order: 2;
    transform: scale(1.1);
}

.podium-second {
    order: 1;
}

.podium-third {
    order: 3;
}

.podium-avatar {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.podium-block {
    width: 100%;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: var(--shadow);
    padding: 1rem 0.5rem;
}

.podium-first .podium-block {
    height: 160px;
    background: linear-gradient(180deg, #E6C475 0%, #C39F68 100%);
}

.podium-second .podium-block {
    height: 120px;
    background: linear-gradient(180deg, #D4D8DD 0%, #A4A9B0 100%);
}

.podium-third .podium-block {
    height: 90px;
    background: linear-gradient(180deg, #E2A77A 0%, #C58352 100%);
}

.podium-team-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    text-align: center;
    color: var(--text-main);
    font-weight: 600;
}
