/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

header h1 {
    display: inline-block;
    margin-right: 2rem;
}

header h1 a {
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
}

nav {
    display: inline-block;
}

nav a {
    text-decoration: none;
    color: #666;
    margin-right: 1.5rem;
    font-weight: 500;
}

nav a:hover {
    color: #f7931a; /* Bitcoin orange */
}

/* Main content */
main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* Homepage hero */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 1rem;
}

/* Recent episodes section */
.recent-episodes h3 {
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #f7931a;
    padding-bottom: 0.5rem;
}

.recent-episodes article {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.recent-episodes article:last-child {
    border-bottom: none;
}

.recent-episodes h4 {
    margin-bottom: 0.5rem;
}

.recent-episodes h4 a {
    text-decoration: none;
    color: #333;
}

.recent-episodes h4 a:hover {
    color: #f7931a;
}

.recent-episodes time {
    color: #666;
    font-size: 0.9rem;
}

/* Article pages */
article header {
    margin-bottom: 2rem;
    text-align: center;
}

article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

article time {
    color: #666;
    font-size: 1rem;
}

.episode-number {
    background-color: #f7931a;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Content */
.content {
    max-width: 700px;
    margin: 0 auto;
}

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

.content h2, .content h3, .content h4 {
    margin: 2rem 0 1rem 0;
    color: #333;
}

.content ul, .content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content blockquote {
    border-left: 4px solid #f7931a;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

/* Tags */
.tags {
    margin-top: 2rem;
    text-align: center;
}

.tag {
    background-color: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* List pages */
.posts article {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.posts article:last-child {
    border-bottom: none;
}

.posts h2 {
    margin-bottom: 0.5rem;
}

.posts h2 a {
    text-decoration: none;
    color: #333;
}

.posts h2 a:hover {
    color: #f7931a;
}

.posts time {
    color: #666;
    font-size: 0.9rem;
}

.description {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Episodes Search */
.episodes-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

#episode-search {
    flex-grow: 1;
    max-width: 400px;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
}

#episode-search:focus {
    outline: none;
    border-color: #f7931a;
}

.search-count {
    color: #666;
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Episodes Table */
.episodes-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.episodes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.episodes-table th {
    background-color: #f7931a;
    color: white;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.episodes-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.episodes-table tr:hover {
    background-color: #f8f9fa;
}

/* Episode number in table */
.episodes-table .episode-number {
    font-weight: 600;
    color: #f7931a !important;
    width: 80px;
    text-align: center;
    font-size: 1rem;
    background-color: transparent;
    padding: 0.75rem;
    border-radius: 0;
    margin-left: 0;
}

.episode-date {
    width: 120px;
    white-space: nowrap;
    color: #666;
    font-size: 0.9rem;
}

.episode-title {
    min-width: 200px;
}

.episode-title a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.episode-title a:hover {
    color: #f7931a;
    text-decoration: underline;
}

.episode-btc {
    width: 120px;
    text-align: right;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    color: #f7931a;
    font-weight: 500;
}

.btc-usd, .btc-eur {
    line-height: 1.2;
    font-size: 0.9rem;
    color: #f7931a;
    font-weight: 500;
}

.btc-eur {
    margin-top: 2px;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Episode page styling */
.episode-meta {
    margin-bottom: 1rem;
}

.bitcoin-data {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border-left: 4px solid #f7931a;
    margin-bottom: 1.5rem;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
}

.btc-prices, .block-height {
    color: #f7931a;
    font-weight: 500;
}

.separator {
    margin: 0 1rem;
    color: #666;
}

.episode-description {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #f7931a;
    margin-bottom: 2rem;
}

.episode-description h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.episode-description p {
    margin-bottom: 0;
    line-height: 1.6;
    color: #555;
}

/* Episode player styling */
.episode-player {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #f7931a;
}

.episode-player h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

/* Podcast player styling */
.podcast-player-container {
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #f7931a;
}

.podcast-player-container div[data-type="podhome_player"] {
    width: 100%;
}

/* Episode footer */
.episode-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f7931a;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

.episode-footer h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.episode-footer ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.episode-footer li {
    margin-bottom: 0.5rem;
}

.episode-footer a {
    color: #f7931a;
    text-decoration: none;
}

.episode-footer a:hover {
    text-decoration: underline;
}

.episode-footer hr {
    border: none;
    height: 1px;
    background-color: #e9ecef;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        display: block;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    nav {
        display: block;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    article h1 {
        font-size: 2rem;
    }
    
    .episodes-search {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    #episode-search {
        max-width: none;
    }
    
    .search-count {
        margin-left: 0;
        text-align: center;
    }
    
    .episodes-table-container {
        font-size: 0.85rem;
    }
    
    .episodes-table th,
    .episodes-table td {
        padding: 0.5rem 0.25rem;
    }
}
