/* ==========================================================================
   FEATURES PAGE STYLES (Z-Axis & Modular)
   ========================================================================== */

.text-center {
  text-align: center;
}

.pt-0 {
  padding-top: 0;
}

.mt-4 {
  margin-top: 2rem;
}

/* Gallery Component */
.gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.gallery-tab {
  background: var(--bg-card-outer);
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.4s var(--ease-fluid);
}

.gallery-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.gallery-tab.active {
  background: var(--text-main);
  color: var(--bg-oled);
  border-color: var(--text-main);
}

.gallery-display {
  min-height: 500px;
}

.gallery-panel {
  display: none;
  flex-direction: column;
  gap: 2.5rem;
  height: 100%;
  animation: fadeUpPanel 0.8s var(--ease-fluid) forwards;
}

.gallery-panel.active {
  display: flex;
}

@keyframes fadeUpPanel {
  from { opacity: 0; transform: translateY(2rem); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.placeholder-img {
  flex-grow: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-oled);
  border: 1px dashed var(--hairline);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: monospace;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.placeholder-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  z-index: 1;
}

.placeholder-img:has(img) > span {
  display: none;
}

.placeholder-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--accent-glow) 0%, transparent 50%);
  opacity: 0.3;
  pointer-events: none;
  z-index: 2;
}

.terminal-style {
  background: #000;
  color: #0f0;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1.5rem;
  border-style: solid;
  border-color: var(--accent-slate);
}

.panel-desc {
  padding-top: 2rem;
  border-top: 1px solid var(--hairline-subtle);
}
.panel-desc p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.75;
}

/* App Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.app-card {
  transition: transform 0.4s var(--ease-fluid);
}
.app-card:hover {
  transform: translateY(-8px);
}

.app-icon {
  margin-bottom: 1.5rem;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-oled);
  border-radius: 1rem;
  border: 1px solid var(--hairline);
}

.app-icon img {
  width: 2rem;
  height: 2rem;
  filter: brightness(0) saturate(100%) invert(77%) sepia(84%) saturate(1245%) hue-rotate(151deg) brightness(96%);
}

.app-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.app-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* Tweak Section */
.tweak-section .doppel-core {
  background: linear-gradient(to right, var(--bg-card-inner), rgba(35, 127, 240, 0.16));
}
.tweak-content {
  max-width: 600px;
}
.tweak-content p {
  color: var(--text-muted);
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Mobile Fallback */
@media (max-width: 768px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  .gallery-controls {
    flex-wrap: wrap;
  }
}
