/* Tailwind CSS (CDN version) */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Custom CSS Variables */
:root {
  --primary-color: #2B2E4A; /* Deep blue */
  --accent-color: #D43C33; /* Red */
  --bg-dark: #121212; /* Dark gray */
  --bg-black: #000000; /* Black */
  --text-white: #FFFFFF; /* White */
  --text-gray: #AAAAAA; /* Light gray */
  --card-radius: 12px;
  --status-bar-height: 44px;
  --nav-bar-height: 50px;
  --mini-player-height: 60px;
  --bottom-tab-height: 55px;
}

/* Global Styles */
body {
  font-family: 'SF Pro Text', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* iPhone 15 Pro sizing */
.iphone-frame {
  width: 393px;
  height: 852px;
  position: relative;
  overflow: hidden;
  border-radius: 45px;
  background-color: var(--bg-black);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.app-content {
  position: absolute;
  top: var(--status-bar-height);
  left: 0;
  right: 0;
  bottom: var(--bottom-tab-height);
  overflow-y: auto;
  background-color: var(--bg-dark);
}

/* Status Bar */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--status-bar-height);
  background-color: var(--bg-black);
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
  z-index: 100;
}

/* Navigation Tab Bar */
.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bottom-tab-height);
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 90;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 10px;
  padding: 6px 0;
}

.tab-item.active {
  color: var(--accent-color);
}

.tab-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

/* Mini Player */
.mini-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bottom-tab-height);
  height: var(--mini-player-height);
  background-color: rgba(43, 46, 74, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 15px;
  z-index: 80;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Content Cards */
.content-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 15px;
}

.podcast-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.podcast-sm-cover {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

/* Typography */
.title-lg {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
}

.title-md {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
}

.title-sm {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-white);
}

.body-text {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.4;
}

.caption {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-gray);
}

/* Buttons */
.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-white);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Player controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.control-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  cursor: pointer;
  font-size: 18px;
}

.control-btn.play-pause {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.progress-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-white);
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Audio waveform */
.audio-waveform {
  display: flex;
  align-items: center;
  height: 40px;
  gap: 2px;
}

.waveform-bar {
  width: 3px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 1px;
}

/* Utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-effect {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
