@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

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

body {
    font-family: 'Merriweather', Georgia, serif;
    line-height: 1.8;
    color: #333;
    background-color: #f8f9fa;
}

/* Default link colors */
a {
    color: #4A90E2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #4A90E2;
}

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

/* Header */
.header {
    background-color: #4A90E2;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
}

.logo {
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo-pod {
    color: white;
}

.logo-post {
    color: #FF8C42;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Navigation Search */
.nav-search-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.nav-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.2s;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.nav-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    min-width: 350px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.nav-search-dropdown.active {
    display: block;
}

.nav-search-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

.nav-search-result:last-child {
    border-bottom: none;
}

.nav-search-result:hover {
    background: #f8f9fa;
}

.nav-search-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-search-info {
    flex: 1;
    min-width: 0;
}

.nav-search-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-search-author {
    font-size: 0.8rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-search-no-results,
.nav-search-loading {
    padding: 1rem;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.nav-search-result-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

/* Search Action Buttons and Status Badges */
.search-btn {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    text-align: center;
    line-height: 1;
    vertical-align: middle;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

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

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.search-btn-subscribe {
    background-color: #FF8C42;
    color: white !important;
}

.search-btn-subscribe:hover {
    background-color: #E67A30;
    color: white !important;
}

.search-btn-request {
    background-color: #4A90E2;
    color: white !important;
}

.search-btn-request:hover {
    background-color: #3A7BC8;
    color: white !important;
}

.search-status-badge {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-status-badge.subscribed {
    background-color: #28a745;
    color: white;
}

.search-status-badge.requested {
    background-color: #ffc107;
    color: #333;
}

/* Hero Section */
.hero {
    background: url('/images/pp-hero-2.jpg') right center / cover no-repeat,
                linear-gradient(135deg, #2d5a8f 0%, #4A90E2 100%);
    background-blend-mode: soft-light;
    color: white;
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(45, 90, 143, 0.95) 0%,
        rgba(45, 90, 143, 0.7) 20%,
        rgba(45, 90, 143, 0.3) 40%,
        transparent 60%
    );
    pointer-events: none;
}

.hero-wrapper {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 750px;
    text-align: left;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.signup-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

#turnstile-widget,
#login-turnstile-widget {
    flex-basis: 100%;
    width: 100%;
}

.signup-helper-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    margin-top: 0.5rem;
    margin-bottom: 0;
    max-width: 600px;
}

.email-input {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
}

.btn-primary {
    background-color: #FF8C42;
    color: white !important;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #E67A30;
}

.btn-apple-podcasts {
    background-color: #9333ea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-apple-podcasts:hover {
    background-color: #7e22ce;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #5a6268;
    text-decoration: none;
}

.btn-secondary:visited {
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #c82333;
}

.success-message {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 2rem 0;
    text-align: left;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
}

/* Welcome Message for Authenticated Users */
.welcome-message {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 2rem 0;
    text-align: left;
}

.welcome-message h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-message p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.welcome-message .btn-primary {
    display: inline-block;
    background-color: #FF8C42;
    color: white;
    margin: 0.5rem 0;
}

.welcome-message .btn-primary:hover {
    background-color: #E67A30;
    color: white;
}

/* Mobile styles for welcome message buttons */
@media (max-width: 768px) {
    .welcome-message .btn-primary {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
    }
}

/* Login Link Styles */
.login-link-container {
    margin-top: 1.5rem;
    max-width: 600px;
}

.login-link-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    margin-bottom: 0;
}

.login-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.login-link:hover {
    opacity: 0.8;
}

.login-link-form {
    margin-top: 1rem;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features Section */
.features {
    padding: 30px 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon svg {
    width: 64px;
    height: 64px;
    stroke: #4A90E2;
    stroke-width: 2;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4A90E2;
}

/* Testimonials */
.testimonials {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: #4A90E2;
    opacity: 0.3;
    position: absolute;
    left: -1rem;
    top: -1rem;
    font-family: Georgia, serif;
}

.testimonial-author {
    border-top: 2px solid #f0f0f0;
    padding-top: 1rem;
}

.author-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.9rem;
    color: #888;
}

/* Podcasts Grid */
.page-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
    background-color: white;
    min-height: 60vh;
}

.podcasts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.podcast-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    text-decoration: none;
}

.podcast-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.podcast-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    font-size: 5rem;
}

.podcast-info {
    padding: 1.5rem;
}

.podcast-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.podcast-author {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.podcast-category {
    color: #4A90E2;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.podcast-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Podcast Detail Page */
.podcast-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.podcast-header-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.podcast-header-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.podcast-description-full {
    margin: 1rem 0;
    line-height: 1.8;
}

/* Subscription UI on podcast detail page */
.subscribe-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.subscribe-message {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #555;
}

.subscription-status {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.subscription-status.subscribed {
    display: flex;
    align-items: start;
    gap: 1rem;
    background-color: #d4edda;
    border: 2px solid #28a745;
}

.status-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.subscription-status strong {
    color: #28a745;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.subscription-status p {
    margin: 0;
    color: #155724;
    font-size: 0.95rem;
}

.login-prompt {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #fff3cd;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    text-align: center;
}

/* Episodes */
.episodes-section {
    margin-top: 2rem;
}

.episodes-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.episode-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4A90E2;
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.episode-header h3 {
    font-size: 1.3rem;
    flex: 1;
}

.episode-date {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.episode-description {
    color: #666;
    margin-bottom: 1rem;
}

.episode-summary-preview {
    background-color: white;
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 0.75rem;
}

.episode-summary-preview h4 {
    color: #4A90E2;
    margin-bottom: 1rem;
}

.episode-summary-preview ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.cta-message {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff3cd;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
}

.processing-status {
    font-style: italic;
    color: #666;
}

.processing-status.error {
    color: #dc3545;
}

/* Preferences Page */
.preferences-container {
    margin: 0 auto;
}

.user-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.subscriptions-section {
    margin-bottom: 2rem;
}

.subscription-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.subscription-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.subscription-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.subscription-author {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.subscription-body {
    padding: 1.5rem;
}

.email-content-preferences {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.content-preference-label {
    font-weight: 600;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.content-hint {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.subscription-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
    text-align: right;
}

.btn-unsubscribe {
    white-space: nowrap;
}

.subscription-controls select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.browse-more {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

/* Verification Pages */
.verification-success, .verification-error {
    text-align: center;
    padding: 3rem;
}

.verification-success h1 {
    color: #28a745;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.verification-error h1 {
    color: #dc3545;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.action-buttons {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #4A90E2;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Episode Detail Page */
.episode-detail {
    max-width: 900px;
    margin: 0 auto;
}

.episode-detail-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.episode-podcast-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.episode-meta {
    flex: 1;
}

.podcast-name {
    color: #4A90E2;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.episode-meta h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.episode-info {
    color: #666;
    font-size: 0.9rem;
}

.episode-description {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.episode-description h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.episode-summary {
    margin-bottom: 2rem;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.summary-header h2 {
    font-size: 1.8rem;
    color: #333;
}

.summary-length-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.summary-length-selector span {
    font-size: 0.9rem;
    color: #666;
}

.summary-length-selector a {
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.summary-length-selector a.active {
    background-color: #4A90E2;
    color: white;
}

.reading-time-badge {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.summary-length-selector a:hover:not(.active) {
    background-color: #e0e0e0;
}

.summary-overview {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #4A90E2;
}

.summary-overview h3 {
    font-size: 1.2rem;
    color: #4A90E2;
    margin-bottom: 1rem;
}

.summary-section {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
}

.summary-section h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
}

.key-points {
    list-style: none;
    padding-left: 0;
}

.key-points li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.key-points li:before {
    content: "•";
    color: #4A90E2;
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.quotes {
    margin-top: 1.5rem;
}

.quotes blockquote {
    background-color: #f8f9fa;
    border-left: 4px solid #4A90E2;
    padding: 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    color: #555;
}

.subscribe-cta {
    background: linear-gradient(135deg, #2d5a8f 0%, #4A90E2 100%);
    color: white;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 3rem;
}

.subscribe-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.subscribe-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.subscribe-cta .btn-primary {
    background-color: #FF8C42;
    color: white;
}

.subscribe-cta .btn-primary:hover {
    background-color: #E67A30;
}

/* Content fade indicator for non-subscribers */
.content-fade-indicator {
    position: relative;
    margin: 2rem 0;
}

.fade-gradient {
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(248,249,250,0.8) 50%, rgba(248,249,250,1) 100%);
    margin-top: -50px;
    pointer-events: none;
}

.more-content-message {
    background-color: #f8f9fa;
    border: 2px solid #4A90E2;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.more-content-message p {
    margin: 0.5rem 0;
}

.more-content-message strong {
    color: #4A90E2;
    font-size: 1.2rem;
}

.more-content-message .text-muted {
    color: #666;
    font-size: 0.95rem;
}

.no-summary {
    background-color: #fff3cd;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #ffc107;
}

.no-summary.error {
    background-color: #f8d7da;
    border-left-color: #dc3545;
}

.episode-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
    flex-wrap: wrap;
}

.episode-detail h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.episode-detail h3 a:hover {
    color: #4A90E2;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    margin-left: 1rem;
}

.dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.dark-mode-toggle .sun-icon {
    display: inline;
}

.dark-mode-toggle .moon-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .sun-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .moon-icon {
    display: inline;
}

/* Hamburger Button (Mobile Only) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover span {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: #4A90E2;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu {
    right: 0;
}

/* Mobile Menu Items */
.mobile-menu-items {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-link {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.2s;
    display: block;
}

.mobile-menu-link:hover,
.mobile-menu-link:visited,
.mobile-menu-link:active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.mobile-menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
}

/* Mobile Dark Mode Toggle */
.dark-mode-toggle-mobile {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    transition: all 0.3s;
    color: white;
    font-weight: 500;
}

.dark-mode-toggle-mobile:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.dark-mode-toggle-mobile .sun-icon {
    display: inline;
}

.dark-mode-toggle-mobile .moon-icon {
    display: none;
}

.dark-mode-toggle-mobile .toggle-label {
    font-size: 1rem;
}

body.dark-mode .dark-mode-toggle-mobile .sun-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle-mobile .moon-icon {
    display: inline;
}

/* Dark mode styles for mobile menu */
body.dark-mode .mobile-menu {
    background-color: #2d5a8f;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Section Summary */
.section-summary {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* Dark mode link colors */
body.dark-mode a {
    color: #6eb4ff;
}

body.dark-mode a:visited {
    color: #6eb4ff;
}

body.dark-mode a:hover {
    color: #8fc9ff;
}

body.dark-mode .signup-helper-text {
    color: rgba(255, 255, 255, 0.75);
}

body.dark-mode .page-content,
body.dark-mode .features {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .feature-icon svg {
    stroke: #6eb4ff;
}

body.dark-mode .testimonials {
    background-color: #1a1a1a;
}

body.dark-mode .testimonial {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .testimonial:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .testimonial-content p {
    color: #b0b0b0;
}

body.dark-mode .testimonial-author {
    border-top-color: #444;
}

body.dark-mode .author-name {
    color: #e0e0e0;
}

body.dark-mode .author-title {
    color: #888;
}

body.dark-mode .header {
    background-color: #2d5a8f;
}

body.dark-mode .nav-search-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

body.dark-mode .nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .nav-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .nav-search-dropdown {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .nav-search-result {
    border-bottom-color: #333;
}

body.dark-mode .nav-search-result:hover {
    background: #333;
}

body.dark-mode .nav-search-title {
    color: #ffffff;
}

body.dark-mode .nav-search-author {
    color: #b0b0b0;
}

body.dark-mode .nav-search-no-results,
body.dark-mode .nav-search-loading {
    color: #888;
}

body.dark-mode .search-btn-subscribe {
    background-color: #FF8C42;
    color: white !important;
}

body.dark-mode .search-btn-subscribe:hover {
    background-color: #E67A30;
    color: white !important;
}

body.dark-mode .search-btn-request {
    background-color: #4A90E2;
    color: white !important;
}

body.dark-mode .search-btn-request:hover {
    background-color: #3A7BC8;
    color: white !important;
}

body.dark-mode .search-status-badge.subscribed {
    background-color: #28a745;
}

body.dark-mode .search-status-badge.requested {
    background-color: #ffc107;
    color: #1a1a1a;
}

body.dark-mode .footer {
    background-color: #0f0f0f;
}

body.dark-mode .podcast-card {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .podcast-card:hover {
    background-color: #333;
    text-decoration: none;
}

body.dark-mode .podcast-info h3,
body.dark-mode .episode-meta h1,
body.dark-mode .summary-section h3 {
    color: #f0f0f0;
}

body.dark-mode h2 {
    color: #f0f0f0;
}

body.dark-mode .podcast-author,
body.dark-mode .podcast-description,
body.dark-mode .episode-info,
body.dark-mode .breadcrumb {
    color: #aaa;
}

body.dark-mode .podcast-header,
body.dark-mode .episode-description,
body.dark-mode .summary-overview,
body.dark-mode .subscription-status,
body.dark-mode .subscribe-section,
body.dark-mode .user-info,
body.dark-mode .subscription-item,
body.dark-mode .browse-more {
    background-color: #2a2a2a;
}

body.dark-mode .subscription-header {
    border-bottom-color: #444;
}

body.dark-mode .subscription-header h3 {
    color: #e0e0e0;
}

body.dark-mode .subscription-author {
    color: #aaa;
}

body.dark-mode .subscription-footer {
    background-color: #1a1a1a;
    border-top-color: #444;
}

body.dark-mode .subscription-status.subscribed {
    background-color: #1a3a1a;
    border-color: #28a745;
}

body.dark-mode .subscription-status strong {
    color: #7aff7a;
}

body.dark-mode .subscription-status p {
    color: #b3e6b3;
}

body.dark-mode .subscribe-message {
    color: #ccc;
}

body.dark-mode .login-prompt {
    background-color: #3a3a00;
    border-left-color: #ffc107;
    color: #e0e0e0;
}

body.dark-mode .content-hint {
    color: #999;
}

body.dark-mode .summary-section {
    background-color: #242424;
    border-color: #333;
}

body.dark-mode .episode-detail-header {
    border-bottom-color: #333;
}

body.dark-mode .episode-actions {
    border-top-color: #333;
}

body.dark-mode .quotes blockquote {
    background-color: #2a2a2a;
    color: #ccc;
}

body.dark-mode .section-summary {
    color: #bbb;
}

body.dark-mode .no-summary {
    background-color: #3a3a00;
    border-left-color: #ffc107;
}

body.dark-mode .no-summary.error {
    background-color: #3a0000;
    border-left-color: #dc3545;
}

body.dark-mode .message.success {
    background-color: #1a3a1a;
    color: #7aff7a;
}

body.dark-mode .message.error {
    background-color: #3a1a1a;
    color: #ff7a7a;
}

body.dark-mode .error-message {
    background-color: #3a1a1a;
    color: #ff7a7a;
}

body.dark-mode .episode-card {
    background-color: #2a2a2a;
    border-left-color: #5a9ae2;
}

body.dark-mode .episode-summary-preview {
    background-color: #1f1f1f;
}

body.dark-mode .episode-summary-preview h4 {
    color: #6eb4ff;
}

body.dark-mode .episode-summary-preview p,
body.dark-mode .episode-summary-preview ul {
    color: #e0e0e0;
}

body.dark-mode .episode-description {
    color: #aaa;
}

body.dark-mode .cta-message {
    background-color: #3a3a00;
    border-left-color: #ffc107;
}

body.dark-mode .summary-length-selector a {
    background-color: #333;
    color: #aaa;
}

body.dark-mode .summary-length-selector a.active {
    background-color: #5a9ae2;
    color: white;
}

body.dark-mode .summary-length-selector a:hover:not(.active) {
    background-color: #444;
}

body.dark-mode .reading-time-badge {
    background-color: #333;
    color: #aaa;
}

body.dark-mode .podcast-image-placeholder {
    background-color: #333;
}

body.dark-mode .btn-secondary {
    background-color: #8a9199;
    color: white;
}

body.dark-mode .btn-secondary:hover {
    background-color: #9aa2a9;
}

body.dark-mode .btn-secondary:visited {
    color: white;
}

body.dark-mode .btn-apple-podcasts {
    background-color: #a855f7;
    color: white;
}

body.dark-mode .btn-apple-podcasts:hover {
    background-color: #9333ea;
}

body.dark-mode .btn-apple-podcasts:visited {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        background-position: center center;
    }

    .hero::after {
        background: linear-gradient(to right,
            rgba(45, 90, 143, 0.85) 0%,
            rgba(45, 90, 143, 0.7) 50%,
            rgba(45, 90, 143, 0.5) 100%
        );
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .signup-form {
        margin: 2rem auto;
    }

    .podcast-header {
        grid-template-columns: 1fr;
    }

    .signup-form {
        flex-direction: column;
    }

    .email-content-preferences {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .subscription-footer {
        text-align: left;
    }

    .episode-detail-header {
        flex-direction: column;
    }

    .episode-podcast-image {
        width: 100%;
        height: auto;
    }

    .summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .episode-actions {
        flex-direction: column;
    }

    .episode-actions a, .episode-actions button {
        width: 100%;
        text-align: center;
    }

    /* Hide desktop navigation on mobile */
    .nav-links {
        display: none;
    }

    /* Show hamburger button on mobile */
    .hamburger-btn {
        display: flex;
    }

    /* Hide search on mobile */
    .nav-search-container {
        display: none;
    }
}

/* Section header with anchor link */
.section-header-with-anchor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    scroll-margin-top: 2rem;
}

.section-header-with-anchor h3 {
    margin: 0;
}

/* Share section button */
.share-section-btn {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: background-color 0.2s, color 0.2s;
}

.share-section-btn:hover {
    background-color: #f0f0f0;
    color: #4A90E2;
}

.share-section-btn.copied {
    color: #28a745;
}

/* Enhanced quote styling */
.styled-quote {
    position: relative;
    background-color: #f8f9fa;
    border-left: 4px solid #4A90E2;
    padding: 2rem 3.5rem 3rem 3rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #333;
    min-height: 5rem;
}

.quote-mark {
    font-family: Georgia, serif;
    font-style: normal;
    color: #4A90E2;
    line-height: 1;
}

.quote-mark.opening {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    font-size: 4rem;
    opacity: 0.3;
}

.quote-mark.closing {
    position: absolute;
    right: 0.5rem;
    bottom: 0;
    font-size: 4rem;
    opacity: 0.3;
}

.quote-text {
    display: inline;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Quote header with play and share buttons */
.quote-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quote-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.quote-play-btn,
.quote-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: none;
    background-color: #4A90E2;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quote-share-btn {
    background-color: rgba(74, 144, 226, 0.2);
    color: #4A90E2;
}

.quote-share-btn svg {
    stroke: #4A90E2;
}

.quote-play-btn:hover {
    background-color: #357ABD;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.quote-share-btn:hover {
    background-color: #4A90E2;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.quote-share-btn:hover svg {
    stroke: white;
}

.quote-share-btn.copied {
    background-color: #28a745;
    color: white;
}

.quote-share-btn.copied svg {
    stroke: white;
}

.quote-play-btn:active,
.quote-share-btn:active {
    transform: scale(0.95);
}

.quote-play-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* When playing, use a different color */
.styled-quote.playing .quote-play-btn {
    background-color: #357ABD;
}

/* Quote audio player (progress bar shown when playing) */
.quote-audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    margin-left: 40px;
    padding: 8px 12px;
    background-color: rgba(74, 144, 226, 0.05);
    border-radius: 6px;
}

.audio-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    font-size: 0.75rem;
    font-style: normal;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.progress-bar {
    flex-grow: 1;
    height: 6px;
    background-color: rgba(74, 144, 226, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4A90E2;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.current-time,
.duration-time {
    min-width: 35px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Dark mode overrides for audio player */
body.dark-mode .quote-play-btn {
    background-color: #5FA3E8;
    color: white;
}

body.dark-mode .quote-play-btn:hover {
    background-color: #4A90E2;
}

body.dark-mode .styled-quote.playing .quote-play-btn {
    background-color: #4A90E2;
}

body.dark-mode .quote-share-btn {
    background-color: rgba(95, 163, 232, 0.2);
}

body.dark-mode .quote-share-btn svg {
    stroke: #5FA3E8;
}

body.dark-mode .quote-share-btn:hover {
    background-color: #4A90E2;
    color: white;
}

body.dark-mode .quote-share-btn:hover svg {
    stroke: white;
}

body.dark-mode .quote-audio-player {
    background-color: rgba(74, 144, 226, 0.1);
}

body.dark-mode .audio-progress {
    color: #aaa;
}

body.dark-mode .progress-bar {
    background-color: rgba(74, 144, 226, 0.3);
}

/* Dark mode overrides for new styles */
body.dark-mode .share-section-btn {
    color: #888;
}

body.dark-mode .share-section-btn:hover {
    background-color: #333;
    color: #4A90E2;
}

body.dark-mode .styled-quote {
    background-color: #2a2a2a;
    border-left-color: #4A90E2;
    color: #e0e0e0;
}

body.dark-mode .quote-mark {
    color: #4A90E2;
}

/* Quote Detail Page */
.quote-detail-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.quote-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.quote-detail-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.podcast-title {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 5px;
}

.episode-title {
    font-size: 1rem;
    color: #999;
}

.shared-quote-display {
    background-color: #f8f9fa;
    border-left: 4px solid #4A90E2;
    padding: 30px;
    margin: 40px 0;
    font-size: 1.5rem;
    line-height: 1.8;
    font-style: italic;
}

.shared-quote-display .quote-mark {
    color: #4A90E2;
    font-size: 2rem;
}

.quote-audio-section {
    margin: 40px 0;
}

.quote-audio-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.audio-player-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.audio-player-container audio {
    width: 100%;
}

.quote-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.btn-secondary:visited {
    color: #333;
}

.btn-secondary svg {
    width: 16px;
    height: 16px;
}

/* Dark mode for quote detail page */
body.dark-mode .quote-detail-header h1 {
    color: #e0e0e0;
}

body.dark-mode .podcast-title {
    color: #aaa;
}

body.dark-mode .episode-title {
    color: #888;
}

body.dark-mode .shared-quote-display {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .quote-audio-section h3 {
    color: #e0e0e0;
}

body.dark-mode .audio-player-container {
    background-color: #2a2a2a;
}

body.dark-mode .btn-secondary {
    background-color: #333;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .btn-secondary:hover {
    background-color: #444;
    border-color: #555;
}

/* Podcast CTA Box */
.podcast-cta-box {
    background: linear-gradient(135deg, #2d5a8f 0%, #4A90E2 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.podcast-cta-box h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: white;
}

.podcast-cta-box .cta-value-prop {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.podcast-cta-box .form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.podcast-cta-box .form-group {
    flex: 1.5;
    margin-bottom: 0;
}

.podcast-cta-box .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.podcast-cta-box .form-control:focus {
    outline: none;
    border-color: white;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.podcast-cta-box .cf-turnstile {
    margin: 1rem 0 0 0;
    display: none;
}

.podcast-cta-box .cf-turnstile.visible {
    display: block;
}

.podcast-cta-box .btn-primary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: #FF8C42;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.podcast-cta-box .btn-primary:hover {
    background-color: #E67A30;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.podcast-cta-box .success-message {
    text-align: center;
}

.podcast-cta-box .success-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.podcast-cta-box .success-message p {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.podcast-cta-box .error-message {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 500;
}

/* Dark mode adjustments for podcast CTA box */
body.dark-mode .podcast-cta-box {
    background: linear-gradient(135deg, #1e3a5f 0%, #3a7bc8 100%);
}

body.dark-mode .podcast-cta-box .form-control {
    background-color: rgba(255, 255, 255, 0.85);
    color: #333;
}

body.dark-mode .podcast-cta-box .form-control:focus {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Mobile responsiveness for podcast CTA box */
@media (max-width: 768px) {
    .podcast-cta-box {
        padding: 1.5rem;
    }

    .podcast-cta-box h3 {
        font-size: 1.25rem;
    }

    .podcast-cta-box .cta-value-prop {
        font-size: 0.9rem;
    }

    .podcast-cta-box .form-row {
        flex-direction: column;
    }

    .podcast-cta-box .btn-primary {
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* Episode Request Section */
.episode-request-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.episode-search-toggle h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
}


.search-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-input-group .search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-input-group .btn {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.search-results {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 1rem;
}

.search-results .loading,
.search-results .no-results,
.search-results .search-hint,
.search-results .error {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.search-results .error {
    color: #dc3545;
}

.search-result-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.search-result-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-info {
    flex: 1;
}

.result-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.result-meta {
    font-size: 0.85rem;
    color: #666;
    margin: 0.25rem 0;
}

.result-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
}

.request-episode-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: #FF8C42 !important;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.request-episode-btn:hover:not(.disabled) {
    background-color: #e67a30;
}

.request-episode-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.request-message {
    display: none;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    font-weight: 500;
}

.request-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.request-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
    }

    .request-episode-btn {
        width: 100%;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-input-group .btn {
        width: 100%;
    }
}

/* Dark Mode - Episode Request Section */
body.dark-mode .episode-request-section {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .episode-search-toggle h3 {
    color: #e0e0e0;
}

body.dark-mode .search-input-group .search-input {
    background: #1a1a1a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .search-input-group .search-input::placeholder {
    color: #888;
}

body.dark-mode .search-results .loading,
body.dark-mode .search-results .no-results,
body.dark-mode .search-results .search-hint {
    color: #b0b0b0;
}

body.dark-mode .search-result-item {
    background: #1a1a1a;
    border-color: #444;
}

body.dark-mode .search-result-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode .result-info h4 {
    color: #e0e0e0;
}

body.dark-mode .result-meta,
body.dark-mode .result-description {
    color: #b0b0b0;
}

body.dark-mode .request-message.success {
    background: #1e4620;
    color: #7ad87a;
    border-color: #2d6930;
}

body.dark-mode .request-message.error {
    background: #4a1c1c;
    color: #f5c6cb;
    border-color: #721c24;
}
