/*
Theme Name: GODOFIAN Child
Theme URI: https://godofian.com
Description: Personal timeline archive — Child theme for GeneratePress
Author: GODOFIAN
Author URI: https://godofian.com
Template: generatepress
Version: 2.0.0
Text Domain: godofian-child
*/

/* ─── IMPORTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&family=Inter:wght@100;400;700;900&family=Noto+Sans:wght@200;300;400;500;600;700&display=swap');

/* ─── CSS VARIABLES ─── */
:root {
    /* Colors */
    --bg-primary: #fbf9f4;
    --bg-filter: #f5f4ed;
    --bg-card: #ffffff;
    --bg-card-hover: rgba(243, 243, 244, 0.5);
    --bg-input: #ffffff;
    --bg-btn-dark: #0e0e0c;
    --bg-btn-secondary: #e8e9e0;
    --bg-tag-parent: #e5e2de;
    --bg-tag-child: #f7f3ea;

    --border-primary: rgba(177, 179, 169, 0.15);
    --border-secondary: rgba(177, 179, 169, 0.3);
    --border-accent: rgba(198, 198, 198, 0.2);

    --text-primary: #31332c;
    --text-secondary: #5e6058;
    --text-muted: #5f5e5e;
    --text-dim: #b1b3a9;
    --text-nav: #c6c6c6;

    --accent: #0e0e0c;
    --danger: #cc4444;
    --danger-border: #f0d0d0;

    /* Typography */
    --font-primary: 'Noto Sans KR', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', 'Noto Sans KR', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Max width */
    --content-max: 1000px;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    background-image: radial-gradient(#c6c6c6 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}


/* ═══════════════════════════════════════════
   HEADER — matches wpcode-global-header-v5
   ═══════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(251, 249, 244, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-primary);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-logo {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
}

.site-logo:hover {
    opacity: 0.7;
}

/* Header right actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.header-btn--primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.header-btn--primary:hover {
    opacity: 0.9;
    color: #fff;
}

.header-btn--secondary {
    background: var(--bg-btn-secondary);
    color: var(--text-primary);
}

.header-btn--secondary:hover {
    background: #e2e3d9;
}

.header-btn--icon {
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn--icon:hover {
    opacity: 0.6;
}

/* Search bar (expandable) */
.search-bar {
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--border-primary);
}

.search-bar__input {
    width: 100%;
    height: 40px;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-family: var(--font-primary);
    border: none;
    background: var(--bg-filter);
    color: var(--text-primary);
    outline: none;
}

.search-bar__input::placeholder {
    color: var(--text-dim);
}

.search-bar__input:focus {
    outline: 1px solid var(--text-muted);
}


/* ═══════════════════════════════════════════
   ENTRY GATE — split panel layout
   ═══════════════════════════════════════════ */
.entry-gate {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 4rem);
    padding: 0;
}

.entry-gate__directories {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(100vh - 4rem);
}

.entry-gate__card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2.5rem;
    text-decoration: none;
    transition: background-color 0.15s;
}

.entry-gate__card:first-child {
    border-bottom: 1px solid var(--border-accent);
}

.entry-gate__card:hover {
    background-color: var(--bg-card-hover);
}

.entry-gate__card-inner {
    max-width: 28rem;
    width: 100%;
    text-align: center;
}

.entry-gate__card-label {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 2.5rem;
}

.entry-gate__card-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 3rem 0;
}

.entry-gate__card-action {
    display: inline-block;
    background: #000;
    color: #e4e2e1;
    padding: 1.25rem 3rem;
    font-family: var(--font-primary);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.entry-gate__card:hover .entry-gate__card-action {
    background: #2f3131;
}

.entry-gate__meta {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    text-align: right;
    opacity: 0.2;
    pointer-events: none;
    user-select: none;
}

.entry-gate__sequence,
.entry-gate__status {
    font-family: var(--font-heading);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
}

@media (min-width: 768px) {
    .entry-gate__directories {
        flex-direction: row;
    }
    .entry-gate__card:first-child {
        border-bottom: none;
        border-right: 1px solid var(--border-accent);
    }
}

@media (max-width: 767px) {
    .entry-gate__card-title {
        font-size: 2.5rem;
    }
    .entry-gate__meta {
        display: none;
    }
}


/* ═══════════════════════════════════════════
   CONTENT CENTERING
   Primary centering — also reinforced in GP Overrides
   ═══════════════════════════════════════════ */
.page-header,
.filter-section,
.timeline-section,
.load-more-wrap,
.login-prompt,
.post-detail,
.godofian-form {
    width: 90% !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.header-inner,
.search-bar {
    width: 90% !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.entry-gate {
    width: 100% !important;
    max-width: 100% !important;
}

.entry-gate__directories {
    width: 100% !important;
}


/* ═══════════════════════════════════════════
   PAGE HEADER — title + actions
   ═══════════════════════════════════════════ */
.page-header {
    padding: 2.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.page-title {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--text-primary);
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 767px) {
    .page-title {
        font-size: 1.75rem;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem 0;
        margin-bottom: 2rem;
    }
}


/* ═══════════════════════════════════════════
   FILTER BAR — matches HTML mockup style
   ═══════════════════════════════════════════ */
.filter-section {
    margin-bottom: 2.5rem;
}

.filter-inner {
    background: var(--bg-filter);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-secondary);
}

.filter-select-wrap {
    position: relative;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: none;
    padding: 0.625rem 2.5rem 0.625rem 0.75rem;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    min-width: 160px;
    height: 40px;
    line-height: 1.4;
    cursor: pointer;
    color: var(--text-primary);
}

.filter-select:focus {
    outline: 1px solid var(--text-muted);
}

.filter-select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #797c73;
}

/* Category buttons */
.filter-cat-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-cat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-cat-btn {
    padding: 0.5rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.filter-cat-btn--active {
    background: var(--accent);
    color: var(--bg-primary);
}

.filter-cat-btn--inactive {
    background: var(--bg-tag-parent);
    color: #52524f;
}

.filter-cat-btn--inactive:hover {
    background: #d7d4d0;
}

/* Child / grandchild sub-filters */
.filter-sub-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(177, 179, 169, 0.2);
    min-height: 2rem;
    align-items: center;
}

.filter-sub-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-dim);
    margin-right: 0.5rem;
}

.filter-sub-btn {
    padding: 0.375rem 1rem;
    background: none;
    border: 1px solid rgba(177, 179, 169, 0.3);
    border-radius: 9999px;
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.filter-sub-btn:hover,
.filter-sub-btn--active {
    background: var(--bg-tag-parent);
    color: var(--text-primary);
    border-color: var(--bg-tag-parent);
}

/* Tag filter row */
.filter-tag-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}


/* ═══════════════════════════════════════════
   TIMELINE — vertical line with dots
   ═══════════════════════════════════════════ */
.timeline-section {
    padding-bottom: 4rem;
}

.timeline-wrap {
    position: relative;
    margin-left: 24px;
    padding-left: 48px;
}

.timeline-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e3d9;
}

/* Timeline entry */
.timeline-entry {
    position: relative;
    margin-bottom: 5rem;
    cursor: pointer;
}

.timeline-entry:last-child {
    margin-bottom: 0;
}

/* Timeline dot */
.timeline-entry::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    left: calc(-48px - 6px);
    top: 4px;
    background: var(--text-dim);
    transition: box-shadow 0.3s ease;
}

.timeline-entry:first-child::before {
    background: var(--text-muted);
}

.timeline-entry:hover::before {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 0 0 8px rgba(95, 94, 94, 0.06);
}

/* Entry content */
.timeline-entry__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-entry__date {
    font-family: var(--font-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.timeline-entry__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge {
    padding: 0.2rem 0.65rem;
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    display: inline-block;
}

.tag-badge--parent {
    background: var(--bg-tag-parent);
    color: #52524f;
}

.tag-badge--child {
    background: var(--bg-tag-child);
    color: #5d5c55;
}

.tag-badge--emotion {
    background: transparent;
    border: 1px solid rgba(177, 179, 169, 0.3);
    color: var(--text-secondary);
}

.tag-badge--private {
    border: 1px solid var(--danger);
    color: var(--danger);
    background: transparent;
}

.timeline-entry__title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
    max-width: 48rem;
    color: var(--text-primary);
}

.timeline-entry__title a {
    color: inherit;
    text-decoration: none;
}

.timeline-entry__title a:hover {
    color: inherit;
}

/* Expanded card below entry — always visible */
.timeline-card {
    background: var(--bg-card);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    max-width: 42rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-top: 0.5rem;
}

.timeline-card__actions {
    display: flex;
    gap: 6px;
    margin-bottom: var(--space-md);
}

/* Admin bar (edit/delete) — hidden by default, toggled on click */
.timeline-card__admin {
    display: flex;
    gap: 6px;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-primary);
}

.timeline-card__content {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    word-break: keep-all;
}

.timeline-card__content p {
    margin-bottom: var(--space-sm);
}

.timeline-card__links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.timeline-card__link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: var(--font-primary);
    letter-spacing: 0.04em;
    color: #e4e2e1;
    background: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s;
}

.timeline-card__link:hover {
    background: #2f3131;
    color: #fff;
}


/* ═══════════════════════════════════════════
   ACTION BUTTONS (EDIT / DELETE)
   ═══════════════════════════════════════════ */
.action-btn {
    padding: 0.375rem 1rem;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-primary);
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-secondary);
    cursor: pointer;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.action-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.action-btn--danger {
    color: var(--danger);
    border-color: var(--danger-border);
}

.action-btn--danger:hover {
    border-color: var(--danger);
}


/* ═══════════════════════════════════════════
   LOAD MORE
   ═══════════════════════════════════════════ */
.load-more-wrap {
    padding-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.btn-load-more {
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-load-more:hover {
    opacity: 0.9;
}


/* ═══════════════════════════════════════════
   LOGIN PROMPT
   ═══════════════════════════════════════════ */
.login-prompt {
    text-align: center;
    padding: 120px 0;
}

.login-prompt__text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.login-prompt__btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: var(--font-primary);
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s;
}

.login-prompt__btn:hover {
    opacity: 0.9;
    color: #fff;
}


/* ═══════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 60px 0;
    font-size: 0.875rem;
    color: var(--text-dim);
}


/* ═══════════════════════════════════════════
   POST DETAIL (single.php)
   ═══════════════════════════════════════════ */
.post-detail {
    padding: 2.5rem 0 4rem;
}

.post-detail__back {
    margin-bottom: var(--space-xl);
}

.post-detail__back-link {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.post-detail__back-link:hover {
    color: var(--text-primary);
}

.post-detail__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.post-detail__title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.post-detail__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.post-detail__actions {
    display: flex;
    gap: 8px;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
}

.post-detail__content {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 2;
    margin-bottom: var(--space-xl);
    word-break: keep-all;
}

.post-detail__content p {
    margin-bottom: var(--space-md);
}

.post-detail__links {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-primary);
}

.post-detail__links-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    display: block;
}

@media (min-width: 768px) {
    .post-detail__title {
        font-size: 2.5rem;
    }
}


/* ═══════════════════════════════════════════
   FORM STYLES (new-entry / edit-entry)
   ═══════════════════════════════════════════ */
.godofian-form {
    padding: 2.5rem 0 4rem;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-primary);
    font-weight: 500;
    background: var(--bg-input);
    color: var(--text-primary);
    border: none;
    border-radius: 0;
    outline: none;
    transition: box-shadow 0.2s;
    -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: 1px solid var(--text-muted);
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.8;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-dim);
}

.form-checkbox-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.375rem 1rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    border: 1px solid rgba(177, 179, 169, 0.3);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
}

.form-checkbox-label:hover {
    background: var(--bg-tag-parent);
    border-color: var(--bg-tag-parent);
}

.form-checkbox-label input[type="checkbox"] {
    display: none;
}

.form-checkbox-label--checked {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.form-radio-group {
    display: flex;
    gap: 1rem;
}

.form-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-primary);
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.form-submit:hover {
    opacity: 0.9;
}

/* Related links rows */
.related-links-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-link-row {
    display: flex;
    gap: 8px;
}

.related-link-row .form-input {
    flex: 1;
}

.btn-add-link {
    padding: 0.5rem 1rem;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-primary);
    background: transparent;
    color: var(--text-muted);
    border: 1px dashed var(--border-secondary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.btn-add-link:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.category-cascade {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: var(--space-sm);
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    font-size: 10px;
    color: var(--text-dim);
    border-top: 1px solid var(--border-primary);
    font-style: italic;
    letter-spacing: 0.03em;
}


/* ═══════════════════════════════════════════
   MOBILE BOTTOM NAV
   ═══════════════════════════════════════════ */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(251, 249, 244, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-primary);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.04);
    height: 5rem;
    z-index: 9998;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.2s;
    font-family: var(--font-primary);
    text-decoration: none;
}

.bottom-nav__item:hover {
    opacity: 1;
}

.bottom-nav__item--active {
    color: var(--text-primary);
    opacity: 1;
    transform: scale(1.1);
}

.bottom-nav__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-top: 0.25rem;
}


/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 767px) {
    .header-inner {
        padding: 1rem 0;
    }

    .page-header,
    .filter-section,
    .timeline-section,
    .load-more-wrap,
    .login-prompt,
    .post-detail,
    .godofian-form {
        width: 92%;
    }

    .bottom-nav {
        display: flex;
    }

    .timeline-wrap {
        margin-left: 12px;
        padding-left: 32px;
    }

    .timeline-entry::before {
        left: calc(-32px - 6px);
    }

    .timeline-entry__title {
        font-size: 0.95rem;
    }

    .timeline-card {
        padding: 1rem 1.25rem;
    }

    .entry-gate__card {
        padding: 2.5rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}


/* ═══════════════════════════════════════════
   GENERATEPRESS OVERRIDES
   Goal: Force GP wrappers to full width so our
   centering (.page-header etc) works correctly.
   Using high specificity instead of nuking display.
   ═══════════════════════════════════════════ */

/* Background */
body .site,
body.flavor .site {
    background-color: var(--bg-primary) !important;
    background-image: radial-gradient(#c6c6c6 0.5px, transparent 0.5px) !important;
    background-size: 20px 20px !important;
}

/* Force all GP layout wrappers to full width */
body .site > .site-content,
body #content,
body .content-area,
body .site-main,
body .container,
body .grid-container,
body .inside-page-hero,
body main,
body .site-content > main,
body .right-sidebar .site-main,
body .right-sidebar .content-area,
body.right-sidebar .site-main,
body.right-sidebar .content-area {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

/* Kill GP sidebar layout — force full width on all pages */
body.right-sidebar .site-content .content-area,
body.left-sidebar .site-content .content-area,
body.both-sidebars .site-content .content-area,
.separate-containers .site-main,
.separate-containers .inside-article {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Article wrapper — remove GP background/padding/border */
body .inside-article {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    float: none !important;
}

/* Remove GP sidebar */
body #secondary,
body .sidebar,
body .widget-area {
    display: none !important;
}

/* ─── Centering: our sections ─── */
/* This must beat GP's width:100% on .godofian-form etc */
body .page-header,
body .filter-section,
body .timeline-section,
body .load-more-wrap,
body .login-prompt,
body .post-detail,
body .godofian-form {
    width: 90% !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Entry gate: same width as other pages */
body .entry-gate {
    width: 90% !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body .entry-gate__directories {
    display: flex !important;
    width: 100% !important;
}

/* Header inner centering */
body .header-inner {
    width: 90% !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
}

/* Search bar centering */
body .search-bar {
    width: 90% !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
