/* ============================================
   Lumio Portal — Landing Page Styles
   Font: Red Hat Display
   Theme: Liquid Glass
   ============================================ */

:root {
  --bg-primary: #f0f0f5;
  --text-primary: #1a1a2e;
  --text-secondary: rgba(60, 60, 67, 0.6);
  --text-tertiary: rgba(60, 60, 67, 0.35);
  --accent: #0071e3;
  --accent-hover: #0062cc;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-bg-heavy: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-border-outer: rgba(0, 0, 0, 0.06);
  --glass-shadow: 0 2px 20px rgba(0, 0, 0, 0.04), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  --glass-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  --glass-blur: 40px;
  --glass-saturate: 1.8;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --transition: 200ms ease;
  --success: #30a46c;
}

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

html, body {
  height: 100%;
  font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(120, 180, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 150, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(100, 220, 200, 0.10) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ──────────────────────────────── */

.portal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 40px;
}

.portal-header {
  text-align: center;
  margin-bottom: 48px;
}

.portal-logo {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.portal-logo span {
  color: var(--accent);
}

.portal-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

.auth-status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.auth-status.logged-in {
  color: var(--success);
}

/* ── Service Grid ────────────────────────── */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  width: 100%;
}

/* ── Service Card ────────────────────────── */

.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--glass-bg-heavy);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-lg);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 50%
  );
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.service-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.12);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  margin-top: 16px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-badge.active {
  background: rgba(48, 164, 108, 0.12);
  color: #18794e;
  border: 1px solid rgba(48, 164, 108, 0.2);
}

.card-badge.coming-soon {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-tertiary);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── Footer ──────────────────────────────── */

.portal-footer {
  margin-top: auto;
  padding-top: 48px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 640px) {
  .portal {
    padding: 40px 16px 24px;
  }

  .portal-header {
    margin-bottom: 32px;
  }

  .portal-logo {
    font-size: 26px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
