/* Sample CSS file for Bricks CSS Autoeditor Import Tool */
/* This file demonstrates various CSS patterns that can be converted to Bricks JSON format */

/* ====================
   BUTTON COMPONENTS
   ==================== */

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: 12px;
}

/* ====================
   CARD COMPONENTS
   ==================== */

.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  border: 1px solid var(--border);
}

.card-hover {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* ====================
   LAYOUT GRIDS
   ==================== */

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ====================
   TYPOGRAPHY
   ==================== */

.heading-hero {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 24px;
}

.heading-section {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.text-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.text-accent {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

/* ====================
   FLEXBOX UTILITIES
   ==================== */

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ====================
   SPACING UTILITIES
   ==================== */

.spacing-section {
  padding: 80px 0;
}

.spacing-container {
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.spacing-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ====================
   RESPONSIVE COMPONENTS
   ==================== */

.hero-banner {
  padding: 120px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

/* Responsive behavior - mobile first */
@media (max-width: 768px) {
  .hero-banner {
    padding: 80px 16px;
  }
  
  .grid-2-col,
  .grid-3-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .heading-hero {
    font-size: 2.5rem;
  }
  
  .spacing-section {
    padding: 60px 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ====================
   ADVANCED COMPONENTS
   ==================== */

.feature-card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.glassmorphism {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 24px;
}

/* ====================
   ANIMATION UTILITIES
   ==================== */

.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.slide-up {
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ====================
   CUSTOM PROPERTIES EXAMPLES
   ==================== */

.theme-dark {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 24px;
  border-radius: 12px;
}