/* ShadCN UI Variables - Basketball Club Theme */
:root {
  --radius: 0.65rem;
  --background: #ffffff;
  --foreground: #242424;
  --card: #ffffff;
  --card-foreground: #242424;
  --popover: #ffffff;
  --popover-foreground: #242424;
  --primary: #15803d;
  --primary-foreground: #fafafa;
  --secondary: #f7f7f7;
  --secondary-foreground: #353535;
  --muted: #f7f7f7;
  --muted-foreground: #8d8d8d;
  --accent: #f7f7f7;
  --accent-foreground: #353535;
  --destructive: #dc2626;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: #15803d;
  --chart-1: #f59e0b;
  --chart-2: #06b6d4;
  --chart-3: #3b82f6;
  --chart-4: #84cc16;
  --chart-5: #f97316;
  --sidebar: #fafafa;
  --sidebar-foreground: #242424;
  --sidebar-primary: #15803d;
  --sidebar-primary-foreground: #fafafa;
  --sidebar-accent: #f7f7f7;
  --sidebar-accent-foreground: #353535;
  --sidebar-border: #e5e5e5;
  --sidebar-ring: #15803d;

  /* Basketball specific colors - Green theme */
  --basketball-green: #14532d;
  --basketball-green-light: #16a34a;
  --basketball-green-dark: #052e16;
  --basketball-accent: #064e3b;
  --basketball-text: #022c22;
  --basketball-orange: #c75823;
  --basketball-orange-light: #fb923c;
  --basketball-orange-dark: #c2410c;

  /* Legacy variables for compatibility */
  --body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --heading-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --text-color: var(--foreground);
  --heading-color: var(--basketball-text);
  --subtext-color: var(--muted-foreground);
  --meta-color: var(--muted-foreground);
  --link-color: var(--primary);
}

.dark {
  --background: #242424;
  --foreground: #fafafa;
  --card: #353535;
  --card-foreground: #fafafa;
  --popover: #353535;
  --popover-foreground: #fafafa;
  --primary: #4ade80;
  --primary-foreground: #14532d;
  --secondary: #404040;
  --secondary-foreground: #fafafa;
  --muted: #404040;
  --muted-foreground: #a3a3a3;
  --accent: #404040;
  --accent-foreground: #fafafa;
  --destructive: #ef4444;
  --border: rgba(255, 255, 255, 0.1);
  --input: rgba(255, 255, 255, 0.15);
  --ring: #4ade80;
  --chart-1: #8b5cf6;
  --chart-2: #4ade80;
  --chart-3: #f97316;
  --chart-4: #a855f7;
  --chart-5: #f59e0b;
  --sidebar: #353535;
  --sidebar-foreground: #fafafa;
  --sidebar-primary: #4ade80;
  --sidebar-primary-foreground: #14532d;
  --sidebar-accent: #404040;
  --sidebar-accent-foreground: #fafafa;
  --sidebar-border: rgba(255, 255, 255, 0.1);
  --sidebar-ring: #4ade80;

  --basketball-green: #4ade80;
  --basketball-green-light: #86efac;
  --basketball-green-dark: #16a34a;
  --basketball-accent: #15803d;
  --basketball-text: #f0fdf4;
  --basketball-orange: #fb923c;
  --basketball-orange-light: #fdba74;
  --basketball-orange-dark: #ea580c;
}

/* Base styles */
body {
  font-family: var(--body-font);
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effects for dynamic elements */
.hover-primary:hover {
  color: var(--primary) !important;
}

.hover-basketball-green:hover {
  color: var(--basketball-green) !important;
}

.hover-bg-accent:hover {
  background-color: var(--accent) !important;
}

.hover-border-primary:hover {
  border-color: var(--primary) !important;
}

/* Gradient utilities */
.gradient-primary {
  background: linear-gradient(90deg, var(--primary), var(--basketball-green));
}

.gradient-text-primary {
  background: linear-gradient(90deg, var(--primary), var(--basketball-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Navigation hover effects */
.menu-item-hover {
  transition: all 0.3s ease;
}

.menu-item-hover:hover {
  color: var(--primary);
}

.menu-underline {
  background-color: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.menu-item-hover:hover .menu-underline {
  transform: scaleX(1);
}

/* Partners grid improvements */
.partenaires-section .group {
  transition: all 0.3s ease;
  position: relative;
}

.partenaires-section .group:hover {
  z-index: 10;
}

/* Pôles centering improvements */
.poles-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.poles-section .grid {
  justify-items: center;
}

/* Basketball icon animation */
.basketball-icon {
  animation: basketball-pulse 2.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes basketball-pulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.15) rotate(180deg);
    opacity: 0.85;
  }
}

/* Articles */
.entry-content {
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.7;
  font-family: var(--body-font);
  color: var(--foreground);
  font-size: 1.1rem;
}

.entry-header {
  max-width: 1200px;
}

.entry-title {
  font-family: var(--heading-font);
  color: var(--primary-foreground);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Featured image */
.post-thumbnail {
  margin: 0 auto 2rem;
  max-width: 1200px;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
  transform: scale(1.02);
}

/* Meta information */
.entry-meta {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  font-weight: 500;
}

.entry-meta .author {
  font-weight: 600;
  color: var(--primary);
}

.entry-meta .posted-on {
  color: var(--muted-foreground);
}

/* Content styling */
.entry-content p {
  margin-bottom: 1.75rem;
  font-size: 1.125rem;
  color: var(--foreground);
  line-height: 1.75;
}

.entry-content h2 {
  font-family: var(--heading-font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  color: var(--basketball-text);
  letter-spacing: -0.01em;
  position: relative;
}

.entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--basketball-green));
  border-radius: var(--radius);
}

.entry-content h3 {
  font-family: var(--heading-font);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--basketball-accent);
  letter-spacing: -0.01em;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 2.5rem auto;
  display: block;
  border-radius: var(--radius);
}

/* Lists */
.entry-content ul {
  list-style-type: none;
  padding-left: 0;
  margin: 2rem 0;
}

.entry-content ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.75;
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.75rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary);
  border-radius: 50%;
}

.entry-content ul ul li::before {
  background-color: var(--basketball-green);
  width: 0.375rem;
  height: 0.375rem;
}

.entry-content ol {
  list-style-type: none;
  padding-left: 0;
  margin: 2rem 0;
  counter-reset: list-counter;
}

.entry-content ol li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.75;
  counter-increment: list-counter;
}

.entry-content ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--basketball-green));
  color: var(--primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Links */
.entry-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.entry-content a:hover {
  color: var(--basketball-green);
  border-bottom-color: var(--basketball-green);
}

/* Embeds */
.wp-block-embed__wrapper {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

/* Blockquotes */
.entry-content blockquote {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--card);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Code blocks */
.entry-content code {
  background-color: var(--muted);
  color: var(--foreground);
  padding: 0.25rem 0.5rem;
  border-radius: calc(var(--radius) * 0.5);
  font-size: 0.875rem;
  font-weight: 500;
}

.entry-content pre {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.card-hover:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* Button styles */
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--basketball-green);
  transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 768px) {
  .entry-content {
    padding: 0 1rem;
  }

  .entry-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .entry-content ul li,
  .entry-content ol li {
    font-size: 1rem;
  }

  .entry-content blockquote {
    padding: 1.5rem;
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .entry-content h2::before {
    width: 2rem;
  }
}

/* Sidebar Widget Styles */
.widget {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.widget-title {
  color: var(--basketball-text);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--primary), var(--basketball-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  background-color: var(--secondary);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.widget ul li:hover {
  background-color: var(--accent);
  transform: translateX(4px);
}

.widget ul li a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.widget ul li a:hover {
  color: var(--primary);
}

.widget .search-form {
  display: flex;
  gap: 0.5rem;
}

.widget .search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background-color: var(--background);
  color: var(--foreground);
  transition: border-color 0.3s ease;
}

.widget .search-form input[type="search"]:focus {
  border-color: var(--primary);
  outline: none;
}

.widget .search-form button {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--basketball-green));
  color: var(--primary-foreground);
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.widget .search-form button:hover {
  filter: brightness(1.1);
}

.widget .tagcloud a {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  margin: 0.25rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.widget .tagcloud a:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Dark mode specific adjustments */
.dark .entry-content h2::before {
  background: linear-gradient(90deg, var(--primary), var(--basketball-green));
}

.dark .card-hover:hover {
}
