/* Fazendinha Feliz - Fidelidade Visual Colheita Feliz do Orkut */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --orkut-blue: #3b5998;
  --orkut-header-bg: linear-gradient(180deg, #4f73b8 0%, #2f477a 100%);
  --farm-grass: #4ade80;
  --farm-grass-dark: #15803d;
  --soil-brown: #78350f;
  --soil-border: #451a03;
  --gold-shiny: #f59e0b;
}

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

body {
  background: radial-gradient(circle at 50% 30%, #22c55e 0%, #14532d 100%);
  font-family: 'Nunito', sans-serif;
  color: #ffffff;
  user-select: none;
  -webkit-user-select: none;
  min-height: 100vh;
}

/* Header Estilo Orkut 2006 */
.orkut-topbar {
  background: var(--orkut-header-bg);
  border-bottom: 3px solid #1e293b;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.orkut-logo-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.orkut-logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: #fef08a;
  text-shadow: 2px 2px 0px #1e3a8a, -1px -1px 0 #1e3a8a, 1px -1px 0 #1e3a8a, -1px 1px 0 #1e3a8a;
}

.user-status-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.user-level-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(254, 240, 138, 0.4);
}

.level-star {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.level-text {
  font-family: 'Fredoka One', cursive;
  color: #fef08a;
  font-size: 1rem;
}

.xp-progress-outer {
  width: 130px;
  height: 14px;
  background: #0f172a;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.xp-progress-inner {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fef08a);
  width: 0%;
  transition: width 0.3s ease;
}

/* Orkut Action Ribbon */
.orkut-ribbon {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  border-bottom: 2px solid #86efac;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.orkut-btn {
  padding: 0.5rem 1.1rem;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  border: 2px solid #fef08a;
  border-radius: 12px;
  color: #78350f;
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 0 #92400e;
  transition: all 0.1s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.orkut-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.orkut-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #92400e;
}

.orkut-btn-purple {
  background: linear-gradient(180deg, #a855f7 0%, #7e22ce 100%);
  border-color: #f0abfc;
  color: #ffffff;
  box-shadow: 0 4px 0 #581c87;
  text-shadow: none;
}

/* Farm Canvas Stage */
.farm-container {
  max-width: 860px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.farm-background-card {
  background: linear-gradient(180deg, #86efac 0%, #22c55e 100%);
  border: 6px solid #166534;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 30px rgba(255,255,255,0.3);
  position: relative;
}

/* Tools Floating Palette */
.tools-palette {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.25rem;
  border-radius: 20px;
  border: 2px solid #f59e0b;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.tool-icon-btn {
  width: 56px;
  height: 56px;
  background: #1e293b;
  border: 3px solid #475569;
  border-radius: 16px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.tool-icon-btn:hover {
  transform: scale(1.1) translateY(-3px);
  border-color: #fbbf24;
}

.tool-icon-btn.active {
  background: #f59e0b;
  border-color: #fef08a;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
  transform: scale(1.1);
}

/* 4x4 Grid Land Plots */
.plots-grid-orkut {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .plots-grid-orkut {
    grid-template-columns: repeat(2, 1fr);
  }
}

.orkut-plot {
  aspect-ratio: 1;
  background: radial-gradient(circle, #92400e 0%, #451a03 100%);
  border: 4px solid #78350f;
  border-radius: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 15px rgba(0,0,0,0.5), inset 0 -4px 0 rgba(0,0,0,0.4);
}

.orkut-plot:hover {
  transform: translateY(-5px) scale(1.04);
  border-color: #f59e0b;
  box-shadow: 0 12px 25px rgba(245, 158, 11, 0.5);
}

.orkut-plot.ready {
  border-color: #4ade80;
  animation: plotReadyBounce 1.2s infinite alternate ease-in-out;
}

@keyframes plotReadyBounce {
  0% { transform: translateY(0); box-shadow: 0 0 15px #4ade80; }
  100% { transform: translateY(-6px); box-shadow: 0 0 30px #4ade80, 0 0 45px #22c55e; }
}

.crop-sprite {
  font-size: 3.2rem;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.6));
  transition: transform 0.2s ease;
}

.orkut-plot:hover .crop-sprite {
  transform: scale(1.15) rotate(5deg);
}

/* Modals Orkut Retro Style */
.orkut-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.orkut-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.orkut-modal-box {
  background: #1e293b;
  border: 3px solid #f59e0b;
  border-radius: 24px;
  width: 92%;
  max-width: 620px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.orkut-modal-header {
  background: linear-gradient(180deg, #3b5998 0%, #1e3a8a 100%);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #f59e0b;
}

.orkut-modal-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.35rem;
  color: #fef08a;
}
