/**
 * RecordingSelector Standalone Styles
 * 
 * Design System:
 * - Premium audio experience with fluid animations
 * - Asymmetric expansion on hover
 * - Sophisticated color transitions
 * - High-contrast typography hierarchy
 * - Primary Color: #C93939 (Red)
 * 
 * ===== 文字顏色修改指南 =====
 * 
 * 1. 主標題顏色 (選擇您的錄音規格)
 *    位置: .recording-selector-title { color: #ffffff; }
 * 
 * 2. 副標題顏色 (根據您的需求選擇最適合的錄音方案)
 *    位置: .recording-selector-subtitle { color: #d0d0d0; }
 * 
 * 3. 卡片標題顏色 (標準錄音 / 高級錄音)
 *    位置: .recording-card-title { color: #ffffff; }
 * 
 * 4. 卡片副標題顏色 (Standard Recording / Premium Recording)
 *    位置: .recording-card-subtitle-text { color: #e0e0e0; }
 * 
 * 5. 卡片描述文字顏色 (適合日常錄音需求...)
 *    位置: .recording-card-description { color: #b0b0b0; }
 * 
 * 6. 特性標題顏色 (主要特性)
 *    位置: .recording-card-features-title { color: #ffffff; }
 * 
 * 7. 特性項目文字顏色 (清晰的音質、穩定的性能...)
 *    位置: .recording-card-feature-item { color: #b0b0b0; }
 * 
 * 8. 規格標題顏色 (技術規格)
 *    位置: .recording-card-specs-title { color: #ffffff; }
 * 
 * 9. 規格標籤顏色 (位元率、採樣率...)
 *    位置: .recording-card-spec-label { color: #d0d0d0; }
 * 
 * 10. 規格數值顏色 (128 kbps、44.1 kHz...)
 *     位置: .recording-card-spec-value { color: #ffffff; }
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: transparent;
  color: #ffffff;
  line-height: 1.6;
}

/* ===== Container & Wrapper ===== */

.recording-selector-container {
  width: 100%;
  padding: 4rem 2rem;
  background: transparent;
}

.recording-selector-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.recording-selector-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.recording-selector-subtitle {
  font-size: 1.125rem;
  color: #d0d0d0;
  font-weight: 400;
  line-height: 1.6;
}

.recording-selector-wrapper {
  display: flex;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  height: 500px;
}

/* ===== Recording Card Base ===== */

.recording-card {
  flex: 1;
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  background: white;
  min-width: 0;
  border: none;
  animation: cardPulse 2.5s ease-in-out infinite;
}

@keyframes cardPulse {
  0%, 100% {
    border-color: rgba(201, 57, 57, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  }
  50% {
    border-color: rgba(201, 57, 57, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(201, 57, 57, 0.2);
  }
}

.recording-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 30px rgba(201, 57, 57, 0.3);
  border-color: rgba(201, 57, 57, 0.5);
  animation: none;
}

/* Normal 狀態下的底部左右開合展開箭頭提示 */
.recording-card::before {
  content: '< >';
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: #ffffff;
  opacity: 0.8;
  transition: all 0.4s ease;
  z-index: 2;
  pointer-events: none;
  animation: expandArrow 2s ease-in-out infinite;
}

@keyframes expandArrow {
  0%, 100% {
    letter-spacing: 0.3em;
    opacity: 0.7;
  }
  50% {
    letter-spacing: 0.6em;
    opacity: 0.9;
  }
}

/* Hover 時隱藏底部箭頭 */
.recording-card:hover::before {
  opacity: 0 !important;
  animation: none;
}

/* ===== Background Layer ===== */

.recording-card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.recording-card-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.recording-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.recording-card.expanded .recording-card-overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.recording-card.compressed .recording-card-overlay {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

/* ===== Content Container ===== */

.recording-card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.recording-card-content::-webkit-scrollbar {
  width: 6px;
}

.recording-card-content::-webkit-scrollbar-track {
  background: transparent;
}

.recording-card-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.recording-card-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== Header (Title Section) ===== */

.recording-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.recording-card-title-group {
  flex: 1;
  width: 100%;
}

.recording-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: all 0.4s ease;
  text-align: center;
}

.recording-card.expanded .recording-card-title {
  font-size: 1.5rem;
  text-align: left;
}

.recording-card.compressed .recording-card-title {
  font-size: 1.5rem;
  opacity: 0.7;
  text-align: center;
}

.recording-card-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  transition: justify-content 0.4s ease;
}

.recording-card.expanded .recording-card-title-wrapper {
  justify-content: flex-start;
}

.recording-card-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #C93939;
  opacity: 0;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}

.recording-card.expanded .recording-card-price {
  opacity: 1;
}

.recording-card-subtitle-text {
  font-size: 0.875rem;
  color: #e0e0e0;
  margin: 0.5rem 0 0 0;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
  text-align: center;
}

.recording-card.expanded .recording-card-subtitle-text {
  text-align: left;
}

.recording-card.compressed .recording-card-subtitle-text {
  opacity: 0.5;
}

.recording-card-accent-line {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
  flex-shrink: 0;
  margin-top: 0.5rem;
  background-color: #C93939;
}

.recording-card.expanded .recording-card-header {
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
}

.recording-card.expanded .recording-card-accent-line {
  opacity: 1;
}

/* ===== Details Section (Expanded Content) ===== */

.recording-card-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

.recording-card.expanded .recording-card-details {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.recording-card-description {
  font-size: 0.95rem;
  color: #b0b0b0;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

/* ===== Professional Section (Premium Card) ===== */

.recording-card-professional {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.recording-card-avatar-container {
  flex-shrink: 0;
}

.recording-card-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #C93939;
  box-shadow: 0 4px 12px rgba(201, 57, 57, 0.2);
}

.recording-card-features-right {
  flex: 1;
  text-align: left;
  margin-left: 1rem;
}

.recording-card-features-right .recording-card-features-list {
  align-items: flex-start;
}

.recording-card-features-right .recording-card-feature-item {
  justify-content: flex-start;
}

.recording-card-features-right .recording-card-feature-dot {
  order: 0;
  margin-left: 0;
  margin-right: 0.75rem;
}

/* ===== Features Section ===== */

.recording-card-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recording-card-features-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recording-card-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recording-card-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #b0b0b0;
  margin: 0;
}

.recording-card-feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C93939;
  flex-shrink: 0;
}

/* ===== Specs Section ===== */

.recording-card-specs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recording-card-specs-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recording-card-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.recording-card-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  border-left: 3px solid #C93939;
}

.recording-card-spec-label {
  font-size: 0.75rem;
  color: #d0d0d0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recording-card-spec-value {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 600;
}

/* ===== File Section - 隱藏（改用自訂播放器）===== */

.recording-card-file {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recording-card-file-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recording-card-file-item {
  display: none;
}

.recording-card-file-button {
  display: none;
}

/* ===== 自訂音樂播放器 ===== */

.recording-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.75rem;
  border: 1px solid rgba(201, 57, 57, 0.3);
}

.recording-player-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #C93939;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  padding: 0;
}

.recording-player-button:hover {
  background: #d94949;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(201, 57, 57, 0.4);
}

.recording-player-button:active {
  transform: scale(0.95);
}

.recording-player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.recording-player-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recording-player-time {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #d0d0d0;
}

.recording-player-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.recording-player-progress-bar {
  height: 100%;
  background: #C93939;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.recording-player-progress:hover .recording-player-progress-bar {
  background: #d94949;
}

/* ===== CTA Button ===== */

.recording-card-cta {
  margin-top: auto;
  padding: 0.875rem 1.5rem;
  background: #C93939;
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.recording-card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.recording-card-cta:active {
  transform: translateY(0);
}

.recording-card.compressed .recording-card-cta {
  opacity: 0;
  pointer-events: none;
}

/* ===== State Transitions ===== */

.recording-card.expanded {
  flex: 1.8;
  animation: none;
}

.recording-card.compressed {
  flex: 0.6;
  opacity: 0.8;
  animation: none;
}

.recording-card.compressed .recording-card-details {
  display: none;
}

/* 展開或壓縮時停止脈動動畫 */
.recording-card.expanded,
.recording-card.compressed {
  animation: none;
}

/* ===== Responsive Design ===== */

@media (max-width: 768px) {
  .recording-selector-container {
    padding: 2rem 1rem;
  }

  .recording-selector-title {
    font-size: 1.75rem;
  }

  .recording-selector-subtitle {
    font-size: 1rem;
  }

  .recording-selector-wrapper {
    height: auto;
    flex-direction: column;
    gap: 1rem;
  }

  .recording-card {
    height: 400px;
    min-height: 400px;
  }

  .recording-card.expanded,
  .recording-card.compressed {
    flex: 1;
    opacity: 1;
  }

  .recording-card-content {
    padding: 1.5rem;
  }

  .recording-card-title {
    font-size: 1.5rem;
  }

  .recording-card-specs-grid {
    grid-template-columns: 1fr;
  }

  .recording-card-professional {
    flex-direction: column;
    align-items: center;
  }

  .recording-card-features-right {
    text-align: center;
    margin-left: 0;
  }

  .recording-card-features-right .recording-card-features-list {
    align-items: center;
  }

  .recording-card-features-right .recording-card-feature-item {
    justify-content: center;
  }

  .recording-card-features-right .recording-card-feature-dot {
    order: 0;
    margin-left: 0.75rem;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .recording-selector-container {
    padding: 1.5rem 1rem;
  }

  .recording-selector-title {
    font-size: 1.5rem;
  }

  .recording-selector-subtitle {
    font-size: 0.95rem;
  }

  .recording-card {
    height: 350px;
  }

  .recording-card-content {
    padding: 1rem;
  }

  .recording-card-title {
    font-size: 1.25rem;
  }

  .recording-card-header {
    margin-bottom: 1rem;
  }

  .recording-card-details {
    gap: 1rem;
  }

  .recording-card-avatar {
    width: 100px;
    height: 100px;
  }
}


/* ===== Recording Experience Section ===== */

.recording-experience-section {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('/img/sound.webp') right/auto 100% no-repeat;
  background-color:rgba(0, 0, 0, 1);
  padding: 3rem 1rem;
  margin-top: 2rem;
}

.recording-experience-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.recording-experience-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.recording-experience-subtitle {
  font-size: 1.125rem;
  color: #d0d0d0;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto; 
  margin-right: auto;
}

.recording-experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.recording-experience-column {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recording-experience-column:first-child {
  border-right: none;
}

.recording-experience-item {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.5;
  padding: 0.5rem 0;
  text-align: center;
}

/* ===== Responsive Design for Experience Section ===== */

@media (max-width: 768px) {
  .recording-experience-section {
    padding: 2rem 1rem;
  }

  .recording-experience-container {
    padding: 0 0.5rem;
  }

  .recording-experience-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .recording-experience-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .recording-experience-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .recording-experience-column {
    padding: 0;
  }

  .recording-experience-column:first-child {
    border-right: none;
    border-bottom: none;
  }

  .recording-experience-item {
    font-size: 0.9rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .recording-experience-section {
    padding: 1.5rem 0.75rem;
  }

  .recording-experience-title {
    font-size: 1.25rem;
  }

  .recording-experience-subtitle {
    font-size: 0.95rem;
  }

  .recording-experience-column {
    padding: 0;
  }

  .recording-experience-item {
    font-size: 0.85rem;
    padding: 0.4rem 0;
    text-align: center;
  }
}
