/* ============================================
   Apps Listing Page — apps/style.css
   ============================================ */

/* === PAGE HERO === */
.apps-page-hero {
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 80px) 5% 64px;
  position: relative;
  overflow: hidden;
}

.apps-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(76,81,191,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 80% 20%, rgba(124,58,237,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.apps-page-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.apps-page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-top: 12px;
}

/* === APPS LIST SECTION === */
.apps-list-section {
  padding: 20px 5% 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* === APP LISTING CARD === */
.app-listing-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 40px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.app-listing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76,81,191,0.04) 0%, rgba(124,58,237,0.03) 100%);
  pointer-events: none;
  border-radius: 24px;
}

.app-listing-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 16px 60px rgba(124, 58, 237, 0.12);
}

/* Live card — gold accent line */
.app-listing-card:has(.alc-badge.live) {
  border-color: rgba(249, 215, 28, 0.2);
}

.app-listing-card:has(.alc-badge.live):hover {
  border-color: rgba(249, 215, 28, 0.4);
  box-shadow: 0 16px 60px rgba(249, 215, 28, 0.1);
}

/* Top accent line */
.app-listing-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 24px 24px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.app-listing-card:hover::after { opacity: 1; }

/* === STATUS BADGE === */
.alc-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}

.alc-badge.live {
  background: rgba(249, 215, 28, 0.12);
  color: var(--gold);
  border: 1px solid rgba(249, 215, 28, 0.35);
}

.alc-badge.coming {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* === INNER LAYOUT === */
.alc-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

/* === LEFT COLUMN === */
.alc-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.alc-icon {
  width: 160px;
  height: 160px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.su-icon {
  background: #fdfcfe;
}

.alc-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

.alc-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* === RIGHT COLUMN (content) === */
.alc-content { position: relative; }

.alc-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  padding-right: 120px;
}

.alc-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 16px;
}

.alc-desc {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 680px;
  margin-bottom: 32px;
}

/* === FEATURES GRID === */
.alc-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.alc-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.alc-feature:hover {
  border-color: rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.04);
}

.alc-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.alc-feature-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}

.alc-feature-desc {
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === TECH STACK TAGS === */
.alc-tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* === MOBILE === */
@media (max-width: 900px) {
  .alc-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .alc-left {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    position: static;
    gap: 12px;
  }

  .alc-icon { width: 100px; height: 100px; border-radius: 22px; }

  .alc-meta { flex-direction: row; width: auto; }

  .alc-content h2 { padding-right: 100px; }

  .alc-features { grid-template-columns: 1fr; }

  .alc-badge { top: 18px; right: 18px; }
}

@media (max-width: 600px) {
  .app-listing-card { padding: 24px 20px; }

  .apps-page-hero {
    padding: calc(var(--nav-height) + 48px) 5% 48px;
    min-height: 32vh;
  }

  .alc-content h2 { padding-right: 0; font-size: 1.4rem; }

  .alc-badge { position: static; display: inline-block; margin-bottom: 14px; }

  .alc-inner { gap: 20px; }
}
