/* style.css - STYLES FOR 3-LIFE PRECISION STREAK GAME (Wzorowane na 170 Out) */

/* Overriding container width for the GAME */
.container.wide-game {
    max-width: 1215px;
}

/* --- OGÓLNE STYLE GÓRNEGO BLOKU (Lives/Title) --- */
.title-and-round-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding-bottom: 10px;
}

.game-title {
    color: #C9FF00;
    font-size: 2.2em;
    font-weight: 700;
    text-align: left;
    margin: 0;
}

/* Styl dla wyświetlania Żyć/Rundy */
#lives-display {
    font-size: 1.8em;
    color: #C9FF00 !important;
    margin: 0;
    font-weight: 700;
    text-align: right;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}


/* --- WYŚWIETLANIE WYNIKÓW (Target & Streak) --- */
.score-display-container {
    display: flex;
    justify-content: space-around;
    gap: 20px !important;
    margin-bottom: 10px !important;
}

.score-card, .darts-left-card {
  flex: 1;
  background-color: #1D2025;
  border-radius: 8px;
  padding: 25px 70px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#target-segment-display {
    font-size: 2.5em;
    font-weight: 700;
    /* Zmniejszenie marginesu górnego, aby zredukować przestrzeń */
    margin-bottom: 0px !important;
    color: #fff;
}

#current-streak{
    font-size: 2.5em;
    /* Zmniejszenie marginesu górnego, aby zredukować przestrzeń */
    margin-bottom: 0px !important;
}

/* --- NOWE STYLE DLA INPUTU RZUTEK (Z 170 Out) --- */

.darts-input-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding: 10px 0 20px 0;
}

.dart-column {
  flex: 1;
  min-width: 100px;
  background-color: #1D2025;
  padding: 12px 12px 12px 12px;
  border-radius: 8px;
  text-align: center;
}

.dart-column h3 {
    font-size: 1.5em;
    color: #ffffff;
    margin: 10px 0 10px 0;
    font-weight: 600;
    margin-bottom: 20px;
}

.dart-column p {
    margin-top: 0;
    margin-bottom: 20px;
}

.dart-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 5px;
}

.dart-buttons button {
  width: 100%;
  height: 60px;
  padding: 15px 10px;
  margin: 0;
  font-size: 1.1em;
  border-radius: 6px;
  opacity: 1;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
  font-weight: bold;
}

/* COLOR SCHEME FOR HIT/MISS (Z 170 Out) */
.hit-btn {
    background-color: #24262B;
    color: white;
}
.hit-btn:hover {
    background-color: #022F07;
}
.hit-btn.active {
    background-color: #11671B; /* ZIELONY */
}
.hit-btn.active:hover {
    background-color: #157D21;
}

.miss-btn {
    background-color: #24262B;
    color: white;
}
.miss-btn:hover {
    background-color: #3B0808;
}
.miss-btn.active {
    background-color: #750909; /* CZERWONY */
}
.miss-btn.active:hover {
    background-color: #890E0E;
}

/* --- CONTROL BUTTON STYLES (Dla Register i Undo) --- */
.game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#register-round-btn {
    width: auto;
    height: 80px;
    margin: 10px auto 10px auto;
    font-size: 1.1em;
    background-color: #C9FF00;
    color: #212121;
    font-weight: bold;
    padding: 12px 30px;
    transition: background-color 0.2s;
}

#register-round-btn:hover {
    background-color: #D4FF33;
    transform: none;
    box-shadow: none;
}

#undo-round-btn {
    background-color: transparent;
    border: none;
    color: #40495D;
    width: 100%;
    padding: 5px 0;
    font-size: 0.9em;
    font-weight: 400;
    text-decoration: none;
    max-width: 40%;
    margin: 0 auto;
    display: block;
}

#undo-round-btn:hover {
    background-color: transparent;
    color: #76c7c0;
    transform: none;
    box-shadow: none;
}

.info-block {
  background-color: #1D2025;
  padding: 15px 25px;
  border-radius: 8px;
  text-align: left;
  margin-top: 50px;
}
.info-block h4 {
    color: #C9FF00;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
}
.info-block p {
    font-size: 0.9em;
    color: #ffffff;
}

@media (min-width: 601px) {
    .container.wide-game .game-controls {
        width: 100%;
        margin: 0;
        flex-direction: column;
        align-items: center;
    }

    #register-round-btn {
        width: calc((100% - 30px) / 3);
        max-width: none;
        margin: 10px 0;
    }

    #undo-round-btn {
        width: calc((100% - 30px) / 3);
        max-width: none;
        margin: 0;
    }
}


/* NOWE STYLE DLA MODALA FEEDBACKU (Z 170 Out) */
.round-feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.3s ease-in-out;
    pointer-events: none;
    display: none;
}

.round-feedback-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.round-feedback-modal.show:not(.perfect-catch-bg) {
    background-color: rgba(15, 15, 15, 0.95);
    background-size: cover;
}

.round-feedback-modal .feedback-content {
    text-align: center;
    padding: 0px;
    min-width: 300px;
    min-height: 100px;
}


.round-feedback-modal h2 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    border-bottom: none !important;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}


/* --- KLASY KOLORÓW DLA FEEDBACKU --- */
.round-feedback-modal h2.keep-throwing {
    color: #FFCA1A; /* Żółty (dla MISS) */
    background-color: transparent;
    padding: 0;
}

.round-feedback-modal h2.not-bad {
    color: #88DD00;
    background-color: transparent;
    padding: 0;
}

.round-feedback-modal h2.amazing {
    color: #00FF95; /* Zielony (dla SUCCESS) */
    background-color: transparent;
    padding: 0;
}

.round-feedback-modal h2.perfect-catch {
    color: #212121;
    background-color: transparent;
    padding: 0;
}
