/* Catchanda Botya - Screen Layouts */

/* Main Menu Screen */
#menu-screen {
  justify-content: center;
  gap: 25px;
  padding-top: 80px;
}

.menu-play-container {
  margin-bottom: 30px;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 280px;
}

/* Settings Screen */
#settings-screen {
  padding-top: 100px;
}

.settings-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
}

.settings-panel {
  width: 100%;
  max-width: 320px;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Profile Screen */
#profile-screen {
  padding-top: 100px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.profile-panel {
  width: 100%;
  max-width: 320px;
  margin-bottom: 30px;
}

.profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.profile-inputs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Levels Screen */
#levels-screen {
  padding-top: 100px;
}

.levels-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 300px;
}

/* Tutorial Screen */
#tutorial-screen {
  padding-top: 100px;
}

.tutorial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.tutorial-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  text-shadow: 
    3px 3px 0 var(--color-text-shadow),
    -1px -1px 0 var(--color-text-shadow);
  margin-bottom: 15px;
  text-align: center;
}

.tutorial-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.tutorial-slide.active {
  display: flex;
}

.tutorial-image-container {
  width: 100%;
  max-width: 280px;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(160, 220, 240, 0.9) 0%,
    rgba(120, 200, 230, 0.85) 100%
  );
  box-shadow: 
    0 5px 0 rgba(40, 120, 150, 0.5),
    0 8px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tutorial-image-container img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.tutorial-text-box {
  width: 100%;
  max-width: 300px;
  padding: 20px;
  border-radius: 15px;
  background: linear-gradient(
    180deg,
    rgba(160, 220, 240, 0.85) 0%,
    rgba(120, 200, 230, 0.8) 100%
  );
  box-shadow: 
    0 4px 0 rgba(40, 120, 150, 0.5),
    0 6px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.tutorial-text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  text-shadow: 1px 1px 0 var(--color-text-shadow);
}

.tutorial-nav {
  margin-top: 20px;
}

/* Game Screen */
#game-screen {
  padding: 0;
  background-image: url('../assets/game_bg.png');
  background-size: cover;
  background-position: center;
}

.game-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 15px 20px;
  z-index: 100;
  pointer-events: none;
}

.game-header .back-btn {
  position: relative;
  top: auto;
  left: auto;
  pointer-events: auto;
}

.game-stats {
  display: flex;
  gap: 10px;
  margin-left: auto;
  pointer-events: auto;
}

.game-area {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.ice-hole-container {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 120px;
  z-index: 5;
}

.ice-hole-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hook-line {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(
    180deg,
    #888 0%,
    #666 100%
  );
  z-index: 4;
  transition: height 0.1s linear;
}

.hook {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 60px;
  z-index: 6;
  transition: top 0.1s linear;
}

.hook img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hook.has-fish img.caught-fish {
  position: absolute;
  width: 80px;
  height: 80px;
  left: 50%;
  transform: translateX(-30%);
  top: 10px;
}

.fish-container {
  position: absolute;
  top: 200px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.fish {
  position: absolute;
  width: 100px;
  height: 100px;
  transition: none;
}

.fish img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fish.swimming-left img {
  transform: scaleX(-1);
}

/* Game Over Modal */
.game-over-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.game-over-modal.active {
  display: flex;
}

.game-over-content {
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.game-over-panel {
  margin-bottom: 20px;
}

.game-over-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  text-shadow: 
    2px 2px 0 var(--color-text-shadow),
    -1px -1px 0 var(--color-text-shadow);
  margin-bottom: 15px;
}

.game-over-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.game-over-score img {
  width: 30px;
  height: 30px;
}

.game-over-score span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  text-shadow: 2px 2px 0 var(--color-gold-dark);
}

.game-over-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text);
  text-shadow: 1px 1px 0 var(--color-text-shadow);
  margin-bottom: 5px;
}

.stat-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  text-shadow: 1px 1px 0 var(--color-text-shadow);
}

.stat-value img {
  width: 20px;
  height: 20px;
}

