/*
Theme Name: Nicks Take
Theme URI: https://www.NickBNation.com
Author: Nick B.
Author URI: https://www.NickBNation.com
Description: Doom and gloom theme for the Nicks Take podcast about politics and world events. Matches the dark featured layout with left menu, episode cards, bottom ticker, and custom SSP player.
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nicks-take
Tags: dark, podcast, politics, news, responsive
*/

/* Reset and base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: #0a0a0a;
    color: #d0d0d0;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    font-size: 15px;
    overflow-x: hidden;
}
html { overflow-x: hidden; }
a { color: #cc3333; text-decoration: none; }
a:hover { color: #ff5555; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.site-wrapper { display: flex; min-height: 100vh; }
.left-sidebar {
    width: 250px;
    background: #050505;
    border-right: 1px solid #220000;
    position: fixed;
    top: 0; left: 0; height: 100vh;
    overflow-y: auto;
    z-index: 100;
    padding: 25px 18px;
    color: #aaa;
}
.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 0 0 40px 0;
    background: #0d0d0d;
    min-height: 100vh;
}

/* Logo */
.site-logo { text-align: center; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #220000; }
.site-logo .logo-text {
    font-family: 'Oswald', Impact, sans-serif;
    font-size: 36px;
    color: #fff;
    letter-spacing: 1px;
    line-height: 0.9;
    text-transform: uppercase;
    display: block;
}
.site-logo .logo-icon { color: #cc0000; font-size: 42px; display: block; margin-bottom: 5px; }
.site-logo .tagline { font-size: 10px; color: #aa0000; letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-top: 8px; }
.site-logo img { max-width: 180px; margin: 0 auto; }

/* Vertical Menu */
.vertical-menu ul { list-style: none; }
.vertical-menu li { margin-bottom: 4px; }
.vertical-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    color: #ccc;
    background: transparent;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12.5px;
    letter-spacing: 0.5px;
}
.vertical-menu a:hover,
.vertical-menu .current-menu-item > a {
    background: #1a0505;
    border-left-color: #cc0000;
    color: #ff4444;
}

/* Sidebar sections */
.sidebar-section { margin: 25px 0 15px; padding-top: 15px; border-top: 1px solid #220000; }
.sidebar-section h4 { font-size: 11px; letter-spacing: 1.5px; color: #888; margin-bottom: 10px; text-transform: uppercase; }
.social-icons { display: flex; gap: 12px; }
.social-icons a { font-size: 18px; color: #cc3333; }
.listen-list { list-style: none; margin: 0; padding: 0; }
.listen-list li { margin-bottom: 8px; }
.listen-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #ccc;
    text-decoration: none;
}
.listen-list a:hover { color: #ff4444; }
.listen-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}
.listen-icon.apple { background: #000; color: #fff; }
.listen-icon.apple svg { display: block; }
.listen-icon.spotify { background: #1DB954; }
.listen-icon.google { background: #4285F4; font-family: Arial, sans-serif; }
.new-episodes-notice {
    margin-top: 20px;
    padding: 12px;
    background: #110000;
    border: 1px solid #330000;
    font-size: 11px;
    letter-spacing: 1px;
    color: #ff4444;
    text-align: center;
    text-transform: uppercase;
}
.waveform { font-size: 18px; letter-spacing: 2px; margin-top: 6px; color: #cc0000; }

/* Featured Episode */
.featured-episode {
    position: relative;
    min-height: 420px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 50px 40px;
    margin: 0 0 40px 0;
    color: #fff;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.featured-episode::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}
.featured-inner, .featured-play-card { position: relative; z-index: 2; }
.featured-inner { max-width: 65%; }
.featured-label { font-size: 12px; letter-spacing: 2px; color: #ff4444; margin-bottom: 10px; text-transform: uppercase; }
.featured-title {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    line-height: 1.05;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.featured-title span, .featured-title { color: #fff; }
.featured-excerpt { font-size: 16px; color: #ddd; margin-bottom: 20px; max-width: 500px; }
.listen-now-btn {
    display: inline-block;
    background: #cc0000;
    color: #fff !important;
    padding: 12px 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
}
.listen-now-btn:hover { background: #aa0000; }
.featured-play-card {
    background: rgba(0,0,0,0.7);
    padding: 20px;
    text-align: center;
    border: 1px solid #330000;
}
.play-circle {
    width: 70px; height: 70px;
    background: #cc0000;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    margin: 0 auto 10px;
}
.play-meta { font-size: 12px; color: #ccc; }

/* Episode Cards Grid */
.episodes-grid-section, .missed-section { 
    padding: 0 30px 40px; 
    width: 100%;
    box-sizing: border-box;
}
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.section-header h2 { font-family: 'Oswald', sans-serif; font-size: 20px; letter-spacing: 1px; color: #fff; text-transform: uppercase; margin: 0; }
.view-all { font-size: 13px; color: #cc3333; }
.episodes-grid { 
    display: grid; 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: 20px; 
    width: 100%;
}
.episode-card {
    background: #111;
    border: 1px solid #222;
    overflow: hidden;
    min-width: 0;
}
.card-image { position: relative; height: 160px; overflow: hidden; background: #1a1a1a; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.cat-badge {
    position: absolute; top: 10px; left: 10px;
    background: #cc0000; color: #fff;
    font-size: 10px; padding: 3px 8px;
    letter-spacing: 1px; text-transform: uppercase;
    font-weight: 700;
}
.card-body { padding: 15px; }
.card-title { font-size: 16px; margin-bottom: 8px; color: #fff; }
.card-title a { color: #fff; }
.card-excerpt { font-size: 13px; color: #aaa; margin-bottom: 12px; }
.card-meta { font-size: 12px; color: #777; display: flex; justify-content: space-between; align-items: center; }
.card-play { color: #cc0000; font-size: 16px; }

/* Missed list */
.missed-list { display: flex; flex-direction: column; gap: 15px; }
.missed-item { display: flex; gap: 15px; background: #111; border: 1px solid #222; padding: 10px; }
.missed-thumb { width: 80px; height: 60px; flex-shrink: 0; overflow: hidden; }
.missed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.missed-content h3 { font-size: 15px; margin: 4px 0; }
.missed-content h3 a { color: #fff; }
.missed-meta { font-size: 12px; color: #777; }

/* Top links bar (Listen On left + Follow right) */
.top-links-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: #050505;
}
.top-listen {
    display: flex;
    align-items: center;
    gap: 12px;
}
.top-follow {
    display: flex;
    align-items: center;
    gap: 12px;
}
.top-links-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
}
.top-listen-icons, .top-social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.top-listen-icons a, .top-social-icons a {
    color: #cc3333;
    text-decoration: none;
    font-size: 16px;
}
.top-listen-icons a:hover, .top-social-icons a:hover { color: #ff5555; }
.top-listen-icons .listen-icon {
    width: 22px;
    height: 22px;
    font-size: 13px;
}

/* Red divider lines */
.red-divider {
    height: 4px;
    background: #cc0000;
    width: 100%;
    margin: 0;
}

/* Top Ticker - label fixed, text scrolls only inside its own box */
.top-ticker-bar {
    display: flex;
    align-items: stretch;
    background: #0a0a0a;
    height: 44px;
    margin: 0;
    overflow: hidden;
    position: relative;
}
.ticker-label {
    background: #cc0000;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0 14px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 5;
    position: relative;
}
.ticker-label::after {
    content: ' ›';
    margin-left: 4px;
}
.top-ticker-bar .ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}
.top-ticker-bar .ticker-text {
    display: inline-block;
    white-space: nowrap;
    padding-right: 60px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: #ddd;
    letter-spacing: 0.4px;
    animation: scroll-left var(--ticker-speed, 30s) linear infinite;
}
.top-ticker-bar .ticker-content:hover .ticker-text {
    animation-play-state: paused;
}
.ticker-pause {
    color: #888;
    font-size: 14px;
    padding: 0 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    z-index: 5;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Custom Podcast Player */
.nicks-podcast-player {
    background: #111;
    border: 1px solid #330000;
    padding: 20px;
    margin: 20px 0;
}
.nicks-podcast-player h4 { color: #ff4444; font-family: 'Oswald', sans-serif; margin-bottom: 10px; text-transform: uppercase; }
.nicks-podcast-player audio { width: 100%; }
.player-meta { margin-top: 8px; font-size: 13px; color: #aaa; }

/* Single / content */
.entry-title { font-family: 'Oswald', sans-serif; font-size: 32px; color: #fff; margin: 20px 0 10px; text-transform: uppercase; }
.entry-content { padding: 0 30px 30px; }
.entry-meta { color: #888; font-size: 13px; margin-bottom: 15px; }

/* Footer */
.site-footer {
    background: #050505;
    border-top: 1px solid #220000;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 13px;
}
.site-footer a { color: #cc3333; }

/* Hamburger menu button - hidden on desktop */
.menu-toggle {
    display: none !important;
    background: transparent;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1002;
    width: 44px;
    height: 44px;
    padding: 8px;
    border-radius: 4px;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 26px;
    height: 3px;
    background: #cc0000;
    border-radius: 2px;
    position: relative;
    transition: all 0.2s;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }
.menu-toggle:hover .hamburger,
.menu-toggle:hover .hamburger::before,
.menu-toggle:hover .hamburger::after {
    background: #ff4444;
}

/* Responsive */
@media (max-width: 1100px) {
    .episodes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured-title { font-size: 32px; }
}
@media (max-width: 768px) {
    .left-sidebar { left: -270px; transition: left 0.3s; width: 250px; z-index: 1000; }
    .left-sidebar.active { left: 0; }
    .main-content { margin-left: 0; }
    .menu-toggle {
        display: block !important;
        background: rgba(13, 13, 13, 0.85);
        border: 1px solid #330000;
    }
    .episodes-grid { grid-template-columns: 1fr; }
    .featured-episode { 
        padding: 30px 20px; 
        min-height: 260px; 
        background-position: center center !important;
    }
    .featured-inner { max-width: 100%; }
    .featured-play-card { display: none; }
    .entry-content, .episodes-grid-section, .missed-section { padding-left: 15px; padding-right: 15px; }
    .top-ticker-bar { height: 40px; }
    .ticker-label { font-size: 10px; padding: 0 10px; }
    .top-ticker-bar .ticker-text { font-size: 12px; }
}

/* Hide SSP default player */
.ssp-player, .castos-player, .podcast-player { display: none !important; }
