html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--hs-text-secondary);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

main {
  margin-bottom: 3rem;
}

/* Podcast specific styles */

.podcast-card {
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--hs-bg-secondary);
}

.podcast-card h5 {
  color: var(--hs-text-primary) !important;
  font-weight: 600;
}

.podcast-card .card-text {
  color: var(--hs-text-secondary) !important;
}

.podcast-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--hs-shadow);
}

.episode-item {
  background-color: var(--hs-bg-secondary);
  border-color: var(--hs-border-color);
  color: var(--hs-text-primary);
  transition: background-color 0.2s ease;
}

.episode-item h6 {
  color: var(--hs-text-primary) !important;
}

.episode-item .text-muted {
  color: var(--hs-text-secondary) !important;
}

.episode-item:hover {
  background-color: var(--hs-bg-tertiary);
}

.episode-item.active {
  background: linear-gradient(90deg, rgba(13, 110, 253, 0.1) 0%, transparent 100%);
  border-left: 4px solid var(--hs-primary);
}

/* Hero section */
.hero-section {
  background: var(--hs-gradient-primary);
  color: white;
  padding: 4rem 0;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px var(--hs-shadow);
}

.hero-section h1 {
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Grid items */
.grid-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--hs-shadow);
}

/* Player styling */
.player-controls {
  background-color: var(--hs-bg-secondary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--hs-border-color);
}

audio {
  border-radius: 0.25rem;
}

/* Search results */
.search-result {
  background-color: var(--hs-bg-secondary);
  border: 1px solid var(--hs-border-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px var(--hs-shadow);
}

/* Admin panel styles */
.admin-panel {
  background-color: var(--hs-bg-secondary);
  border: 1px solid var(--hs-border-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.admin-panel h4 {
  color: var(--hs-primary);
  margin-bottom: 1rem;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner-border {
  color: var(--hs-primary);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

footer.footer {
  background-color: var(--hs-bg-secondary);
  border-color: var(--hs-border-color);
  margin-top: auto;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

footer.footer p {
  margin: 0;
  line-height: 1.2;
}