/* Shared CSS Variables and Utility Classes */

/* CSS Variables for consistent theming */
:root {
  /* Primary Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-primary-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  --gradient-secondary: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --gradient-secondary-hover: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
  --gradient-accent: linear-gradient(135deg, #a259ff, #7c3aed);
  --gradient-accent-hover: linear-gradient(135deg, #7c3aed, #a259ff);
  
  /* Background Gradients */
  --gradient-bg-light: linear-gradient(135deg, #f3e7fe 0%, #e3f0ff 100%);
  --gradient-bg-dark: linear-gradient(135deg, #232526 0%, #414345 100%);
  --gradient-bg-darker: linear-gradient(135deg, #181a1f 0%, #232526 100%);
  
  /* Shape Gradients */
  --gradient-shape-gold: linear-gradient(135deg, #FFD700, #FFA500);
  --gradient-shape-blue: linear-gradient(135deg, #4fc3f7, #29b6f6);
  --gradient-shape-purple: linear-gradient(135deg, #9c27b0, #7b1fa2);
  
  /* Colors */
  --color-primary: #a259ff;
  --color-primary-dark: #7c3aed;
  --color-secondary: #FFD700;
  --color-secondary-dark: #FFA500;
  --color-accent: #667eea;
  --color-accent-dark: #764ba2;
  --color-text-dark: #1a202c;
  --color-text-medium: #4a5568;
  --color-text-light: #6b7280;
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Utility Gradients */
  --gradient-light-bg: linear-gradient(135deg, #f8f0ff 0%, #e6f0ff 100%);
  --gradient-light-bg-alt: linear-gradient(135deg, #f8f0ff 60%, #e6f0ff 100%);
  --gradient-white-bg: linear-gradient(135deg, #fff 60%, #f0f4fa 100%);
}

/* Utility Classes for Gradients */
.gradient-primary { background: var(--gradient-primary); }
.gradient-primary-hover { background: var(--gradient-primary-hover); }
.gradient-secondary { background: var(--gradient-secondary); }
.gradient-secondary-hover { background: var(--gradient-secondary-hover); }
.gradient-accent { background: var(--gradient-accent); }
.gradient-accent-hover { background: var(--gradient-accent-hover); }
.gradient-bg-light { background: var(--gradient-bg-light); }
.gradient-bg-dark { background: var(--gradient-bg-dark); }
.gradient-bg-darker { background: var(--gradient-bg-darker); }

/* Utility Classes for Colors */
.text-primary { color: var(--color-primary); }
.text-primary-dark { color: var(--color-primary-dark); }
.text-secondary { color: var(--color-secondary); }
.text-secondary-dark { color: var(--color-secondary-dark); }
.text-accent { color: var(--color-accent); }
.text-accent-dark { color: var(--color-accent-dark); }
.text-dark { color: var(--color-text-dark); }
.text-medium { color: var(--color-text-medium); }
.text-light { color: var(--color-text-light); }
.text-white { color: var(--color-white); }
.text-black { color: var(--color-black); }

/* Common Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary:hover {
  background: var(--gradient-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  color: var(--color-white);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(162, 89, 255, 0.3);
}

.btn-accent:hover {
  background: var(--gradient-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(162, 89, 255, 0.4);
  color: var(--color-white);
}

/* Common Card Styles */
.card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Common Section Styles */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  color: var(--color-primary);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(162, 89, 255, 0.1);
}

.section-desc {
  color: var(--color-text-medium);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Common Grid Styles */
.grid {
  display: grid;
  gap: 30px;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-auto { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }

/* Common Container Styles */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Common Floating Shapes */
.floating-shapes {
  position: relative;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.shape-1 { 
  width: 180px; 
  height: 180px; 
  top: -60px; 
  left: -60px; 
  background: var(--gradient-shape-gold);
}
.shape-2 { 
  width: 120px; 
  height: 120px; 
  bottom: 40px; 
  right: 10%; 
  background: var(--gradient-shape-blue);
}
.shape-3 { 
  width: 80px; 
  height: 80px; 
  top: 30%; 
  right: -40px; 
  background: var(--gradient-shape-purple);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Common Category Filter Styles */
.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
  padding: 0 20px;
}

.category-filters a {
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-text-medium);
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

.category-filters a:hover,
.category-filters a.active {
  background: var(--gradient-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(162, 89, 255, 0.3);
}

/* Common Pagination Styles */
.pagination {
  text-align: center;
  margin-top: 50px;
}

.pagination .page-numbers {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-text-medium);
  padding: 12px 18px;
  margin: 0 5px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--gradient-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(162, 89, 255, 0.3);
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-desc {
    font-size: 1rem;
  }
  
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .category-filters {
    gap: 10px;
  }
  
  .category-filters a {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .category-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .category-filters a {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }
} 