/* Bio Bootcamp Podcast RSS Widget Styles */

.podcast-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: 0;
  padding: 0;
}

.podcast-card {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.podcast-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #007cba;
}

.podcast-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007cba, #00a0f3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.podcast-header {
  margin-bottom: 16px;
  padding: 0;
}

.podcast-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px 0;
  color: #1a1a1a;
}

.podcast-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.podcast-title a:hover {
  color: #007cba;
}

.podcast-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: #6b7280;
}

.podcast-date,
.podcast-duration {
  display: flex;
  align-items: center;
  gap: 6px;
}

.podcast-date::before {
  content: "📅";
  font-size: 0.75rem;
}

.podcast-duration::before {
  content: "⏱️";
  font-size: 0.75rem;
}

.podcast-excerpt {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
  padding: 0;
}

.podcast-actions {
  margin-top: 20px;
  padding: 0;
}

.podcast-listen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #007cba, #00a0f3);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
  position: relative;
  overflow: hidden;
}

.podcast-listen-btn::before {
  content: "🎧";
  margin-right: 8px;
  font-size: 0.9rem;
}

.podcast-listen-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 124, 186, 0.4);
  color: #ffffff;
}

.podcast-listen-btn:active {
  transform: translateY(0);
}

.podcast-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .podcast-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .podcast-card {
    padding: 20px;
  }

  .podcast-header {
    padding: 0;
  }

  .podcast-excerpt {
    padding: 0;
  }

  .podcast-actions {
    padding: 0;
  }

  .podcast-title {
    font-size: 1.125rem;
  }

  .podcast-meta {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .podcast-card {
    padding: 16px;
  }

  .podcast-header {
    padding: 0;
  }

  .podcast-excerpt {
    padding: 0;
  }

  .podcast-actions {
    padding: 0;
  }

  .podcast-title {
    font-size: 1rem;
  }

  .podcast-listen-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Loading State */
.podcast-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: #6b7280;
}

.podcast-loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #007cba;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 12px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Custom Elementor Controls */
.elementor-control-podcast-grid .elementor-control-input-wrapper {
  margin-bottom: 15px;
}

.elementor-control-podcast-grid .elementor-control-field-description {
  font-style: italic;
  color: #6b7280;
  margin-top: 5px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .podcast-card {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }

  .podcast-title {
    color: #f9fafb;
  }

  .podcast-title a:hover {
    color: #60a5fa;
  }

  .podcast-excerpt {
    color: #d1d5db;
  }

  .podcast-meta {
    color: #9ca3af;
  }

  .podcast-error {
    background: #1f2937;
    border-color: #dc2626;
    color: #fca5a5;
  }
}

/* Accessibility Improvements */
.podcast-title a:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
  border-radius: 4px;
}

.podcast-listen-btn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .podcast-card {
    border-width: 2px;
  }

  .podcast-listen-btn {
    border: 2px solid #ffffff;
  }
}

/* Embedded Spreaker Player Styles */
.spreaker-player {
  display: block;
  width: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #64748b;
  font-size: 0.875rem;
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.spreaker-player::before {
  content: "🎧";
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
  opacity: 0.7;
}

.spreaker-player:hover {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-color: #007cba;
  color: #007cba;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 124, 186, 0.1);
}

.spreaker-player:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

/* Dark mode support for player */
@media (prefers-color-scheme: dark) {
  .spreaker-player {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
    color: #cbd5e1;
  }

  .spreaker-player:hover {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #60a5fa;
    color: #60a5fa;
  }
}

/* Player loading state */
.spreaker-player.loading {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive player adjustments */
@media (max-width: 768px) {
  .spreaker-player {
    min-height: 180px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .spreaker-player {
    min-height: 160px;
    padding: 12px;
  }
}
