/* ==========================================================================
   Luka.business — Design System & Stylesheet
   Firefox-Inspired Clean Light Aesthetic: Crisp White, Rich Violet Accents,
   Soft Lavender Containers, Rounded Pills & Deep Contrast Footer.
   ========================================================================== */

:root {
  /* Color Palette — Clean Light Editorial Tech */
  --bg-primary: #ffffff;
  --bg-secondary: #f9f8fc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-card-tint: #f5effe;
  --bg-card-lavender: #f3edfc;
  --bg-dark-contrast: #140827;
  
  --border-subtle: #eae5f5;
  --border-card: #e7e0f4;
  --border-focus: #582be8;
  
  --text-main: #15141a;
  --text-body: #2b263e;
  --text-muted: #4b4860;
  --text-dim: #76718c;
  
  /* Firefox Signature Accents */
  --accent-purple: #582be8;
  --accent-purple-hover: #461ec4;
  --accent-purple-light: #efe9ff;
  --accent-purple-tint: rgba(88, 43, 232, 0.08);
  --accent-warm: #f55b23;
  --accent-warm-light: #fff2eb;
  --accent-gradient: linear-gradient(135deg, #582be8 0%, #7b3fe4 100%);
  --accent-glow: rgba(88, 43, 232, 0.15);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 3px rgba(28, 12, 58, 0.04);
  --shadow-sm: 0 3px 12px rgba(28, 12, 58, 0.05);
  --shadow-md: 0 8px 24px rgba(28, 12, 58, 0.07);
  --shadow-lg: 0 16px 40px rgba(28, 12, 58, 0.09);
  --shadow-purple: 0 6px 20px rgba(88, 43, 232, 0.25);
  
  --max-w: 1140px;
  --max-w-prose: 780px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.prose-container {
  width: 100%;
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(88, 43, 232, 0.3);
}

.brand-text {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-purple);
  background: var(--accent-purple-light);
  border: 1px solid #dfd3fc;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-purple);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-purple);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--accent-purple);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(88, 43, 232, 0.25);
}

.nav-cta:hover {
  background: var(--accent-purple-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 43, 232, 0.35);
}

.mobile-menu-btn {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 80px 0 54px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f9f7fd 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--accent-purple-light);
  border: 1px solid #dfd3fc;
  color: var(--accent-purple);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin-bottom: 20px;
  color: var(--text-main);
  max-width: 880px;
}

.hero-subtitle {
  font-size: clamp(1.08rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Pill Buttons (Firefox Style) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: var(--radius-full);
  background: var(--accent-purple);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-purple);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(88, 43, 232, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 2px solid var(--accent-purple);
  color: var(--accent-purple);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--accent-purple-light);
  transform: translateY(-2px);
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-top: 4px;
}

.section-link {
  color: var(--accent-purple);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.section-link:hover {
  gap: 10px;
  color: var(--accent-purple-hover);
}

/* Cards & Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  border-color: #cbbeee;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Lavender tinted feature cards (Firefox style) */
.card-lavender {
  background: var(--bg-card-lavender);
  border: 1px solid #e5daf7;
}

.card-lavender:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-lg);
}

/* Post Cards */
.post-card {
  text-decoration: none;
  color: inherit;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.post-tag {
  background: var(--accent-purple-light);
  color: var(--accent-purple);
  border: 1px solid #dfd3fc;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-title {
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.post-card:hover .post-title {
  color: var(--accent-purple);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.62;
  margin-bottom: 22px;
  flex-grow: 1;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-purple);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: #cbbeee;
  background: #fbf9ff;
}

.filter-btn.active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(88, 43, 232, 0.25);
}

/* Telegram Community Banner (Soft Lavender / Violet Contrast) */
.tg-banner {
  margin: 56px 0;
  background: linear-gradient(135deg, #f4effe 0%, #efe7fc 100%);
  border: 1px solid #e1d4fa;
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.tg-info h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.tg-info p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 600px;
  line-height: 1.6;
}

/* Author Section / Bio */
.author-box {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fbf9ff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin: 40px 0;
  box-shadow: var(--shadow-xs);
}

.author-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-purple);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(88, 43, 232, 0.2);
}

.author-details h4 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.author-details p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Prose / Article Reader */
.article-header {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 34px;
}

.article-title {
  font-size: clamp(2.1rem, 4.5vw, 2.9rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.article-body {
  font-size: 1.12rem;
  line-height: 1.82;
  color: var(--text-body);
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 44px 0 18px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-size: 1.42rem;
  font-weight: 800;
  margin: 34px 0 14px;
  color: var(--text-main);
}

.article-body ul, .article-body ol {
  margin: 0 0 26px 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body strong {
  color: var(--text-main);
}

.article-body blockquote {
  border-left: 4px solid var(--accent-purple);
  background: var(--bg-card-tint);
  padding: 18px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 30px 0;
  color: var(--text-body);
  font-style: normal;
}

.article-body code {
  font-family: var(--font-mono);
  background: var(--accent-purple-light);
  color: var(--accent-purple);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.92em;
  font-weight: 600;
}

.article-body pre {
  background: var(--bg-dark-contrast);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 22px;
  overflow-x: auto;
  margin: 30px 0;
}

.article-body pre code {
  background: none;
  padding: 0;
  color: #f3f0fc;
}

/* Footer (Deep Dark Contrast — Grounded Firefox Style) */
.site-footer {
  margin-top: auto;
  background: var(--bg-dark-contrast);
  color: #b8b0cc;
  padding: 56px 0 36px;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.footer-brand p {
  color: #9f96b7;
  max-width: 400px;
  font-size: 0.94rem;
  line-height: 1.65;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: #b8b0cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 26px;
  font-size: 0.88rem;
  color: #887e9f;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    padding: 24px;
    gap: 18px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .tg-banner {
    padding: 26px;
    flex-direction: column;
    align-items: flex-start;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .post-card[style*="grid-column: 1 / -1"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}
