/**
 * @file
 * Store homepage and common styles.
 */

/* Variables */
:root {
  --store-primary: #d32f2f;
  --store-secondary: #1976d2;
  --store-accent: #ff9800;
  --store-success: #4caf50;
  --store-text: #333;
  --store-text-light: #666;
  --store-bg: #f5f5f5;
  --store-card-bg: #fff;
  --store-border: #e0e0e0;
  --store-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --store-radius: 8px;
}

/* Hero section */
.store-hero {
  background: linear-gradient(135deg, var(--store-primary) 0%, #b71c1c 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.store-hero__title {
  font-size: 2.5rem;
  margin: 0 0 10px;
  font-weight: 700;
}

.store-hero__subtitle {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.9;
}

/* Store sections grid */
.store-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

/* Store cards */
.store-card {
  background: var(--store-card-bg);
  border-radius: var(--store-radius);
  box-shadow: var(--store-shadow);
  padding: 30px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.store-card__title {
  font-size: 1.5rem;
  margin: 0 0 12px;
  color: var(--store-text);
}

.store-card__description {
  color: var(--store-text-light);
  margin: 0 0 20px;
  line-height: 1.5;
}

.store-card__button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--store-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--store-radius);
  font-weight: 500;
  transition: background 0.2s;
}

.store-card__button:hover {
  background: #b71c1c;
  color: white;
}

/* Card type variations */
.store-card--avatars .store-card__button {
  background: #9c27b0;
}
.store-card--avatars .store-card__button:hover {
  background: #7b1fa2;
}

.store-card--subscriptions .store-card__button {
  background: var(--store-secondary);
}
.store-card--subscriptions .store-card__button:hover {
  background: #1565c0;
}

.store-card--merch .store-card__button {
  background: var(--store-accent);
}
.store-card--merch .store-card__button:hover {
  background: #f57c00;
}

.store-card--partners .store-card__button {
  background: var(--store-success);
}
.store-card--partners .store-card__button:hover {
  background: #388e3c;
}

/* Common button styles */
.button {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: var(--store-radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.button--primary {
  background: var(--store-primary);
  color: white;
}

.button--primary:hover {
  background: #b71c1c;
}

.button--secondary {
  background: var(--store-bg);
  color: var(--store-text);
  border: 1px solid var(--store-border);
}

.button--secondary:hover {
  background: #e0e0e0;
}

.button--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--store-text-light);
  text-decoration: none;
}

.back-link:hover {
  color: var(--store-primary);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--store-bg);
  border-radius: var(--store-radius);
}

.empty-state h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.empty-state p {
  color: var(--store-text-light);
  margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .store-hero__title {
    font-size: 1.8rem;
  }
  
  .store-hero__subtitle {
    font-size: 1rem;
  }
  
  .store-sections {
    grid-template-columns: 1fr;
  }
}
