/* styles.css */
body { 
    font-family: system-ui, sans-serif; 
    background: #0a0a0a; 
    color: #eee; 
    margin: 0; 
    padding: 20px; 
    line-height: 1.4;
}

h1 { 
    color: #ff3b30; 
    margin: 20px auto 30px auto; 
    max-width: 980px;
    text-align: center;
}

/* ================== NAV ================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 16px;
    border-bottom: 1px solid #222;
    margin-bottom: 30px;
    position: relative;
}

.nav-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.logo {
    font-size: 1.6em;
    font-weight: 700;
    color: #ff3b30;
    text-decoration: none;
    line-height: 1;
}
.logo:hover { opacity: 0.9; }

.small { 
    font-size: 0.82em; 
    color: #888; 
    margin: 0;
    white-space: nowrap;
}

/* Hamburger */
.hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #eee;
    margin: 6px 0;
    transition: all 0.4s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Menu */
.nav-menu {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    background: #111;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    z-index: 100;
    border-top: 1px solid #222;
}

.nav-menu.active {
    display: flex;
}

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

.nav-menu a {
    display: block;
    padding: 16px 0;
    font-size: 1.35em;
    color: #eee;
    text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ff3b30;
}

/* Desktop nav */
@media (min-width: 700px) {
    .hamburger { display: none; }
    
    .nav-menu {
        display: flex;
        position: static;
        width: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
        gap: 42px;
    }
    
    .nav-menu li { width: auto; }
    .nav-menu a {
        padding: 0;
        font-size: 1.15em;
    }
}



/* ================== CONTAINERS ================== */
.archive-container, .latest-container { 
    max-width: 980px; 
    margin: 0 auto; 
}

/* TABLE (Archive) */
table { 
    width: auto; 
    max-width: 820px; 
    margin: 0 auto;
    border-collapse: collapse; 
    background: #111; 
}
td { 
    padding: 10px 6px; 
    border-bottom: 1px solid #222; 
    vertical-align: middle; 
}
td.date-col { width: 125px; font-size: 0.9em; white-space: nowrap; }
td.audio-col { min-width: 260px; padding-right: 6px; }
td.transcript-col { text-align: right; width: 110px; padding-left: 8px; white-space: nowrap; }

audio { 
    width: 100%; 
    max-width: 340px; 
    display: block; 
}

/* LATEST EPISODE */
.episode-date {
    font-size: 1.15em;
    color: #888;
    margin-bottom: 15px;
    font-weight: 400;
    text-align: center;
}

.latest-container audio {
    width: 100%;
    max-width: 520px;
    display: block;
    margin: 0 auto 30px auto;
}

.transcript {
    background: #111;
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
}
.transcript h2 {
    color: #ff3b30;
    margin: 0 0 18px 0;
    font-size: 1.35em;
    text-align: center;
}
.transcript p {
    font-size: 1.04em;
    line-height: 1.68;
    color: #eee;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* LINKS */
a { color: #ff9500; text-decoration: none; }
a:hover { text-decoration: underline; }

.episode-link { 
    color: #00ccff; 
    font-weight: 500; 
    font-size: 0.92em; 
}

/* MOBILE */
@media (max-width: 500px) {
    body { padding: 12px; }
    table { max-width: 100%; }
    audio { max-width: 270px; }
    
    h1 {
        margin: 16px auto 24px auto;
    }
}
/* ================== FIXED FOOTER (sys tray style) ================== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-top: 1px solid #222;
    padding: 18px 32px;           /* ← increased right padding */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 200;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.6);
}

#share-x-link {
    font-size: 1.65em;
    color: #1da1f2;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1;
}

#share-x-link:hover {
    color: white;
    transform: scale(1.15);
}

/* Give content breathing room so it doesn't hide under the fixed footer */
body {
    padding-bottom: 120px;   /* matches footer height + a bit of padding */
}


/* FOOTER updates for add to home effect*/
footer {
    max-width: 980px;
    margin: 60px auto 30px;
    padding-top: 20px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: center;
}

.footer-content {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link,
.footer-btn {
    color: #888;
    font-size: 0.95em;
    padding: 10px 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.footer-link:hover,
.footer-btn:hover {
    background: #1a1a1a;
    color: #eee;
    border-color: #333;
}

/* ================== bin-stack-ination (Stack style) ================== */
.bin-stack-ination {
    text-align: center;
    margin: 40px 0 30px;
    padding: 20px 0;
    border-top: 1px solid #222;
    color: #888;
    font-size: 1.05em;
}
.bin-stack-ination a {
    color: #ff9500;
    margin: 0 20px;
    font-weight: 500;
}