/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Background Canvas for Dust Particles & Bokeh */
#fx-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Navigation Bar Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.nav-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.4);
}

.nav-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Header Quick Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Main Container */
.main-content {
  flex: 1;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

/* View Sections */
.view-section {
  display: none;
  width: 100%;
  animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
  display: block;
}

/* Hero Jar View Layout */
.hero-jar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(80vh - 100px);
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}

.jar-wrapper {
  position: relative;
  width: 320px;
  height: 420px;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.jar-wrapper:hover {
  transform: scale(1.02);
}

#jar-canvas {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 30px rgba(140, 122, 107, 0.15));
}

.jar-hint {
  position: absolute;
  top: -12px;
  right: -20px;
  background: var(--accent-subtle);
  color: var(--accent-primary);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-secondary);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  animation: floatBounce 3s ease-in-out infinite;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1.75rem;
  max-width: 480px;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 10;
}
