/* Limonagrio Landing Page Styles */

:root {
  --lemon-yellow: #FFE135;
  --lemon-light: #FFF9C4;
  --lemon-dark: #F9A825;
  --leaf-green: #7CB342;
  --leaf-dark: #558B2F;
  --sky-blue: #87CEEB;
  --white: #FFFFFF;
  --text-dark: #2E2E2E;
  --text-muted: #5A5A5A;
  --platformer-accent: #FF6B6B;
  --adventure-accent: #4ECDC4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(135deg, var(--lemon-light) 0%, var(--white) 50%, #E8F5E9 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Floating background decorations */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.lemon, .leaf {
  position: absolute;
  font-size: 3rem;
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.lemon-1 { top: 10%; left: 5%; animation-delay: 0s; }
.lemon-2 { top: 60%; left: 90%; animation-delay: -5s; font-size: 4rem; }
.lemon-3 { top: 80%; left: 15%; animation-delay: -10s; font-size: 2.5rem; }
.lemon-4 { top: 30%; left: 85%; animation-delay: -15s; }
.leaf-1 { top: 20%; left: 80%; animation-delay: -7s; font-size: 2rem; }
.leaf-2 { top: 70%; left: 8%; animation-delay: -12s; font-size: 2.5rem; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(20px) rotate(-5deg); }
}

/* Main container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-dark);
  text-shadow: 3px 3px 0 var(--lemon-yellow), 5px 5px 0 var(--lemon-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.lemon-icon {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

.lemon-icon:last-child {
  animation-delay: -1s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  flex: 1;
  align-items: stretch;
}

@media (max-width: 900px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
}

/* Game cards */
.game-card {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.game-card:nth-child(1) { animation-delay: 0.2s; }
.game-card:nth-child(2) { animation-delay: 0.4s; }

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

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.platformer .card-glow {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
}

.adventure .card-glow {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
}

.game-card:hover .card-glow {
  opacity: 1;
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Game preview area */
.game-preview {
  height: 200px;
  position: relative;
  overflow: hidden;
}

/* Platformer preview - Pixel art style */
.platformer-preview {
  background: linear-gradient(180deg, #87CEEB 0%, #B3E5FC 100%);
}

.pixel-art {
  position: relative;
  width: 100%;
  height: 100%;
}

.pixel-lemon {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--lemon-yellow);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  bottom: 100px;
  left: 30%;
  box-shadow: inset -5px -5px 0 var(--lemon-dark);
  animation: jump 1.5s ease-in-out infinite;
}

@keyframes jump {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

.pixel-platform {
  position: absolute;
  height: 20px;
  background: linear-gradient(180deg, #8D6E63 0%, #5D4037 100%);
  border-radius: 4px;
}

.platform-1 { width: 80px; bottom: 60px; left: 20%; }
.platform-2 { width: 60px; bottom: 100px; left: 50%; }
.platform-3 { width: 100px; bottom: 40px; left: 60%; }

.pixel-coin {
  position: absolute;
  color: var(--lemon-yellow);
  font-size: 1.5rem;
  animation: spin 2s linear infinite;
}

.coin-1 { top: 60px; left: 55%; }
.coin-2 { top: 40px; left: 75%; animation-delay: -1s; }

@keyframes spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* Adventure preview - Sierra style */
.adventure-preview {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  font-family: 'VT323', monospace;
}

.sierra-art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sierra-scene {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.sierra-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #4A90A4 0%, #87CEEB 60%, #B3E5FC 100%);
}

.sierra-sun {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--lemon-yellow);
  border-radius: 50%;
  top: 20px;
  right: 30px;
  box-shadow: 0 0 20px var(--lemon-yellow);
}

.sierra-stand {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
}

.stand-roof {
  width: 120px;
  height: 25px;
  background: linear-gradient(180deg, #E53935 0%, #C62828 100%);
  margin-left: -10px;
  clip-path: polygon(10% 100%, 0% 0%, 100% 0%, 90% 100%);
}

.stand-counter {
  width: 100px;
  height: 40px;
  background: linear-gradient(180deg, #FFCC80 0%, #FFB74D 100%);
  border: 3px solid #8D6E63;
}

.stand-sign {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lemon-yellow);
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: bold;
  color: var(--text-dark);
  border-radius: 2px;
  font-family: 'Fredoka', sans-serif;
}

.sierra-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(180deg, #81C784 0%, #66BB6A 100%);
}

.command-line {
  background: #000;
  padding: 8px 12px;
  color: #00FF00;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.prompt {
  color: #00FF00;
}

.typing {
  animation: typing 3s steps(15) infinite;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
}

@keyframes typing {
  0%, 10% { width: 0; }
  50%, 90% { width: 15ch; }
  100% { width: 0; }
}

.cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Game info section */
.game-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.game-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.game-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
}

.platformer .game-badge {
  background: linear-gradient(135deg, #FFCDD2 0%, #FFEBEE 100%);
  color: #C62828;
}

.adventure .game-badge {
  background: linear-gradient(135deg, #B2DFDB 0%, #E0F2F1 100%);
  color: #00695C;
}

.game-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: auto;
}

.platformer .play-button {
  background: linear-gradient(135deg, var(--platformer-accent) 0%, #FF8E8E 100%);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.adventure .play-button {
  background: linear-gradient(135deg, var(--adventure-accent) 0%, #7FDBDA 100%);
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.game-card:hover .play-button {
  transform: scale(1.05);
}

.platformer:hover .play-button {
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.adventure:hover .play-button {
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.5);
}

.arrow {
  transition: transform 0.2s ease;
}

.game-card:hover .arrow {
  transform: translateX(5px);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 1rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }
  
  .header {
    margin-bottom: 2rem;
  }
  
  .title {
    font-size: 2rem;
    flex-wrap: wrap;
  }
  
  .game-preview {
    height: 160px;
  }
  
  .game-info {
    padding: 1rem;
  }
  
  .game-title {
    font-size: 1.25rem;
  }
  
  .games-grid {
    gap: 1.5rem;
  }
}
