/*=============== EASTER EGGS & HIDDEN FEATURES STYLES ===============*/

/* Secret Menu Container */
.secret-menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.secret-menu-container.active {
  opacity: 1;
}

.secret-menu {
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 0;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: menuSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Secret Menu Header */
.secret-header {
  background: linear-gradient(135deg,
    var(--first-color) 0%,
    var(--accent-color) 100%);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 24px 24px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.secret-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.secret-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
}

.secret-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Secret Menu Content */
.secret-content {
  padding: 2rem;
  color: rgba(255, 255, 255, 0.95);
}

.secret-section {
  margin-bottom: 2rem;
}

.secret-section:last-child {
  margin-bottom: 0;
}

.secret-section h4 {
  color: var(--first-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Secret Facts List */
.secret-facts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.secret-facts li {
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--first-color);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.secret-facts li:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

/* Secret Buttons */
.secret-btn {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  margin: 0.75rem 0;
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.secret-btn:hover {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.3) 0%,
    rgba(168, 85, 247, 0.3) 100%);
  border-color: var(--first-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

/* Powerup Grid */
.powerup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.powerup-btn {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.powerup-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--first-color);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Typing Game */
.typing-game {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  z-index: 100001;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: gamePopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes gamePopIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.game-header {
  background: linear-gradient(135deg,
    var(--first-color) 0%,
    var(--accent-color) 100%);
  padding: 1.25rem 1.5rem;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

.game-header button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.game-header button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.game-content {
  padding: 1.5rem;
}

.code-to-type {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 12px;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: #4ade80;
  margin-bottom: 1rem;
  border: 1px solid rgba(74, 222, 128, 0.3);
  text-align: center;
  letter-spacing: 1px;
}

.typing-input {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  transition: all 0.3s;
  margin-bottom: 1rem;
}

.typing-input:focus {
  outline: none;
  border-color: var(--first-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.game-stats {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Developer Stats */
.dev-stats {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  z-index: 100001;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: statsSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes statsSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.stats-header {
  background: linear-gradient(135deg,
    var(--first-color) 0%,
    var(--accent-color) 100%);
  padding: 1.25rem 1.5rem;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

.stats-header button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--first-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: capitalize;
}

/* Scrollbar for Secret Menu */
.secret-menu::-webkit-scrollbar {
  width: 8px;
}

.secret-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.secret-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.secret-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .secret-menu {
    max-width: 95%;
  }

  .secret-header h3 {
    font-size: 1.2rem;
  }

  .secret-content {
    padding: 1.5rem;
  }

  .powerup-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .game-content {
    padding: 1rem;
  }

  .code-to-type {
    font-size: 0.85rem;
  }
}

/* Console Easter Egg Styling */
@media (prefers-reduced-motion: no-preference) {
  .secret-menu-container.active .secret-menu {
    animation: menuSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}
