/* ====================================
   Linux in the Ham Shack - Hugo Theme
   Dark theme with green accents
   ==================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #a2a2a2;
    background-color: #000000;
}

/* === Typography === */
h1 { font-size: 1.5em; margin-bottom: 0.5em; color: #ffffff; }
h2 { font-size: 1.4em; margin-bottom: 0.5em; color: #ffffff; }
h3 { font-size: 1.3em; margin-bottom: 0.5em; color: #ffffff; }
h4 { font-size: 1.2em; margin-bottom: 0.5em; color: #ffffff; }
h5 { font-size: 1.1em; margin-bottom: 0.5em; color: #ffffff; }
h6 { font-size: 1em; margin-bottom: 0.5em; color: #ffffff; }

a {
    color: #007000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #009345;
    text-decoration: underline;
}

p {
    margin-bottom: 1em;
}

/* === Header === */
.site-header {
    background-color: #000000;
    border-bottom: 2px solid #009345;
}

.header-banner {
    padding: 20px;
    text-align: center;
    background-color: #111111;
}

.site-branding {
    max-width: 1280px;
    margin: 0 auto;
}

.site-logo {
    display: inline-block;
    line-height: 0;
}

.site-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Navigation === */
.main-navigation {
    background-color: #000000;
    border-bottom: 2px dotted #009345;
    min-height: 30px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.nav-menu > li {
    position: relative;
    margin: 0;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: #009345;
    font-weight: 500;
    text-decoration: none;
}

.nav-menu > li > a:hover {
    background-color: #009345;
    color: #ffffff;
    text-decoration: none;
}

/* Submenu */
.nav-menu .has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    list-style: none;
    min-width: 200px;
    z-index: 1000;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 10px 15px;
    color: #000000;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #009345;
    color: #ffffff;
    text-decoration: none;
}

/* === Container & Layout === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }
}

.main-content {
    min-width: 0;
}

/* === Episode Cards === */
.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.episode-card {
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 25px;
    transition: border-color 0.3s ease;
}

.episode-card:hover {
    border-color: #009345;
}

.episode-header {
    margin-bottom: 15px;
}

.episode-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.episode-title a {
    color: #ffffff;
    text-decoration: none;
}

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

.episode-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    color: #888888;
}

.episode-meta time,
.episode-meta .episode-number,
.episode-meta .episode-duration,
.episode-meta .episode-author {
    display: inline-block;
}

.episode-number {
    color: #009345;
    font-weight: bold;
}

.episode-image {
    margin: 15px 0;
}

.episode-image img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

.episode-summary {
    margin: 15px 0;
    line-height: 1.6;
}

.episode-player {
    margin-top: 20px;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 4px;
}

.episode-player audio {
    width: 100%;
    margin-bottom: 10px;
}

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

.download-link,
.read-more {
    padding: 8px 16px;
    background-color: #009345;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.download-link:hover,
.read-more:hover {
    background-color: #00c05a;
    text-decoration: none;
}

/* === Single Episode Page === */
.episode-single {
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 30px;
}

.episode-featured-image {
    margin: 20px 0;
    text-align: center;
}

.episode-featured-image img {
    max-width: 300px;
    height: auto;
    border-radius: 4px;
}

.episode-player-main {
    margin: 25px 0;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 4px;
}

.episode-download {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #009345;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #00c05a;
    text-decoration: none;
    color: #ffffff;
}

/* RSS Feed Button */
.rss-button {
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-size: 1.05em;
    margin-top: 10px;
}

.rss-button i {
    margin-right: 8px;
    font-size: 1.1em;
}

.rss-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 147, 69, 0.3);
}

.file-size {
    color: #888888;
    font-size: 0.9em;
}

.episode-content,
.episode-extended-content {
    margin: 25px 0;
    line-height: 1.8;
}

.episode-content h2,
.episode-extended-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #009345;
}

.episode-content ul,
.episode-extended-content ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.episode-content li,
.episode-extended-content li {
    margin-bottom: 8px;
}

.episode-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333333;
}

.episode-share,
.episode-subscribe {
    margin-bottom: 30px;
}

.episode-share h3,
.episode-subscribe h3 {
    color: #009345;
    margin-bottom: 15px;
}

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

.share-links a {
    padding: 8px 16px;
    background-color: #222222;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
}

.share-links a:hover {
    background-color: #009345;
}

.episode-subscribe ul {
    list-style: none;
    margin-left: 0;
}

.episode-subscribe ul li {
    margin-bottom: 8px;
}

/* Episode Navigation */
.episode-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333333;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.episode-navigation a {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.episode-navigation a:hover {
    background-color: #222222;
    text-decoration: none;
}

.nav-label {
    font-size: 0.9em;
    color: #009345;
    margin-bottom: 5px;
}

.nav-title {
    color: #ffffff;
    font-weight: 500;
}

/* === Sidebar === */
.sidebar {
    min-width: 0;
}

.sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 20px;
}

.widget-title {
    font-size: 1.3em;
    color: #009345;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333333;
}

.widget-content {
    line-height: 1.6;
}

.widget-content p {
    margin-bottom: 10px;
}

.widget-content ul {
    list-style: none;
    margin-left: 0;
}

.widget-content ul li {
    margin-bottom: 8px;
}

.widget-content .button {
    display: inline-block;
    margin-top: 10px;
}

/* Social Icons */
.social-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    justify-items: center;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #1a1a1a;
    border-radius: 50%;
    color: #009345;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: #009345;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 147, 69, 0.3);
}

.social-icons i {
    display: block;
}

.widget-voiceline strong {
    color: #009345;
    font-size: 1.1em;
}

/* === Footer === */
.site-footer {
    background-color: #000000;
    border-top: 2px solid #009345;
    margin-top: 50px;
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #009345;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-links {
    list-style: none;
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #333333;
    text-align: center;
    font-size: 0.9em;
    color: #888888;
}

.footer-bottom a {
    color: #009345;
}

/* === Pagination === */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.view-all-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #009345;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
}

.view-all-link:hover {
    background-color: #00c05a;
    text-decoration: none;
}

/* === Episodes Archive === */
.archive-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #009345;
}

.archive-title {
    font-size: 2em;
    color: #009345;
}

.archive-description {
    color: #888888;
    font-size: 1.1em;
}

.episode-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.play-button,
.show-notes-button {
    padding: 8px 16px;
    background-color: #009345;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.play-button:hover,
.show-notes-button:hover {
    background-color: #00c05a;
    text-decoration: none;
}

.show-notes-button {
    background-color: #222222;
}

.show-notes-button:hover {
    background-color: #333333;
}

/* === Responsive === */
@media (max-width: 768px) {
    .header-banner {
        padding: 15px;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu > li {
        width: 100%;
        text-align: center;
    }

    .submenu {
        position: static;
        width: 100%;
    }

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

    .nav-next {
        text-align: left;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* === Accessibility === */
audio:focus,
a:focus,
.button:focus {
    outline: 2px solid #009345;
    outline-offset: 2px;
}

/* === Print Styles === */
@media print {
    .site-header,
    .main-navigation,
    .sidebar,
    .site-footer,
    .episode-player,
    .episode-navigation {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
