/* ===== Page-Specific Styles ===== */

/* ===== HOME PAGE ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 100px 20px 60px;
  position: relative; overflow: hidden;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168,85,247,0.3);
  color: var(--accent); padding: 6px 16px; border-radius: 30px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 24px; animation: float 3s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900; color: #fff; line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--pink-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px; color: rgba(255,255,255,0.65);
  max-width: 520px; margin: 0 auto 40px; line-height: 1.6;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-hero-primary {
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: none; border-radius: 14px;
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(123,47,190,0.45);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(123,47,190,0.55); }
.btn-hero-outline {
  padding: 16px 36px;
  background: transparent; border: 2px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85); border-radius: 14px;
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
}
.btn-hero-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Floating pixel art bg */
.hero-pixel-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.float-pixel {
  position: absolute; border-radius: 3px;
  background: var(--accent); opacity: 0.15;
  animation: float 4s ease-in-out infinite;
}

/* Steps Section */
.steps-section {
  padding: 80px 20px;
  background: rgba(255,255,255,0.02);
}
.section-title {
  text-align: center; margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 42px); font-weight: 700; color: #fff;
}
.section-subtitle { text-align: center; color: rgba(255,255,255,0.5); margin-bottom: 50px; font-size: 16px; }

.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.step-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: var(--radius); padding: 32px 24px;
  text-align: center; transition: all 0.3s;
}
.step-card:hover { transform: translateY(-6px); border-color: var(--accent); background: rgba(168,85,247,0.08); }
.step-icon { font-size: 42px; margin-bottom: 16px; display: block; }
.step-num {
  display: inline-block; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 700;
  line-height: 28px; text-align: center; margin-bottom: 12px;
}
.step-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ===== GODS LIST PAGE ===== */
.gods-page { padding: 90px 20px 60px; min-height: 100vh; }
.gods-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px; margin-top: 40px;
}
.god-card {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer; transition: all 0.3s;
  border: 1px solid rgba(123,47,190,0.1);
}
.god-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(123,47,190,0.25); }
.god-card-img {
  width: 100%; height: 200px; object-fit: cover;
  background: linear-gradient(135deg, #F3F0FF 0%, #E8E4FF 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; position: relative; overflow: hidden;
}
.god-card-body { padding: 20px; }
.god-card-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.god-card-temple { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.god-card-pixels { display: flex; justify-content: space-between; align-items: center; }
.pixel-count { font-size: 13px; font-weight: 600; color: var(--primary); }
.pixel-progress {
  width: 100%; height: 6px; background: #EDE9FF;
  border-radius: 3px; margin: 10px 0; overflow: hidden;
}
.pixel-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; }

/* ===== GOD DETAIL / PIXEL SELECTOR PAGE ===== */
.god-detail-page { padding: 90px 20px 60px; min-height: 100vh; }
.god-detail-header {
  background: rgba(255,255,255,0.95); border-radius: var(--radius);
  padding: 32px; margin-bottom: 24px; display: flex; gap: 24px; align-items: center;
  box-shadow: var(--shadow-card);
}
.god-detail-emoji { font-size: 80px; flex-shrink: 0; }
.god-detail-info h1 { font-family: var(--font-display); font-size: 28px; color: var(--text-dark); margin-bottom: 8px; }
.god-detail-info p { color: var(--text-muted); line-height: 1.6; font-size: 14px; }

.pixel-map-container {
  background: rgba(255,255,255,0.95); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-card);
}
.pixel-map-title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.pixel-map-legend { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; }

.pixel-map {
  display: grid; gap: 1px;
  width: 100%; overflow: auto; border-radius: 8px;
  background: #EDE9FF; padding: 2px;
}
.pixel-cell-map {
  border-radius: 1px; cursor: pointer; transition: all 0.1s;
  aspect-ratio: 1;
}
.pixel-cell-map.available { background: rgba(123,47,190,0.2); }
.pixel-cell-map.available:hover { background: var(--accent); transform: scale(1.5); z-index: 10; position: relative; }
.pixel-cell-map.sold { background: var(--primary); cursor: not-allowed; }
.pixel-cell-map.selected { background: var(--pink-accent); }
.pixel-cell-map.mine { background: var(--gold); cursor: default; }

.pixel-selection-panel {
  background: rgba(255,255,255,0.95); border-radius: var(--radius);
  padding: 24px; margin-top: 20px; box-shadow: var(--shadow-card);
}
.selection-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: gap; }

/* ===== PAYMENT PAGE ===== */
.payment-page { padding: 90px 20px 60px; min-height: 100vh; }
.payment-card {
  max-width: 480px; margin: 40px auto;
  background: rgba(255,255,255,0.97); border-radius: var(--radius);
  padding: 40px 32px; box-shadow: var(--shadow-card), var(--shadow-glow);
}
.payment-icon {
  text-align: center; margin-bottom: 20px;
}
.calendar-icon {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, #F3F0FF, #E8E4FF);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; margin: 0 auto; position: relative;
}
.calendar-badge {
  position: absolute; bottom: -4px; right: -4px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; border: 2px solid #fff;
}
.price-badge {
  display: flex; align-items: center; gap: 10px;
  background: #F3F0FF; border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 24px;
  border: 1px solid rgba(123,47,190,0.15);
}
.price-badge-icon { font-size: 20px; }
.price-badge-text { font-size: 14px; color: var(--text-mid); }
.price-badge-text strong { color: var(--primary); }

.days-dropdown-custom {
  position: relative;
}
.days-dropdown-custom select {
  width: 100%; padding: 16px 20px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600; color: var(--text-dark);
  cursor: pointer; appearance: none; font-family: var(--font-body);
  background: #FAFAFE; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237B2FBE' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  transition: border-color 0.2s;
}
.days-dropdown-custom select:focus { border-color: var(--primary); }

.total-cost-box {
  background: linear-gradient(135deg, #F3F0FF, #EDE9FF);
  border: 1px solid rgba(123,47,190,0.2);
  border-radius: var(--radius-sm); padding: 20px;
  margin: 20px 0;
}
.total-cost-label { font-size: 14px; color: var(--text-muted); margin-bottom: 2px; }
.total-cost-sub { font-size: 12px; color: var(--text-muted); }
.total-cost-amount { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--primary); }
.secure-badges {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-muted); font-size: 12px; margin: 12px 0;
}
.secure-badges span { display: flex; align-items: center; gap: 4px; }

/* ===== ARCHANA PAGE ===== */
.archana-page { padding: 90px 20px 60px; min-height: 100vh; }
.archana-card {
  background: rgba(255,255,255,0.97); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
  margin-bottom: 24px; cursor: pointer; transition: all 0.3s;
  border: 2px solid transparent;
}
.archana-card:hover, .archana-card.playing { border-color: var(--primary); transform: translateY(-4px); }
.archana-card-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 20px 24px; color: #fff;
  display: flex; align-items: center; gap: 12px;
}
.archana-card-icon { font-size: 32px; }
.archana-card-body { padding: 20px 24px; }
.archana-card-title { font-family: var(--font-display); font-size: 18px; color: #fff; font-weight: 600; }
.archana-card-sub { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.audio-player {
  display: flex; align-items: center; gap: 12px;
  background: #F3F0FF; border-radius: var(--radius-sm); padding: 14px 16px;
  margin-top: 14px;
}
.play-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; color: #fff; font-size: 14px;
  cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; box-shadow: 0 4px 12px rgba(123,47,190,0.4);
}
.play-btn:hover { transform: scale(1.1); }
.audio-progress { flex: 1; }
.audio-track { width: 100%; height: 4px; background: #DDD; border-radius: 2px; cursor: pointer; }
.audio-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ===== PROFILE PAGE ===== */
.profile-page { padding: 90px 20px 60px; min-height: 100vh; }
.profile-header-card {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius); padding: 36px; color: #fff;
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.profile-header-card::before {
  content: '✦'; position: absolute; right: 30px; top: 20px;
  font-size: 80px; opacity: 0.15; animation: float 3s ease-in-out infinite;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.25); border: 3px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 16px;
}
.profile-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.profile-phone { font-size: 14px; opacity: 0.8; }
.profile-stats { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.profile-stat { }
.profile-stat-val { font-size: 22px; font-weight: 700; }
.profile-stat-label { font-size: 12px; opacity: 0.7; }

.profile-section { background: rgba(255,255,255,0.97); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.profile-section-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.profile-section-title span { font-size: 20px; }

.purchased-pixel-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); margin-bottom: 12px;
  transition: all 0.2s;
}
.purchased-pixel-item:hover { border-color: var(--primary); background: rgba(123,47,190,0.02); }
.purchased-pixel-god { font-size: 32px; }
.purchased-pixel-info { flex: 1; }
.purchased-pixel-name { font-weight: 700; color: var(--text-dark); font-size: 15px; }
.purchased-pixel-details { font-size: 12px; color: var(--text-muted); }

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(5, 2, 15, 0.95);
  border-top: 1px solid rgba(168,85,247,0.15);
  padding: 60px 32px 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; max-width: 1200px; margin: 0 auto;
}
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 13px; line-height: 1.7; margin-top: 12px; }
.footer-col-title { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-link {
  display: block; color: rgba(255,255,255,0.45); font-size: 13px;
  margin-bottom: 10px; cursor: pointer; transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 12px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .god-detail-header { flex-direction: column; text-align: center; }
  .payment-card { padding: 28px 20px; }
  .hero { padding: 100px 20px 40px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
