/* =========================================
   STYLES COMMUNS - GOLFINO 2D
   =========================================== */

/* Police pixel art */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Variables CSS pour les couleurs du thème */
:root {
  --primary-green: #4a7c59;
  --secondary-green: #6b8e23;
  --grass-green: #003600;
  --sand-yellow: #f4a460;
  --water-blue: #4682b4;
  --hole-dark: #2f4f2f;
  --text-white: #ffffff;
  --text-shadow: #000000;
  --border-dark: #2c2c2c;
  --button-hover: #5a8c69;
  --ui-bg: rgba(47, 79, 47, 0.9);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  font-family: 'Press Start 2P', cursive;
  background: linear-gradient(45deg, var(--grass-green) 25%, var(--secondary-green) 25%, var(--secondary-green) 50%, var(--grass-green) 50%, var(--grass-green) 75%, var(--secondary-green) 75%);
  background-size: 40px 40px;
  animation: grass-pattern 20s linear infinite;
  overflow-x: hidden; /* Permettre le scroll vertical mais pas horizontal */
  cursor: url('../images/cursors/cursors.png'), crosshair;
}

/* Animation du motif d'herbe */
@keyframes grass-pattern {
  0% { background-position: 0px 0px; }
  100% { background-position: 40px 40px; }
}

/* Boutons principaux */
.pixel-button {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  padding: 12px 24px;
  border: 4px solid var(--border-dark);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--primary-green), var(--secondary-green));
  color: var(--text-white);
  text-shadow: 2px 2px 0px var(--text-shadow);
  cursor: url('../images/cursors/click.png') 16 16, crosshair;
  transition: all 0.2s ease;
  position: relative;
  z-index: 40;
  box-shadow: 
    0 4px 0 var(--border-dark),
    0 6px 8px rgba(0, 0, 0, 0.3);
}

.pixel-button:hover {
  background: linear-gradient(145deg, var(--button-hover), var(--primary-green));
  transform: translateY(2px);
  box-shadow: 
    0 2px 0 var(--border-dark),
    0 4px 6px rgba(0, 0, 0, 0.3);
}

.pixel-button:active {
  transform: translateY(4px);
  box-shadow: 
    0 0px 0 var(--border-dark),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive design de base */
@media (max-width: 768px) {
  .pixel-button {
    font-size: 8px;
    padding: 8px 16px;
  }
}
