/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors inspired by the logo */
    --primary-green: #4a5d3a;
    --light-green: #7a8d6a;
    --brick-red: #a0522d;
    --cream: #f5f2e8;
    --dark-gray: #333;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brick-red);
}

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

/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 5px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    height: 80px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(74, 93, 58, 0.8), rgba(74, 93, 58, 0.8)),
                url('/images/farmhouse-hero.jpg') center/cover;
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-button, .subscribe-button {
    display: inline-block;
    background: var(--brick-red);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.cta-button:hover, .subscribe-button:hover {
    background: #8b4513;
    color: var(--white);
}

/* Main Content */
.main-content {
    padding: 4rem 0;
    min-height: 50vh;
}

/* Intro Section */
.intro-section {
    text-align: center;
    margin-bottom: 4rem;
}

.intro-section h2 {
    margin-bottom: 2rem;
}

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

.feature {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.3s ease;
}

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

.feature h3 {
    color: var(--brick-red);
    margin-bottom: 1rem;
}

/* Episodes Grid */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.episode-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.3s ease;
}

.episode-card:hover {
    transform: translateY(-5px);
}

.episode-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.episode-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.episode-info {
    padding: 1.5rem;
}

.episode-info h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.episode-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.episode-link {
    color: var(--brick-red);
    font-weight: 600;
}

/* Single Episode Page */
.episode-single {
    max-width: 800px;
    margin: 0 auto;
}

.episode-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.episode-meta span {
    margin: 0 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    margin-bottom: 2rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.episode-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
}

.episode-materials, .episode-tips {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.episode-materials h2, .episode-tips h2 {
    color: var(--brick-red);
    margin-bottom: 1rem;
}

.episode-materials ul, .episode-tips ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.episode-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

/* Footer */
.site-footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.site-footer a {
    color: var(--cream);
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* Utilities */
.page-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.view-all-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}

.recent-episodes, .subscribe-section {
    text-align: center;
    margin: 4rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        height: 60px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .hero {
        padding: 4rem 0;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .episode-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}