/* =========================================
   CLUB ATLETISME FIGUERES - CSS ARCHITECTURE
   ========================================= */

:root {
  /* Colors */
  --color-primary: #191157; /* Navy Blue */
  --color-secondary: #3b58a1; /* Blue */
  --color-accent: #cb152f; /* Red */
  --color-text-dark: #1f2937;
  --color-text-light: #f3f4f6;
  --color-background: #ffffff;
  --color-surface: #f8fafc;
  --color-border: #e2e8f0;

  /* Typography */
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Myriad Pro', sans-serif;
  --font-accent: 'TrashHand', cursive;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Transitions & Shadows */
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Border Radius */
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* =========================================
   FONTS
   ========================================= */

@font-face {
  font-family: 'Bebas Neue';
  src: url('../assets/fonts/bebas-neue-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('../assets/fonts/bebas-neue-bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Myriad Pro';
  src: url('../assets/fonts/myriad-pro-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TrashHand';
  src: url('../assets/fonts/trash-hand.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================================
   RESET & BASE
   ========================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

/* =========================================
   UTILITIES & LAYOUT
   ========================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.bg-primary { background-color: var(--color-primary); color: var(--color-text-light); }
.bg-surface { background-color: var(--color-surface); }
.font-accent { font-family: var(--font-accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  transition: all var(--transition-smooth);
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: #a81024; /* Darker red */
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}
