/* ==========================================================================
   DAHNSOFT — Project Deep-Dive & Store Showcase Stylesheet
   Modern, Sleek, Interactive Horizontal Slider Visual System
   ========================================================================== */

:root {
  --accent-plantreum: #059669;
  --accent-plantreum-bg: rgba(5, 150, 105, 0.1);
}

[data-theme="dark"] {
  --accent-plantreum: #34D399;
  --accent-plantreum-bg: rgba(52, 211, 153, 0.14);
}

/* --------------------------------------------------------------------------
   Store Badges & Download Buttons (Apple App Store / Google Play / Direct)
   -------------------------------------------------------------------------- */
.store-badges-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  background: #000000;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  min-height: 52px;
}

[data-theme="dark"] .store-btn {
  background: #11141E;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.35);
  background: #171717;
  color: #FFFFFF;
}

[data-theme="dark"] .store-btn:hover {
  background: #1A1F2C;
  border-color: var(--accent-primary);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.25);
}

.store-btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-btn-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.store-btn-sub {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-family: var(--font-sans);
}

.store-btn-main {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  font-family: var(--font-sans);
}

/* Secondary & Direct Download Buttons */
.store-btn-web {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.store-btn-web .store-btn-sub {
  color: var(--text-muted);
}

.store-btn-web .store-btn-main {
  color: var(--text-primary);
}

.store-btn-web:hover {
  background: var(--bg-subtle);
  border-color: var(--text-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .store-btn-web {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
}

[data-theme="dark"] .store-btn-web:hover {
  background: var(--bg-surface);
  border-color: var(--accent-primary);
}

.store-btn.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hero Header & Showcase Section
   -------------------------------------------------------------------------- */
.project-showcase-section {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

.project-hero-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto clamp(2rem, 3.5vw, 3rem);
}

.project-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.05rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.15rem;
  letter-spacing: 0.05em;
}

.project-hero-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.project-hero-title {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  line-height: 1.18;
  margin-bottom: 0.85rem;
}

.project-hero-desc {
  font-size: clamp(0.96rem, 1.4vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.68;
  max-width: 700px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Project Slider Wrapper & Top Navigation Controls Bar
   -------------------------------------------------------------------------- */
.project-slider-wrapper {
  position: relative;
  width: 100%;
  outline: none;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.project-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.project-slider-tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.project-slider-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.project-slider-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.project-slider-tab .tab-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
}

.project-slider-tab .tab-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.8;
}

.project-slider-tab .tab-name {
  font-weight: 700;
}

.project-slider-tab .tab-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  border-left: 1px solid var(--border-medium);
  padding-left: 0.5rem;
  transition: color var(--transition-fast);
}

/* Active Tab Styles per Product */
.project-slider-tab.active {
  background: var(--bg-subtle);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.project-slider-tab[data-target="project-plantreum"].active {
  border-color: #059669;
  box-shadow: 0 0 16px rgba(5, 150, 105, 0.22);
}
.project-slider-tab[data-target="project-plantreum"].active .tab-name {
  color: var(--accent-plantreum);
}

.project-slider-tab[data-target="project-pillherb"].active {
  border-color: #0D9488;
  box-shadow: 0 0 16px rgba(13, 148, 136, 0.22);
}
.project-slider-tab[data-target="project-pillherb"].active .tab-name {
  color: var(--accent-pillherb);
}

.project-slider-tab[data-target="project-kanso"].active {
  border-color: #6366F1;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.22);
}
.project-slider-tab[data-target="project-kanso"].active .tab-name {
  color: var(--accent-kanso);
}

.project-slider-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.project-slide-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.project-slide-counter .counter-current {
  color: var(--text-primary);
  font-weight: 800;
}

.project-slide-counter .counter-sep {
  color: var(--text-muted);
}

.project-slide-counter .counter-total {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Slider Stage: Left Arrow + Viewport/Track + Right Arrow (Like index.html)
   -------------------------------------------------------------------------- */
.project-slider-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}

.project-arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  z-index: 10;
  position: sticky;
  top: calc(50vh - 24px);
  margin-top: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-fast);
}

.project-arrow-btn:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

.project-arrow-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.project-arrow-btn:disabled {
  opacity: 0.22;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.project-slider-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}

.project-slider-track {
  display: flex;
  flex-direction: row;
  width: 100%;
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  align-items: stretch;
}

.project-deepdive-article.project-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* Slide top brand color line */
#project-plantreum::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #34D399, transparent);
  z-index: 2;
}

#project-pillherb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0D9488, #22D3EE, transparent);
  z-index: 2;
}

#project-kanso::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366F1, #A855F7, transparent);
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Slider Bottom Pagination Dots & Swipe Guidance
   -------------------------------------------------------------------------- */
.project-slider-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding: 0 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.project-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.project-dot:hover {
  background: var(--text-secondary);
  transform: scale(1.2);
}

.project-dot.active {
  width: 32px;
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--border-glow);
}

.project-swipe-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}


.project-deepdive-article:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

/* Subtle corner ambient accent */
.project-accent-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.glow-plantreum {
  background: #059669;
}

.glow-verdia {
  background: #059669;
}

.glow-pillherb {
  background: var(--accent-pillherb);
}

.glow-kanso {
  background: var(--accent-kanso);
}

.project-inner-content {
  position: relative;
  z-index: 1;
}

/* Header within Deep Dive */
.deepdive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2.25rem;
}

.deepdive-num-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.deepdive-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deepdive-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.deepdive-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

.deepdive-subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Atmosphere & Aesthetic Ethos Box ("전체적인 느낌과 감성")
   -------------------------------------------------------------------------- */
.project-ethos-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.ethos-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.ethos-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ethos-keywords-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ethos-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.ethos-quote-main {
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.ethos-desc-detail {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Deep Dive Grid Layout (Left: Showcase & Features / Right: Specs & Store)
   -------------------------------------------------------------------------- */
.deepdive-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

/* Feature 4-Pillars Grid */
.feature-quad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-top: 2rem;
}

.feature-quad-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.feature-quad-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.feature-quad-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.feature-quad-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Right Column: Platform Matrix & Specs */
.sidebar-specs-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.specs-block-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.platform-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
}

.platform-chip svg {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
}

/* Pricing Highlight Card */
.pricing-pill-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

.pricing-pill-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pricing-pill-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Visual Frame in Deep Dive */
.deepdive-visual-wrap {
  margin-top: 1.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Navigation active indicator */
.nav-link.active {
  color: var(--accent-primary);
  font-weight: 700;
  background-color: var(--bg-subtle);
}

/* Toast Message */
.store-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  padding: 0.95rem 1.45rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100vw - 2rem);
}

.store-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .store-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1.5rem;
    justify-content: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .project-arrow-btn {
    width: 44px;
    height: 44px;
    margin-top: 1.25rem;
  }

  .deepdive-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 840px) {
  .project-slider-stage {
    display: grid;
    grid-template-areas:
      "viewport viewport"
      "prev next";
    gap: 1.25rem;
    justify-content: center;
  }

  .project-slider-viewport {
    grid-area: viewport;
    width: 100%;
  }

  .project-arrow-btn {
    position: static;
    margin-top: 0;
    width: 46px;
    height: 46px;
  }

  .project-arrow-btn.prev {
    grid-area: prev;
  }

  .project-arrow-btn.next {
    grid-area: next;
  }
}

@media (max-width: 768px) {
  .project-slider-tab .tab-tag {
    display: none;
  }

  .feature-quad-grid {
    grid-template-columns: 1fr;
  }

  .store-badges-container {
    flex-direction: column;
    align-items: stretch;
  }

  .store-btn {
    justify-content: center;
  }

  .deepdive-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}