/*
Theme Name: Humorous Podcast
Description: A WordPress theme designed for podcasts with a focus on humor and chaos. Features episode listings, search functionality, and a mobile-responsive design with red, cream, and black color scheme.
Version: 1.1.0
Author: Your Name
Text Domain: humorous-podcast

Changelog:
v1.1.0 - Custom logo support added
  - Added custom logo upload functionality
  - Logo displays as circular image in header
  - Falls back to emoji icon if no logo uploaded
  - Recommended logo size: 100x100px square

v1.0.0 - Initial release
  - Custom episode post type
  - Episode metadata (number, audio URL, duration)
  - Mobile responsive design
  - Search functionality
  - Pagination support
*/

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #f5f1e8;
    line-height: 1.6;
}

/* Header */
.header {
    background: #000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #f5f1e8;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    overflow: hidden;
}

.logo-icon.custom-logo-icon {
    background: transparent;
    padding: 0;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.custom-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-text h1 {
    color: #e74c3c;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-text p {
    color: #f5f1e8;
    font-size: 0.9rem;
    margin-top: -5px;
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: #f5f1e8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav a:hover,
.nav a.active {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Search Box */
.search-box {
    display: flex;
    background: #f5f1e8;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.search-box input {
    border: none;
    padding: 0.7rem 1rem;
    background: transparent;
    color: #333;
    outline: none;
    width: 200px;
}

.search-box button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #c0392b;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.1) 0%, transparent 70%);
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

/* Episodes Grid */
.episodes-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #e74c3c;
}

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

.episode-card {
    background: rgba(245, 241, 232, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border-left: 5px solid #e74c3c;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.2);
    background: rgba(245, 241, 232, 0.08);
}

.episode-number {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.episode-title {
    font-size: 1.3rem;
    color: #f5f1e8;
    margin: 0.5rem 0;
    font-weight: bold;
}

.episode-title a {
    color: #f5f1e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.episode-title a:hover {
    color: #e74c3c;
}

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

.episode-description {
    color: #ddd;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.episode-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: #f5f1e8;
    border: 2px solid #f5f1e8;
}

.btn-secondary:hover {
    background: #f5f1e8;
    color: #333;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    list-style: none;
}

.pagination a,
.pagination span {
    padding: 0.7rem 1rem;
    background: rgba(245, 241, 232, 0.1);
    color: #f5f1e8;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.pagination a:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.pagination .current {
    background: #e74c3c;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #000;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: #bbb;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #f5f1e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #e74c3c;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    color: #666;
}

/* Content Styles */
.page-content,
.post-content {
    background: rgba(245, 241, 232, 0.05);
    padding: 3rem;
    border-radius: 15px;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.page-title,
.post-title {
    color: #e74c3c;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.episode-meta {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid #e74c3c;
}

.episode-meta p {
    margin: 0.5rem 0;
    color: #ddd;
}

.episode-content {
    color: #ddd;
    line-height: 1.8;
    margin: 2rem 0;
}

.episode-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Search Results */
.search-results {
    margin: 2rem 0;
}

.search-result-item {
    background: rgba(245, 241, 232, 0.05);
    padding: 2rem;
    margin: 1rem 0;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
}

.search-result-title {
    color: #e74c3c;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.search-result-title a {
    color: #e74c3c;
    text-decoration: none;
}

.search-result-title a:hover {
    color: #f5f1e8;
}

.search-result-excerpt {
    color: #ddd;
    line-height: 1.6;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404 h1 {
    font-size: 6rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-404 h2 {
    color: #f5f1e8;
    margin-bottom: 2rem;
}

.error-404 p {
    color: #ddd;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Responsive Design */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #f5f1e8;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000;
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav.active {
        display: flex;
    }

    .header-content {
        text-align: center;
    }

    .search-box {
        width: 100%;
        max-width: 300px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .episodes-grid {
        grid-template-columns: 1fr;
    }

    .episode-actions {
        justify-content: center;
    }

    .page-content,
    .post-content {
        padding: 2rem 1rem;
    }
}

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

.episode-card {
    animation: fadeIn 0.5s ease-out;
}