/* ── Bright Ones — matching brightonepod.com aesthetic ── */

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

:root {
    --sky: #1a6bcc;
    --sun: #f5c518;
    --sun-light: #fffbe6;
    --text: #1a1a2e;
    --muted: #555;
    --card-bg: #fff;
    --border: #e0e8f5;
    --link: #1a6bcc;
    --radius: 10px;
    --font: 'Georgia', serif;
    --mono: 'Courier New', monospace;
}

body {
    font-family: var(--font);
    background: #f0f6ff;
    color: var(--text);
    min-height: 100vh;
}

/* ── Site header (shared across pages) ── */
.site-header {
    background: var(--sky);
    color: #fff;
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}

.site-header img.logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 3px solid var(--sun);
}

.site-header h1 {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.02em;
}

.site-header .tagline {
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.site-header .header-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.site-header .header-links a {
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.2s;
}

.site-header .header-links a:hover { background: rgba(255,255,255,0.28); }

/* ── Main container ── */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

/* ── Episode cards (home + archive) ── */
.year-heading {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--sky);
    margin: 1.5rem 0 0.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.3rem;
}

.month-heading {
    font-size: 1rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 1rem 0 0.5rem;
}

.episode-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.6rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, transform 0.15s;
}

.episode-card:hover {
    box-shadow: 0 4px 18px rgba(26,107,204,0.13);
    transform: translateY(-1px);
}

.episode-card .ep-day {
    font-size: 1.7rem;
    font-weight: bold;
    color: var(--sky);
    min-width: 2.5rem;
    text-align: center;
    line-height: 1;
}

.episode-card .ep-info { flex: 1; }

.episode-card .ep-date {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.15rem;
}

.episode-card .ep-title {
    font-size: 1rem;
    font-weight: 600;
}

.episode-card .ep-arrow {
    color: var(--sky);
    font-size: 1.2rem;
}

.view-all {
    display: inline-block;
    margin-top: 1rem;
    color: var(--link);
    text-decoration: none;
    font-size: 0.95rem;
}

.view-all:hover { text-decoration: underline; }

/* ── Episode detail page ── */
.ep-detail-header {
    background: var(--sky);
    color: #fff;
    padding: 1.5rem 1rem;
    text-align: center;
}

.ep-detail-header .ep-number { font-size: 0.9rem; opacity: 0.8; }
.ep-detail-header h1 { font-size: 1.6rem; margin: 0.3rem 0; }
.ep-detail-header .ep-meta { font-size: 0.9rem; opacity: 0.8; }

.ep-detail-header .yt-link {
    display: inline-block;
    margin-top: 0.75rem;
    background: var(--sun);
    color: #333;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.ep-detail-header .yt-link:hover { background: #e6b800; }

.stories-heading {
    font-size: 1.1rem;
    color: var(--sky);
    margin: 1.5rem 0 0.75rem;
    font-weight: bold;
}

.story-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.story-link-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: var(--sun-light);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}

.story-link-bar:hover { background: #fff8d0; }

.story-sun { font-size: 1.1rem; }

.story-link-text { flex: 1; }

.story-headline { font-weight: 600; font-size: 0.95rem; }

.story-domain { font-size: 0.75rem; color: var(--muted); }

.story-body {
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
}

/* ── Episode navigation ── */
.ep-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.ep-nav a { color: var(--link); text-decoration: none; }
.ep-nav a:hover { text-decoration: underline; }

/* ── Admin / form pages ── */
.admin-header {
    background: var(--sky);
    color: #fff;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header h1 { font-size: 1.3rem; }

.admin-header a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-header a:hover { color: #fff; }

.admin-body { max-width: 820px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

.form-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.form-section h3 {
    font-size: 1rem;
    color: var(--sky);
    margin-bottom: 1rem;
    font-weight: bold;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 140px;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
    font-family: sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
    border: 1px solid #cdd8ec;
    border-radius: 6px;
    padding: 0.45rem 0.65rem;
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--sky);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.btn {
    display: inline-block;
    padding: 0.55rem 1.3rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: var(--font);
    text-decoration: none;
    transition: background 0.15s;
}

.btn-primary { background: var(--sky); color: #fff; }
.btn-primary:hover { background: #155aaa; }

.btn-sun { background: var(--sun); color: #333; font-weight: bold; }
.btn-sun:hover { background: #e6b800; }

.btn-danger { background: #c0392b; color: #fff; font-size: 0.85rem; padding: 0.4rem 0.9rem; }
.btn-danger:hover { background: #a93226; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--sky);
    color: var(--sky);
}
.btn-outline:hover { background: #e8f0fb; }

/* ── Archive table ── */
.archive-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.archive-table th {
    background: var(--sky);
    color: #fff;
    text-align: left;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    font-family: sans-serif;
}

.archive-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    vertical-align: middle;
}

.archive-table tr:last-child td { border-bottom: none; }
.archive-table tr:hover td { background: #f5f9ff; }

.archive-table .ep-num {
    font-weight: bold;
    color: var(--sky);
    width: 50px;
}

.archive-table .actions { white-space: nowrap; }

.archive-table a { color: var(--link); text-decoration: none; }
.archive-table a:hover { text-decoration: underline; }

/* ── Site footer ── */
.site-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.82rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.site-footer a { color: var(--link); text-decoration: none; }
