/* ═══════════════════════════════════════════
   SendenSana — Components
   ═══════════════════════════════════════════ */

/* ── Language Selector ── */
.lang-selector {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--c-border);
  color: var(--c-text-secondary);
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 20px;
}

.lang-selector:hover {
  border-color: var(--c-primary);
  color: var(--c-text);
}

.lang-selector option {
  background: var(--c-bg);
  color: var(--c-text);
}

/* ── Glass Card ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  transition: all var(--dur-normal) var(--ease-out);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--c-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Practice Menu Card ── */
.practice-card {
  padding: var(--sp-3) var(--sp-3);
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  opacity: 0;
  transition: opacity var(--dur-normal);
}

.practice-card:hover::before { opacity: 1; }

.practice-card__icon {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-2);
  display: block;
}

.practice-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
  color: var(--c-text);
  margin-bottom: var(--sp-1);
}

.practice-card__subtitle {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── Timer ── */
.timer-display {
  font-size: var(--fs-timer);
  font-weight: 700;
  color: var(--c-primary);
  text-shadow: 0 0 30px var(--c-primary-glow);
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  margin: var(--sp-4) 0;
}

/* ── Control Group ── */
.control-group {
  margin-bottom: var(--sp-5);
}

.control-group__label {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-3);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.control-group__options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* ── Control Button (duration, sound, frequency) ── */
.ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--c-text-secondary);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-in-out);
  min-width: 52px;
  text-align: center;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--c-text);
}

.ctrl-btn--selected {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-glow-primary);
}

/* ── Action Buttons ── */
.btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  cursor: pointer;
  border: none;
  transition: all var(--dur-fast) var(--ease-in-out);
}

.btn--primary {
  background: linear-gradient(135deg, var(--c-primary), #7c3aed);
  color: white;
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--fs-lg);
  box-shadow: var(--shadow-glow-primary);
}

.btn--primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px var(--c-primary-glow);
}

.btn--ghost {
  background: none;
  color: var(--c-text-muted);
  padding: var(--sp-2) var(--sp-4);
}

.btn--ghost:hover { color: var(--c-text); }

.btn--outline {
  background: rgba(139, 92, 246, 0.1);
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
}

.btn--outline:hover {
  background: rgba(139, 92, 246, 0.2);
}

/* ── Volume Slider ── */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-full);
  cursor: pointer;
  margin-top: var(--sp-2);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 8px var(--c-primary-glow);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-primary);
  border: none;
  cursor: pointer;
}

/* ── Practice Info Note ── */
.info-note {
  font-size: var(--fs-base);
  color: var(--c-text-secondary);
  max-width: 700px;
  padding: 0 var(--sp-5);
  margin: var(--sp-4) auto;
  line-height: 1.8;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  font-weight: 300;
  transition: opacity var(--dur-slow), max-height var(--dur-slow), margin var(--dur-slow);
  overflow: hidden;
}

.info-note--collapsed {
  opacity: 0;
  max-height: 0;
  margin: 0 auto;
}

.info-note h4 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  color: var(--c-text);
  font-size: var(--fs-xl);
}

.info-note h4:first-child { margin-top: 0; }

/* ── Platform Links ── */
.platform-links {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--r-md);
}

.platform-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-sm);
  transition: all var(--dur-fast);
}

.platform-link:hover { background: rgba(255, 255, 255, 0.06); }
.platform-link--spotify { color: var(--c-spotify); }
.platform-link--youtube { color: var(--c-youtube); }
.platform-link--apple { color: var(--c-apple); }

/* ── Frequency Badge ── */
.freq-badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  color: var(--c-primary);
  letter-spacing: 0.5px;
}

/* ── Solfej Info Panel (playing overlay) ── */
.solfej-info-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  max-width: 380px;
  width: calc(100% - 32px);
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: center;
  animation: solfejInfoIn 1.2s ease forwards;
  pointer-events: none;
}

@keyframes solfejInfoIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.solfej-info-panel__freq {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.solfej-info-panel__chakra {
  display: inline-block;
  padding: 3px 14px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-primary);
}

.solfej-info-panel__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.solfej-info-panel__benefit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  max-width: 340px;
}

/* ── Breath Circle (Nefes Rehberi) ── */
.breath-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid var(--c-accent);
  box-shadow: 0 0 40px var(--c-accent-glow), inset 0 0 40px var(--c-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--sp-8) auto;
  transition: transform 1s var(--ease-in-out);
}

.breath-circle__text {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--c-accent);
}

/* ── Concentration Focus Elements ── */
.focus-element {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.focus-element--active { display: block; }

/* 1. Nefes Noktası — breathing dot */
.focus-breath-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, white 0%, rgba(139,92,246,0.6) 50%, transparent 70%);
  box-shadow:
    0 0 20px 8px rgba(255,255,255,0.4),
    0 0 60px 20px rgba(139,92,246,0.2);
  animation: breathDot 8s infinite ease-in-out;
}

@keyframes breathDot {
  0%   { transform: translate(-50%,-50%) scale(0.6); box-shadow: 0 0 15px 5px rgba(255,255,255,0.3), 0 0 40px 15px rgba(139,92,246,0.15); }
  25%  { transform: translate(-50%,-50%) scale(1.4); box-shadow: 0 0 30px 12px rgba(255,255,255,0.5), 0 0 80px 30px rgba(139,92,246,0.3); }
  50%  { transform: translate(-50%,-50%) scale(1.4); box-shadow: 0 0 25px 10px rgba(255,255,255,0.4), 0 0 70px 25px rgba(139,92,246,0.25); }
  75%  { transform: translate(-50%,-50%) scale(0.6); box-shadow: 0 0 15px 5px rgba(255,255,255,0.3), 0 0 40px 15px rgba(139,92,246,0.15); }
  100% { transform: translate(-50%,-50%) scale(0.6); box-shadow: 0 0 15px 5px rgba(255,255,255,0.3), 0 0 40px 15px rgba(139,92,246,0.15); }
}

/* 2. Kutsal Geometri — Sri Yantra (400x400, ortalanmış, Kozmik Göz ile aynı boyut) */
.focus-yantra {
  width: 400px;
  height: 400px;
  animation: yantraRotate 120s linear infinite;
  opacity: 0.85;
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.3));
}

@keyframes yantraRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 3. Derin Nokta — ripple rings (400x400, ortalanmış, Kozmik Göz ile aynı boyut) */
.focus-ripple {
  width: 400px;
  height: 400px;
  position: relative;
}

.focus-ripple__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #ffffff 30%, rgba(139,92,246,0.8) 100%);
  border-radius: 50%;
  box-shadow:
    0 0 12px 6px rgba(255,255,255,0.5),
    0 0 35px 12px rgba(139,92,246,0.25);
}

.focus-ripple__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: rippleExpand 5s infinite ease-out;
}

.focus-ripple__ring:nth-child(2) { animation-delay: 0s; }
.focus-ripple__ring:nth-child(3) { animation-delay: 1.25s; }
.focus-ripple__ring:nth-child(4) { animation-delay: 2.5s; }
.focus-ripple__ring:nth-child(5) { animation-delay: 3.75s; }

@keyframes rippleExpand {
  0%   { width: 10px; height: 10px; margin-top: -5px; margin-left: -5px; opacity: 0.8; border-color: rgba(255,255,255,0.5); }
  100% { width: 400px; height: 400px; margin-top: -200px; margin-left: -200px; opacity: 0; border-color: rgba(139,92,246,0.1); }
}

/* 4. Kozmik Göz — büyük, etkileyici, nefes alan göz */
.focus-cosmic {
  width: 400px;
  height: 400px;
  position: relative;
}

.focus-cosmic__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #ffffff 30%, rgba(139,92,246,0.8) 100%);
  border-radius: 50%;
  box-shadow:
    0 0 15px 8px rgba(255,255,255,0.5),
    0 0 40px 15px rgba(139,92,246,0.3),
    0 0 80px 30px rgba(139,92,246,0.1);
  animation: cosmicPulse 4s ease-in-out infinite;
}

.focus-cosmic__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border-style: solid;
}

.focus-cosmic__ring--1 {
  width: 80px; height: 80px; margin: -40px 0 0 -40px;
  border-width: 2px;
  border-color: rgba(139,92,246,0.6);
  box-shadow: 0 0 15px rgba(139,92,246,0.2), inset 0 0 15px rgba(139,92,246,0.1);
  animation: cosmicSpin 10s linear infinite, cosmicBreath 6s ease-in-out infinite;
}
.focus-cosmic__ring--2 {
  width: 160px; height: 160px; margin: -80px 0 0 -80px;
  border-width: 1.5px;
  border-color: rgba(6,182,212,0.45);
  box-shadow: 0 0 20px rgba(6,182,212,0.15), inset 0 0 20px rgba(6,182,212,0.08);
  animation: cosmicSpin 18s linear infinite reverse, cosmicBreath 8s ease-in-out infinite 1s;
}
.focus-cosmic__ring--3 {
  width: 260px; height: 260px; margin: -130px 0 0 -130px;
  border-width: 1px;
  border-color: rgba(212,175,55,0.3);
  box-shadow: 0 0 25px rgba(212,175,55,0.1), inset 0 0 25px rgba(212,175,55,0.05);
  animation: cosmicSpin 28s linear infinite, cosmicBreath 10s ease-in-out infinite 2s;
}
.focus-cosmic__ring--4 {
  width: 380px; height: 380px; margin: -190px 0 0 -190px;
  border-width: 0.5px;
  border-color: rgba(139,92,246,0.2);
  box-shadow: 0 0 30px rgba(139,92,246,0.06);
  animation: cosmicSpin 40s linear infinite reverse, cosmicBreath 12s ease-in-out infinite 3s;
}

@keyframes cosmicSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes cosmicPulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); box-shadow: 0 0 15px 8px rgba(255,255,255,0.5), 0 0 40px 15px rgba(139,92,246,0.3); }
  50% { transform: translate(-50%,-50%) scale(1.3); box-shadow: 0 0 25px 12px rgba(255,255,255,0.6), 0 0 60px 25px rgba(139,92,246,0.4); }
}

@keyframes cosmicBreath {
  0%, 100% { transform: rotate(var(--r, 0deg)) scale(1); opacity: 1; }
  50% { transform: rotate(var(--r, 0deg)) scale(1.06); opacity: 0.7; }
}

/* ── Mirror Video ── */
.mirror-video {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scaleX(-1);
  width: auto;
  height: 100%;
  z-index: 0;
  object-fit: cover;
}

.mirror-video--active { display: block; }

/* ── Feedback Form ── */
.form {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  text-align: left;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-bg-elevated);
  color: var(--c-text);
  font-size: var(--fs-base);
  font-family: var(--font-body);
  transition: border-color var(--dur-fast);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--c-primary);
  outline: none;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  background: linear-gradient(135deg, var(--c-primary), #7c3aed);
  color: white;
  border: none;
  padding: var(--sp-4);
  font-size: var(--fs-lg);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: all var(--dur-fast);
}

.form__submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-primary);
}
