/* Morning Brew - Reusable Components */

/* Button Styles */
.btn {
  font-family: var(--font-label);
  font-weight: 600;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: var(--text-base);
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--honey);
  color: var(--espresso);
}

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

.btn-secondary {
  background-color: var(--espresso);
  color: var(--foam);
}

.btn-secondary:hover {
  background-color: var(--roasted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background-color: var(--espresso);
  color: var(--foam);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  font-family: var(--font-label);
  font-weight: 600;
  color: var(--espresso);
  display: block;
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  border: 2px solid var(--latte);
  border-radius: var(--radius-md);
  background-color: var(--foam);
  color: var(--espresso);
  transition: all var(--transition-base);
}

.form-input:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(232, 184, 77, 0.1);
}

.form-input::placeholder {
  color: var(--latte);
}

.form-error {
  color: #d32f2f;
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
  font-family: var(--font-label);
}

.form-success {
  color: #388e3c;
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
  font-family: var(--font-label);
}

/* Card Styles */
.card {
  background-color: var(--foam);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card-hover {
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card-hover:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: var(--space-lg);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--espresso);
  margin-bottom: var(--space-sm);
}

.card-description {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--roasted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.card-price {
  font-family: var(--font-label);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--honey);
}

/* Section Styles */
.section {
  padding: var(--space-3xl) 0;
}

.section-dark {
  background-color: var(--espresso);
  color: var(--cream);
}

.section-light {
  background-color: var(--cream);
  color: var(--espresso);
}

.section-accent {
  background-color: var(--foam);
  color: var(--espresso);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  color: var(--latte);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: var(--cream);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Badge */
.badge {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  display: inline-block;
}

.badge-new {
  background-color: var(--honey);
  color: var(--espresso);
}

.badge-popular {
  background-color: var(--caramel);
  color: var(--foam);
}

/* Divider */
.divider {
  height: 3px;
  width: 80px;
  background-color: var(--honey);
  margin: var(--space-md) auto;
  border-radius: var(--radius-full);
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .section-title {
    font-size: var(--text-4xl);
  }

  .section-subtitle {
    font-size: var(--text-lg);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 200px;
  }
}
