/**
 * Easter Egg CSS Animations and Styles
 * Rock Movement Website
 */

/* Falling Rocks Animation */
@keyframes fallDown {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Rock Physics/Gravity Animation */
@keyframes rockPhysics {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(200px) rotate(180deg);
  }
  70% {
    transform: translateY(180px) rotate(200deg);
  }
  85% {
    transform: translateY(190px) rotate(190deg);
  }
  100% {
    transform: translateY(185px) rotate(195deg);
  }
}

/* Matrix Rain Animation */
@keyframes matrixFall {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Notification Animations */
@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Rock Paper Scissors Game Styles */
.rps-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
}

.rps-content h3 {
  margin-top: 0;
  color: #2d5016;
  font-size: 24px;
}

.rps-buttons {
  margin: 20px 0;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.rps-buttons button {
  background: #10b981;
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}

.rps-buttons button:hover {
  background: #059669;
  transform: translateY(-2px);
}

.rps-result {
  margin: 20px 0;
  padding: 15px;
  border-radius: 8px;
  min-height: 60px;
}

.rps-result p {
  margin: 5px 0;
  font-size: 16px;
}

.rps-win {
  color: #10b981 !important;
  font-weight: bold;
  font-size: 18px !important;
}

.rps-lose {
  color: #ef4444 !important;
  font-weight: bold;
}

.rps-close {
  background: #6b7280;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.rps-close:hover {
  background: #4b5563;
}

/* Matrix Rain Specific Styles */
.matrix-rain {
  font-family: 'Courier New', monospace;
  overflow: hidden;
}

.matrix-rain div {
  text-shadow: 0 0 5px #00ff00;
  line-height: 1.2;
}

/* Admin Easter Egg Page Styles */
.easter-egg-admin {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.easter-egg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.easter-egg-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.easter-egg-card:hover {
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.easter-egg-card h3 {
  color: #2d5016;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.easter-egg-card p {
  color: #6b7280;
  margin-bottom: 15px;
  font-size: 16px;
}

.easter-egg-card .trigger-info {
  background: #f3f4f6;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 16px;
  color: #374151;
  margin-bottom: 15px;
}

.easter-egg-trigger {
  background: #10b981;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  transition: background 0.3s ease;
}

.easter-egg-trigger:hover {
  background: #059669;
}

.easter-egg-trigger:active {
  transform: translateY(1px);
}

/* Dark Mode Support for Easter Eggs */
[data-theme='dark'] .rps-content {
  background: #1f2937;
  color: white;
}

[data-theme='dark'] .rps-content h3 {
  color: #10b981;
}

[data-theme='dark'] .easter-egg-card {
  background: #1f2937;
  border-color: #374151;
  color: white;
}

[data-theme='dark'] .easter-egg-card:hover {
  border-color: #10b981;
}

[data-theme='dark'] .easter-egg-card h3 {
  color: #10b981;
}

[data-theme='dark'] .easter-egg-card .trigger-info {
  background: #374151;
  color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
  .rps-content {
    padding: 20px;
    margin: 20px;
  }

  .rps-buttons {
    flex-direction: column;
    align-items: center;
  }

  .rps-buttons button {
    width: 100%;
    max-width: 200px;
  }

  .easter-egg-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .easter-egg-admin {
    padding: 15px;
  }
}

/* Special Effects */
.rock-bounce {
  animation: rockBounce 0.6s ease-in-out;
}

@keyframes rockBounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.rock-glow {
  animation: rockGlow 2s ease-in-out infinite;
}

@keyframes rockGlow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.7);
  }
}

/* Easter Egg Success Animation */
.easter-egg-success {
  animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
  0% {
    background: #10b981;
  }
  50% {
    background: #34d399;
    transform: scale(1.05);
  }
  100% {
    background: #10b981;
    transform: scale(1);
  }
}
