/* ═══════════════════════════════════════════════════════════════
   KRITEXA LABS — LIVE PROJECTS PAGE CSS
   css/pages/live-projects.css
   Phase 22 — NEW: Live Projects page

   Live Projects-specific styles only. All global styles live in:
     css/global.css → css/utilities.css → css/header.css →
     css/footer.css → css/components.css

   CSS load order:
     global.css → utilities.css → header.css → footer.css →
     components.css → pages/live-projects.css

   Contents:
     1. Screen-reader-only utility (.sr-only)
     2. Hero section
     3. Status banner
     4. Live projects grid and cards
     5. Card components (header, badges, tags, footer)
     6. CTA section
     7. Responsive breakpoints
     8. Reduced-motion overrides
═══════════════════════════════════════════════════════════════ */


/* ═══ 1. SCREEN-READER-ONLY UTILITY ═══ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ═══ 2. HERO SECTION ═══ */
.lp-hero-section {
  scroll-margin-top: 74px;
}
.lp-hero-section .btn-p {
  text-decoration: none;
}
.lp-hero-section .btn-p:focus-visible {
  outline: 2px solid var(--color-purple2);
  outline-offset: 2px;
}


/* ═══ 3. STATUS BANNER ═══ */
.lp-status-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.18);
  margin-bottom: var(--space-8);
}
.lp-status-icon {
  color: var(--color-purple2);
  flex-shrink: 0;
  margin-top: 2px;
}
.lp-status-text {
  font-size: var(--font-size-body-sm);
  color: var(--color-gray);
  line-height: var(--line-height-relaxed);
}
.lp-status-text strong {
  color: var(--color-white);
}
.lp-status-link {
  color: var(--color-purple2);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
}
.lp-status-link:hover {
  color: var(--color-white);
}
.lp-status-link:focus-visible {
  outline: 2px solid var(--color-purple2);
  outline-offset: 2px;
}


/* ═══ 4. LIVE PROJECTS GRID ═══ */
.lp-section {
  padding: var(--space-16) 0;
}
.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: 0;
}


/* ═══ 5. CARD COMPONENTS ═══ */
.lp-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    border-color 0.22s var(--ease-standard),
    box-shadow 0.22s var(--ease-standard);
}
.lp-card:hover {
  border-color: rgba(124, 58, 237, 0.30);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.30);
}

/* Live card — stronger green hover accent */
.lp-card--live:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.10);
}

/* Card preview image (for LIVE projects with a screenshot) */
.lp-card-preview {
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-border);
}
.lp-card-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Status banner green variant — has at least one live project */
.lp-status-banner--has-live {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.20);
}
.lp-status-icon--live {
  color: #10B981;
}

/* Card header — meta + status badge */
.lp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.lp-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Category badge */
.lp-cat-badge {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-bold);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lp-cat-cyan  { background: rgba(6, 182, 212, 0.12); color: var(--color-cyan); border: 1px solid rgba(6, 182, 212, 0.25); }
.lp-cat-purple { background: rgba(124, 58, 237, 0.12); color: var(--color-purple2); border: 1px solid rgba(124, 58, 237, 0.25); }
.lp-cat-orange { background: rgba(245, 158, 11, 0.12); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.25); }
.lp-cat-green  { background: rgba(16, 185, 129, 0.12); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.25); }
.lp-cat-teal   { background: rgba(20, 184, 166, 0.12); color: #14B8A6; border: 1px solid rgba(20, 184, 166, 0.25); }

/* Type badge */
.lp-type-badge {
  font-size: var(--font-size-caption);
  color: var(--color-gray2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
}

/* Status badge */
.lp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-caption);
  font-family: var(--font-family-mono);
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Coming Soon status ── */
.lp-status-coming {
  background: rgba(255, 181, 71, 0.10);
  border: 1px solid rgba(255, 181, 71, 0.22);
  color: var(--color-warning);
}
.lp-status-coming .lp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-warning);
  flex-shrink: 0;
}

/* ── Live status (for future use when URLs are verified) ── */
.lp-status-live {
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10B981;
}
.lp-status-live .lp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: lp-dot-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes lp-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px #10B981; }
  50%       { opacity: 0.5; box-shadow: 0 0 1px #10B981; }
}

/* Card title */
.lp-name {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin: 0;
  line-height: 1.3;
}

/* Card description */
.lp-desc {
  font-size: var(--font-size-body-sm);
  color: var(--color-gray);
  line-height: var(--line-height-relaxed);
  margin: 0;
  flex: 1;
}

/* Capability tags */
.lp-cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.lp-cap {
  font-size: var(--font-size-caption);
  color: var(--color-purple2);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}

/* Card footer */
.lp-card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

/* Live CTA — "Experience Live ↗" — for future use when URLs are verified */
.lp-live-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(20, 184, 166, 0.15) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-nav);
  text-decoration: none;
  transition: all 0.2s var(--ease-standard);
}
.lp-live-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(20, 184, 166, 0.25) 100%);
  border-color: rgba(16, 185, 129, 0.55);
  color: #34D399;
}
.lp-live-btn:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 2px;
}

/* Request Access button */
.lp-contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: var(--color-purple2);
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-nav);
  text-decoration: none;
  transition: all 0.2s var(--ease-standard);
}
.lp-contact-btn:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.45);
  color: var(--color-white);
}
.lp-contact-btn:focus-visible {
  outline: 2px solid var(--color-purple2);
  outline-offset: 2px;
}

/* Portfolio link */
.lp-portfolio-btn {
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray2);
  text-decoration: none;
  transition: color 0.2s var(--ease-standard);
}
.lp-portfolio-btn:hover {
  color: var(--color-gray);
}
.lp-portfolio-btn:focus-visible {
  outline: 2px solid var(--color-purple2);
  outline-offset: 2px;
  border-radius: 3px;
}


/* ═══ 6. CTA SECTION ═══ */
.lp-cta-section {
  text-align: center;
}
.lp-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.lp-cta-inner h2 {
  font-size: clamp(var(--font-size-h3), 4vw, var(--font-size-h2));
  margin-bottom: var(--space-4);
}
.lp-cta-inner p {
  color: var(--color-gray);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}


/* ═══ 7. RESPONSIVE BREAKPOINTS ═══ */
@media (max-width: 1024px) {
  .lp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .lp-grid {
    grid-template-columns: 1fr;
  }
  .lp-status-banner {
    flex-direction: column;
    gap: var(--space-3);
  }
  .lp-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .lp-card {
    padding: var(--space-4);
  }
  .lp-card-header {
    flex-direction: column;
    gap: var(--space-2);
  }
}


/* ═══ 8. REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  .lp-status-live .lp-status-dot,
  @keyframes lp-dot-pulse {
    animation: none;
  }
  .lp-card,
  .lp-live-btn,
  .lp-contact-btn,
  .lp-portfolio-btn {
    transition: none;
  }
}
