/* pista.fun - Minimal, Organic & Premium Design System */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Warm Organic Palette */
  --bg-color: #FAF8F5;
  --surface: #FFFFFF;
  --surface-subtle: #F3EFEA;
  --surface-card: #FFFFFF;
  
  --text-main: #1D2D44;
  --text-muted: #6C757D;
  --border-subtle: rgba(29, 45, 68, 0.08);
  --border-focus: rgba(224, 122, 95, 0.4);
  
  /* Primary & Accent Colors */
  --accent-coral: #E07A5F;
  --accent-ochre: #F4A261;
  --accent-sage: #52B788;
  --accent-forest: #2D6A4F;
  --accent-blue: #3D5A80;
  --accent-purple: #8338EC;
  
  /* Subtle Premium Shadows */
  --shadow-sm: 0 4px 12px rgba(29, 45, 68, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(29, 45, 68, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(29, 45, 68, 0.12);
  --shadow-hover: 0 20px 40px -10px rgba(224, 122, 95, 0.18);

  /* Organic Rounded Corners */
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --radius-xl: 2.25rem;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

/* Minimal Frosted Header */
header {
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 36px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.03em;
}

.brand-logo span.dot {
  color: var(--accent-coral);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(29, 45, 68, 0.04);
}

.nav-link.active {
  color: var(--text-main);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.badge-tag {
  background: rgba(82, 183, 136, 0.12);
  color: var(--accent-forest);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Organic Minimal Buttons */
.btn-organic {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent-coral);
  color: #FFFFFF;
  box-shadow: 0 8px 24px -4px rgba(224, 122, 95, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #d8694d;
  box-shadow: 0 12px 32px -4px rgba(224, 122, 95, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 45, 68, 0.15);
}

/* Main Layout */
main {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px 24px;
  flex: 1;
}

/* Footer */
footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: auto;
}

footer .footer-brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
}

footer .footer-links {
  display: flex;
  gap: 24px;
}

footer .footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

footer .footer-links a:hover {
  color: var(--text-main);
}

@media (max-width: 768px) {
  header { padding: 14px 20px; }
  main { padding: 24px 16px 40px 16px; }
  .nav-links { display: none; }
}