/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url("/assets/design_system-339360c2.css");

/* Base Tailwind CSS */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* PWA Safe Area Support */
@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  nav {
    padding-top: env(safe-area-inset-top);
  }
  
  nav > div {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* iOS Style Episode Progress */
.episode-item {
  transition: all 0.2s ease;
}

.episode-item:active {
  transform: scale(0.98);
}

.progress-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-bar {
  position: relative;
  height: 3px;
  width: 50px;
  background-color: rgba(229, 231, 235, 0.2);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.see-all-button {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* PWA Standalone Mode Specific Styles */
@media all and (display-mode: standalone) {
  nav > div {
    max-width: 100%;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  @media (min-width: 1024px) {
    nav > div {
      max-width: 80rem;
    }
  }
}

/* Dark Theme Enhancements */
body {
  background: #000000;
  color: #ffffff;
}

/* Dark theme for select dropdowns */
select {
  background-color: #111111;
  color: #ffffff;
}

select option {
  background-color: #111111;
  color: #ffffff;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Standard Card Styles */
.card-dark {
  background: rgba(24, 24, 24, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
}

.card-dark-elevated {
  background: rgba(32, 32, 32, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Glassmorphism Effects */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glow Effects */
.glow-green {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.glow-green-lg {
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
}

/* Smooth Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 40px rgba(34, 197, 94, 0.6); }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

.animate-slideUp {
  animation: slideUp 0.6s ease-out;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Custom Progress Slider Styles */
.progress-slider {
  background: transparent;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.progress-slider::-webkit-slider-track {
  background: transparent;
  height: 16px;
  border-radius: 4px;
}

.progress-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: #1db954;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
  border: 2px solid #1db954;
  margin-top: 0;
  transition: all 0.2s ease;
}

.progress-slider::-moz-range-track {
  background: transparent;
  height: 16px;
  border-radius: 4px;
  border: none;
}

.progress-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #1db954;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #1db954;
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
  margin-top: 0;
  transition: all 0.2s ease;
}

.progress-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.7);
}

.progress-slider::-moz-range-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.7);
}
