/* frontend/css/index.css */

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Hero Curated Highlights Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  min-height: 380px;
  height: auto;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.4) 60%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-tag {
  align-self: flex-start;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-btn {
  background: var(--text-main);
  color: #0f172a;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
}

.hero-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.15);
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--gold);
  font-size: 15px;
}

/* Category Sections & Grids */
.category-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.category-header h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* Beautiful Collection Cards */
.col-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.col-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.col-card .img {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.col-card .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
}

.col-card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.col-card .meta {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.col-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.col-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-weight: 700;
}

.card-ratings-count {
  color: var(--text-muted);
  font-weight: 500;
}

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.progress-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #34d399 100%);
  border-radius: 99px;
  transition: width 0.3s ease;
}

@media (max-width: 600px) {
  .hero { min-height: 320px; height: auto; }
  .hero-content { padding: 24px; }
  .hero-title { font-size: 24px; }
  .hero-desc { -webkit-line-clamp: 3; }
}

/* ==========================================
   Parliament (Version 2) Layout Overrides
   ========================================== */
body.version-id-2 .hero {
  border: 1px solid #e5dfd3;
  box-shadow: 0 20px 40px rgba(12, 43, 71, 0.06);
}

body.version-id-2 .hero::before {
  background: linear-gradient(to top, rgba(12, 43, 71, 0.95) 0%, rgba(12, 43, 71, 0.5) 60%, transparent 100%);
}

body.version-id-2 .hero-title {
  color: #ffffff;
}

body.version-id-2 .hero-desc {
  color: #cbd5e1;
}

body.version-id-2 .hero-btn {
  background: #bda07a;
  color: #ffffff;
}

body.version-id-2 .hero-btn:hover {
  background: #a98d65;
  box-shadow: 0 12px 24px rgba(189, 160, 122, 0.3);
}

body.version-id-2 .category-header h2 {
  color: #0c2b47;
}

body.version-id-2 .col-card {
  background: #ffffff;
  border: 1px solid #e5dfd3;
  color: #1a202c;
  box-shadow: 0 8px 20px rgba(12, 43, 71, 0.04);
}

body.version-id-2 .col-card:hover {
  background: #ffffff;
  border-color: #bda07a;
  box-shadow: 0 12px 30px rgba(12, 43, 71, 0.08);
}

body.version-id-2 .col-card h3 {
  color: #0c2b47;
}

body.version-id-2 .col-card p {
  color: #4a5568;
}

body.version-id-2 .progress-bar-track {
  background: #faf9f6;
  border: 1px solid #e5dfd3;
}

body.version-id-2 .progress-bar-fill {
  background: linear-gradient(90deg, #0c2b47 0%, #bda07a 100%);
}

body.version-id-2 .card-ratings-count {
  color: #718096;
}

body.version-id-2 .card-stats {
  color: #4a5568;
}

body.version-id-2 .progress-container {
  color: #4a5568;
}
