/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
  --bg-main: #050507;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-hover: rgba(255, 255, 255, 0.06);
  --accent: #D7282F;
  /* BEST Bus Red */
  --accent-glow: rgba(215, 40, 47, 0.5);
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.1);
  --glass: blur(16px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes glow {
  0% {
    box-shadow: 0 0 5px var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 20px var(--accent-glow);
  }

  100% {
    box-shadow: 0 0 5px var(--accent-glow);
  }
}

/* Scaffolding */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #fff, #999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  animation: fadeIn 0.8s var(--ease) forwards;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeIn 0.8s var(--ease) 0.1s forwards;
  opacity: 0;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 40px;
  animation: fadeIn 0.8s var(--ease) 0.2s forwards;
  opacity: 0;
}

.hero-image-container {
  width: 100%;
  max-width: 900px;
  position: relative;
  margin: 0 auto;
  animation: fadeIn 1s var(--ease) 0.3s forwards;
  opacity: 0;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 100px -20px rgba(59, 130, 246, 0.2);
  transition: transform 0.5s var(--ease);
}

.hero-image:hover {
  transform: translateY(-10px) scale(1.02);
}

/* Section Titles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
}

.section-title span {
  display: block;
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* Feed Layout */
.feed {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

/* Feed Card */
.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  /* Mobile first: stacked */
}

@media (min-width: 768px) {
  .feed-card {
    flex-direction: row;
    align-items: stretch;
  }

  .feed-card-image {
    width: 45%;
    min-height: 300px;
  }

  .feed-card-content {
    width: 55%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.feed-card-image {
  position: relative;
  background: #111;
  min-height: 250px;
}

.feed-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.date-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.feed-card-content {
  padding: 20px;
}

.feed-card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.feed-card-header .brand {
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feed-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 10px 0 20px;
  color: var(--text-muted);
}

/* Store Links Section */
.store-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 10px 15px;
  border-radius: 12px;
  transition: all 0.2s;
}

.store-btn-row:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateX(5px);
}

.store-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.store-cta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.view-more-btn {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.view-more-btn:hover {
  border-color: var(--text-muted);
  color: #fff;
}

.hidden-stores {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  animation: fadeIn 0.3s ease;
}

.hidden-stores.open {
  display: flex;
}


/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Product Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card:hover {
  background: var(--bg-hover);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.price {
  color: #fff;
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Store List */
.store-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
}

.store-item:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.store-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.store-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-available {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-raffle {
  background: #f59e0b;
}

.status-soldout {
  background: #ef4444;
}

.store-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.store-btn:hover {
  background: #fff;
  color: #000;
}

/* Footer */
footer {
  margin-top: 100px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}