/**
 * manniPhone - Nokia 3310 Styles
 * Die Legende - 126 Millionen verkaufte Einheiten
 */

/* Nokia Container */
.nokia-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* Nokia Phone Body - Das ikonische Blau */
.nokia-phone {
  width: 220px;
  background: linear-gradient(180deg, #4a6fa5 0%, #3b5998 30%, #2d4373 100%);
  border-radius: 35px 35px 45px 45px;
  padding: 20px 15px 25px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.7),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3),
    inset 2px 0 0 rgba(255, 255, 255, 0.1),
    inset -2px 0 0 rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Top Area with Speaker */
.nokia-top {
  margin-bottom: 10px;
}

.nokia-speaker {
  width: 50px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 3px;
  margin: 0 auto;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    #333 2px,
    #333 3px
  );
}

/* Screen Frame */
.nokia-screen-frame {
  background: linear-gradient(180deg, #2a3a4a 0%, #1a2a3a 100%);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 12px;
  box-shadow: 
    inset 0 3px 10px rgba(0, 0, 0, 0.5),
    0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Nokia Logo */
.nokia-logo {
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  color: #6a8ab5;
  letter-spacing: 4px;
  margin-bottom: 5px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

/* LCD Display - Grünlicher Mono-Bildschirm */
.nokia-display {
  background: #9eb7a1;
  border-radius: 4px;
  padding: 12px 10px;
  min-height: 50px;
  box-shadow: 
    inset 0 3px 8px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.1);
  /* Scanlines für authentischen Look */
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.02) 0px,
    rgba(0, 0, 0, 0.02) 1px,
    transparent 1px,
    transparent 2px
  );
}

.nokia-display-text {
  font-family: 'Nokia Cellphone FC', 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: bold;
  color: #1a2a1a;
  text-align: center;
  letter-spacing: 2px;
}

/* Softkey Labels */
.nokia-softkey-labels {
  display: flex;
  justify-content: space-between;
  padding: 5px 5px 0;
  font-size: 0.65rem;
  color: #6a8ab5;
}

/* Navigation Buttons */
.nokia-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 20px;
}

.nokia-nav-btn {
  width: 45px;
  height: 30px;
  background: linear-gradient(180deg, #3a4a5a 0%, #2a3a4a 100%);
  border: none;
  border-radius: 5px;
  color: #8aa;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 
    0 3px 0 #1a2a3a,
    0 4px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease;
}

.nokia-nav-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #1a2a3a;
}

/* Keypad */
.nokia-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 5px;
}

/* Individual Keys - Gummitasten-Look */
.nokia-key {
  background: linear-gradient(180deg, #1a1a2e 0%, #0d0d15 100%);
  border: none;
  border-radius: 10px;
  padding: 14px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 5px 0 #050508,
    0 6px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.08s ease;
  -webkit-user-select: none;
  user-select: none;
}

.nokia-key .digit {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  line-height: 1;
}

.nokia-key .letters {
  font-size: 0.5rem;
  color: #888;
  margin-top: 3px;
  letter-spacing: 0;
}

.nokia-key .icon {
  font-size: 0.6rem;
  margin-top: 2px;
}

/* Key Hover */
.nokia-key:hover {
  background: linear-gradient(180deg, #252540 0%, #15152a 100%);
}

/* Key Press Effect - Gummi-Feeling */
.nokia-key:active,
.nokia-key.pressed {
  transform: translateY(4px);
  box-shadow: 
    0 1px 0 #050508,
    0 2px 3px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Action Buttons Row */
.nokia-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  padding: 0 10px;
}

/* Action Buttons - Charakteristische Farben */
.nokia-action {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 
    0 5px 0 #050508,
    0 6px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.1s ease;
}

.nokia-call {
  background: linear-gradient(180deg, #2a5a2a 0%, #1a4a1a 100%);
}

.nokia-call:hover {
  background: linear-gradient(180deg, #3a6a3a 0%, #2a5a2a 100%);
}

.nokia-end {
  background: linear-gradient(180deg, #5a2a2a 0%, #4a1a1a 100%);
}

.nokia-end:hover {
  background: linear-gradient(180deg, #6a3a3a 0%, #5a2a2a 100%);
}

.nokia-action:active {
  transform: translateY(4px);
  box-shadow: 
    0 1px 0 #050508,
    0 2px 3px rgba(0, 0, 0, 0.4);
}

/* Bottom Area with Mic */
.nokia-bottom {
  margin-top: 15px;
}

.nokia-mic {
  width: 35px;
  height: 5px;
  background: #1a1a1a;
  border-radius: 3px;
  margin: 0 auto;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    #333 2px,
    #333 3px
  );
}

/* Responsive */
@media (max-width: 480px) {
  .nokia-phone {
    width: 200px;
    padding: 15px 12px 20px;
  }
  
  .nokia-key {
    padding: 12px 6px;
  }
  
  .nokia-key .digit {
    font-size: 1.2rem;
  }
  
  .nokia-display-text {
    font-size: 1rem;
  }
}

/* Fun Effect: Shake on Long Press (Easter Egg) */
@keyframes nokia-indestructible {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px) rotate(-1deg); }
  75% { transform: translateX(2px) rotate(1deg); }
}

.nokia-phone.shake {
  animation: nokia-indestructible 0.1s ease-in-out 3;
}

/* Snake Easter Egg Hint */
.nokia-snake-hint {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #666;
  white-space: nowrap;
}
