/* ═════════════════════════════════════════════════
   ambience-fx.css — Ambience FX + Preset Packs
   Premium redesign: clean cards, smooth interactions,
   glassmorphism, balanced spacing.
═══════════════════════════════════════════════════ */

/* ── Section container ── */
.ambience-fx-section {
  margin: 8px 0 8px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}

/* ── Header ── */
.ambience-fx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
  border-radius: 14px;
}
.ambience-fx-header:hover {
  background: rgba(255,255,255,0.04);
}
.ambience-fx-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ambience-fx-header-left > span:first-child {
  font-size: 1.0rem;
  line-height: 1;
}

/* ── Arrow ── */
.ambience-fx-arrow {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
}
.ambience-fx-section.open .ambience-fx-arrow {
  transform: rotate(180deg);
  background: rgba(255,255,255,0.08);
}

/* ── Active dot ── */
.ambience-fx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}
.ambience-fx-section.has-active .ambience-fx-dot {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.6), 0 0 16px rgba(74,222,128,0.2);
}

/* ── Expandable body ── */
.ambience-fx-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s;
}
.ambience-fx-section.open .ambience-fx-body { max-height: 500px; padding: 4px 0 12px; }
.ambience-fx-inner { padding: 0 12px; }

/* ═══════════════════ PRESET PACKS ═══════════════════ */

/* Grid container */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 2px;
}

/* Preset buttons — emoji on top, text below */
.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
  gap: 4px;
  min-height: 60px;
}
.preset-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.preset-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.preset-btn:hover::before { opacity: 1; }
.preset-btn:active { transform: translateY(0) scale(0.97); }

/* Icon emoji */
.p-ico {
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.preset-btn:hover .p-ico { transform: scale(1.2); }

/* Label text */
.p-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  line-height: 1.2;
  transition: color 0.2s;
}
.preset-btn:hover .p-label { color: rgba(255,255,255,0.8); }

/* Active */
.preset-btn.active {
  background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.25);
  box-shadow: 0 0 24px rgba(74,222,128,0.1);
}
.preset-btn.active .p-label { color: rgba(74,222,128,0.9); }

/* ═══════════════════ FX GRID — same card language as packs ═══════════════════ */

.fx-minimal { padding: 6px 2px; }

.fx-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.fx-row {
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.fx-row::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.fx-row:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.fx-row:hover::before { opacity: 1; }
.fx-row:active { transform: translateY(0) scale(0.97); }

.fx-row .fx-icon {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fx-row:hover .fx-icon { transform: scale(1.2); }

.fx-row .fx-label {
  font-size: 0.66rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  line-height: 1.15;
  transition: color 0.2s;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-row:hover .fx-label { color: rgba(255,255,255,0.8); }

.fx-row .fx-tgl {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  box-shadow: none;
  transition: all .2s ease;
}
.fx-row .fx-tgl::after { display: none; }

.fx-row.active {
  background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.25);
  box-shadow: 0 0 24px rgba(74,222,128,0.1);
}
.fx-row.active .fx-label { color: rgba(74,222,128,0.9); }
.fx-row.active .fx-tgl {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.55), 0 0 16px rgba(74,222,128,0.18);
}

