/* 
  Ctrl+Alt+230 Podcast Website Stylesheet
  A professional, law and podcast-themed design
*/

:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --tertiary-color: #3498db;
  --light-color: #ecf0f1;
  --dark-color: #1a252f;
  --text-color: #333;
  --border-radius: 5px;
  --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f7fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--tertiary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.logo-link:hover {
  color: inherit;
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  padding: 5px;
}

.logo-image {
  height: 90px;
  width: 90px;
  border-radius: 4px;
  margin-right: 20px;
  object-fit: cover;
  border: 2px solid var(--light-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              filter 0.4s ease,
              border-color 0.4s ease;
  position: relative;
  z-index: 2;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 8px 20px rgba(52, 152, 219, 0.5); }
  100% { box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); }
}

@keyframes wave-pulse {
  0% { 
    transform: scale(1);
    opacity: 0.8;
    border-color: var(--tertiary-color);
  }
  70% {
    opacity: 0.2;
    border-color: rgba(52, 152, 219, 0.3);
  }
  100% { 
    transform: scale(1.8);
    opacity: 0;
    border-color: rgba(52, 152, 219, 0);
  }
}

.logo::before,
.logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  border-radius: 4px;
  background: transparent;
  border: 2px solid var(--tertiary-color);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.logo .wave-3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  border-radius: 4px;
  background: transparent;
  border: 2px solid var(--tertiary-color);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.logo:hover::before {
  animation: wave-pulse 2s infinite ease-out;
}

.logo:hover::after {
  animation: wave-pulse 2s infinite 0.6s ease-out;
}

.logo:hover .wave-3 {
  animation: wave-pulse 2s infinite 1.2s ease-out;
}

.logo:hover .logo-image {
  transform: scale(1.15);
  filter: brightness(1.1);
  animation: pulse-glow 1.5s infinite;
  border-color: var(--tertiary-color);
}

.logo-text {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.logo:hover .logo-text {
  transform: translateX(10px);
}

.logo h1 {
  font-size: 2rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover h1 {
  color: var(--tertiary-color);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.tagline {
  font-style: italic;
  opacity: 0.9;
  font-size: 0.9rem;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.logo:hover .tagline {
  opacity: 1;
  color: var(--tertiary-color);
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, var(--primary-color), var(--dark-color));
  color: white;
  padding: 60px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--light-color);
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 90%;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.highlight-video h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: var(--light-color);
}

.video-container {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: var(--border-radius);
  background-color: rgba(0, 0, 0, 0.2);
  box-shadow: var(--box-shadow);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.placeholder-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  font-weight: bold;
  border-radius: var(--border-radius);
}

/* Episodes Section */
.episodes {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.episodes h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--primary-color);
  position: relative;
}

.episodes h2:after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 10px auto 0;
}

.episode {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 40px;
  overflow: hidden;
}

.episode-header {
  padding: 20px;
  background-color: var(--primary-color);
  color: white;
}

.episode-header h3 {
  font-size: 1.4rem;
}

.episode-content {
  padding: 20px;
}

/* Tabs System */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.tab-btn {
  padding: 8px 15px;
  background-color: #f5f5f5;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.tab-btn:hover {
  background-color: #e0e0e0;
}

.tab-btn.active {
  background-color: var(--tertiary-color);
  color: white;
}

.tab-pane {
  display: none;
  margin-top: 15px;
}

.tab-pane.active {
  display: block;
}

.tab-pane ul li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.tab-pane ul li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.timestamp {
  color: var(--tertiary-color);
  font-weight: bold;
  margin-right: 10px;
}

.timestamp-link {
  color: var(--tertiary-color);
  font-weight: bold;
  margin-right: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.timestamp-link:hover {
  color: var(--secondary-color);
  transform: scale(1.05);
}

/* Resources Section */
.resources {
  padding: 80px 0;
  background-color: white;
}

.resources h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--primary-color);
  position: relative;
}

.resources h2:after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 10px auto 0;
}

.resources .container {
  max-width: 1200px;
  width: 100%;
}

.resource-categories-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
  width: 100%;
}

.resource-category {
  background-color: #f9f9f9;
  padding: 20px 25px 20px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Add a subtle scrollbar indicator only to scrollable content */
.resource-category.has-scroll::after {
  content: '';
  position: absolute;
  top: 55px;
  right: 12px;
  width: 8px;
  height: 50px;
  background: linear-gradient(to bottom, 
              rgba(52, 152, 219, 0.3), 
              rgba(52, 152, 219, 0.1), 
              rgba(52, 152, 219, 0));
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.resource-category.has-scroll:hover::after {
  opacity: 0.7;
}

.resource-category:hover {
  transform: translateY(-5px);
}

.resource-category h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--tertiary-color);
  padding-bottom: 8px;
}

/* Scrollable container styling */
.scrollable-links {
  max-height: 200px;
  overflow-y: scroll !important; /* Force scrollbar to always show */
  padding-right: 24px; /* Increased padding to prevent content overlap with scrollbar */
  margin-right: -12px; /* Pull back some space to prevent container expansion */
  position: relative;

  /* Firefox scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--tertiary-color) #f0f0f0;
  
  /* IE scrollbar styling */
  -ms-overflow-style: scrollbar;
}

/* Chrome and Safari scrollbar styling */
.scrollable-links::-webkit-scrollbar {
  width: 12px !important; /* Increased width for better visibility */
  background-color: #f0f0f0 !important;
  display: block !important;
  border-left: 1px solid #e0e0e0 !important;
}

.scrollable-links::-webkit-scrollbar-track {
  background: #f0f0f0 !important;
  border-radius: 10px !important;
  margin: 4px !important;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.1) !important;
}

.scrollable-links::-webkit-scrollbar-thumb {
  background-color: var(--tertiary-color) !important;
  border-radius: 10px !important;
  border: 3px solid #f0f0f0 !important;
  min-height: 40px !important;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.2) !important;
}

.scrollable-links::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-color) !important;
}

/* Add right margin to list items to keep text away from scrollbar */
.resource-links {
  padding-right: 5px;
}

.resource-links li {
  margin-bottom: 10px;
  padding-right: 10px;
  position: relative;
  word-break: break-word; /* Prevent text from extending past container */
}

.resource-links li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 5px;
}

.resource-links li a i {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: 10px;
  flex-shrink: 0;
}

.listen-platforms {
  text-align: center;
  margin-top: 50px;
}

.listen-platforms h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.platform-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.platform-icon {
  font-size: 2rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.platform-icon:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

/* Team Section */
.team {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.team h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--primary-color);
  position: relative;
}

.team h2:after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 10px auto 0;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

.team-member {
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 15px;
  overflow: hidden;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-image {
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.team-member h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.member-role {
  font-size: 0.9rem;
  color: var(--tertiary-color);
  font-style: italic;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .hero-content p {
    max-width: 100%;
  }
  
  .tabs {
    overflow-x: auto;
    padding-bottom: 15px;
  }
  
  .tab-btn {
    flex-shrink: 0;
  }
  
  .team-members {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.6rem;
  }
  
  header .container {
    flex-direction: column;
  }
  
  nav {
    margin-top: 15px;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .team-members {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Interview Questions Styling */
.interview-section {
  margin-bottom: 30px;
}

.interview-section h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--tertiary-color);
}

.interview-questions li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  line-height: 1.5;
}

.interview-questions li:before {
  content: '❓';
  position: absolute;
  left: 0;
  color: var(--tertiary-color);
} 