/* Base Styles - La Remolatxa */

/* Variables CSS */
:root {
  --primary-color: rgb(154, 51, 108);
  --primary-hover: rgb(134, 45, 94);
  --secondary-color: rgb(131, 183, 133);
  --secondary-hover: rgb(111, 167, 113);
  --primary-alpha-03: rgba(154, 51, 108, 0.03);
  --primary-alpha-10: rgba(154, 51, 108, 0.1);
  --primary-alpha-15: rgba(154, 51, 108, 0.15);
  --secondary-alpha-05: rgba(131, 183, 133, 0.05);
  --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Base */
body {
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

/* Scroll suau */
html {
  scroll-behavior: smooth;
}

/* Cards base */
.card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Alertes */
.alert {
  border-radius: 8px;
  border: none;
  padding: 1rem;
}

/* Badges */
.badge {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

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

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

/* Scrollbar estilitzat per webkit */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Estils originals mantinguts */
.week-grid td {
  vertical-align: top;
  width: 14.285%;
}

.is-today {
  outline: 2px solid var(--primary-color);
  border-radius: 0.25rem;
  padding: 0.25rem;
}

.small-muted {
  color: #6c757d;
}

.menu-block {
  background: #fbfaf5;
  border-radius: 0.5rem;
  padding: 0.5rem 0.5rem 0 0.5rem;
}

.menu-group {
  border-top: 2px dotted #888;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.menu-group:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.menu-title {
  font-weight: 800;
  letter-spacing: 0.02em;
}
