/* ============================================
   PMLENS-Elementics — Main Stylesheet
   Ref: documentation/spec-official/3.PMLENS-Elementics-theme-style-guide.md
   ============================================ */

/* --- Reset / Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--pmlens-font-sans);
    background-color: var(--pmlens-bg);
    color: var(--pmlens-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--pmlens-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}
a:hover {
    opacity: 0.85;
}

/* --- Container (wide layout) --- */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}
@media (min-width: 1280px) {
    .container {
        max-width: 1240px;
        padding: 0 var(--space-xl);
    }
}

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--pmlens-primary);
    line-height: 1.3;
    margin-top: 0;
}

h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

.section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pmlens-accent);
    font-weight: 700;
    margin-bottom: var(--space-md);
    margin-top: var(--space-md);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn-primary {
    background-color: var(--pmlens-primary);
    color: #FFF;
}
.btn-secondary {
    background-color: var(--pmlens-primary-light);
    color: var(--pmlens-primary);
}
.btn-ghost {
    background: transparent;
    color: var(--pmlens-primary);
    border: 1px solid var(--pmlens-border);
}
.btn-sm {
    font-size: 0.8125rem !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
}

/* --- Tags / Badges --- */
.tag {
    display: inline-block;
    background: var(--pmlens-primary-light);
    color: var(--pmlens-primary);
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}
a.tag:hover {
    background: var(--pmlens-primary);
    color: #FFF;
    border-color: var(--pmlens-primary);
}
.tag.active {
    background: var(--pmlens-primary);
    color: #FFF;
    border-color: var(--pmlens-primary);
}
.tag .tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 10px;
    background: rgba(255,255,255,0.25);
    font-size: 11px;
    font-weight: 700;
}
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* --- Cards --- */
.card {
    background: var(--pmlens-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--pmlens-border);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ============================================
   HEADER & NAVIGATION — OVERRIDE PARENT THEME
   ============================================ */

/* --- Override all parent el-* classes in header --- */
.el-header-wrap,
.el-header-wrap .el-container,
.el-header-wrap .el-row,
.el-header-wrap .el-col,
.el-header-wrap .el-col-inner {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    min-height: 0 !important;
    height: auto !important;
}
.el-menu-box,
.el-menu-box ul,
.el-menu-box li,
.el-menu-box a {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.el-menu-box a {
    color: var(--pmlens-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 4px 14px !important;
    border-radius: 6px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* --- Site Header (override parent .site-header) --- */
.site-header {
    background: #FFF !important;
    border-bottom: 1px solid var(--pmlens-border) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    transition: box-shadow 0.3s !important;
    width: 100% !important;
    padding: 0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm) !important;
}

/* --- Header Inner (override parent .header-inner etc.) --- */
.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 48px !important;
    padding: 0 20px !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* --- Brand / Logo --- */
.site-branding {
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.site-branding a {
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
}
.site-title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: var(--pmlens-primary) !important;
    letter-spacing: -0.3px !important;
    line-height: 1 !important;
    padding: 0 !important;
    text-transform: none !important;
}
.custom-logo {
    max-height: 50px;
}

/* --- Desktop Navigation --- */
.main-nav {
    display: flex !important;
    align-items: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
}
.nav-menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    background: transparent !important;
}
.nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}
.nav-menu a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--pmlens-text) !important;
    padding: 4px 14px !important;
    border-radius: 6px !important;
    transition: background 0.2s, color 0.2s !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    border: none !important;
    background: none !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a {
    background: var(--pmlens-primary-light) !important;
    color: var(--pmlens-primary) !important;
}

/* --- Hamburger --- */
.hamburger {
    display: inline-flex !important;
    flex-direction: column !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 6px !important;
    transition: background 0.2s !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}
.hamburger:hover {
    background: var(--pmlens-bg) !important;
}
.hamburger span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: var(--pmlens-text) !important;
    margin: 3px 0 !important;
    border-radius: 1px !important;
    transition: transform 0.3s, opacity 0.3s !important;
    position: static !important;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg) !important;
}
.hamburger.active span:nth-child(2) {
    opacity: 0 !important;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg) !important;
}

/* --- Desktop: show nav by default --- */
@media (min-width: 768px) {
    .main-nav {
        display: flex !important;
    }
}

/* --- Search Toggle --- */
.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* --- Desktop Inline Search --- */
.header-search-desktop {
    display: flex !important;
    align-items: center !important;
}
.header-search-desktop form {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    border-bottom: 1px solid var(--pmlens-border) !important;
    padding: 2px 0 !important;
    transition: border-color 0.2s !important;
}
.header-search-desktop form:focus-within {
    border-bottom-color: var(--pmlens-primary) !important;
}
.header-search-desktop .header-search-icon {
    flex-shrink: 0 !important;
    color: var(--pmlens-text-muted) !important;
    opacity: 0.6 !important;
    transition: opacity 0.2s !important;
}
.header-search-desktop form:focus-within .header-search-icon {
    opacity: 1 !important;
    color: var(--pmlens-primary) !important;
}
.header-search-desktop input[type="search"] {
    border: none !important;
    background: none !important;
    outline: none !important;
    font-size: 0.875rem !important;
    padding: 4px 0 !important;
    width: 160px !important;
    color: var(--pmlens-text) !important;
    font-family: inherit !important;
    transition: width 0.2s !important;
}
.header-search-desktop input[type="search"]::placeholder {
    color: var(--pmlens-text-muted) !important;
    opacity: 0.7 !important;
}
.header-search-desktop input[type="search"]:focus {
    width: 220px !important;
}

/* --- Side Drawer --- */
.drawer-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    z-index: 200 !important;
}
.drawer-overlay.active {
    display: block !important;
}
.drawer-panel {
    background: var(--pmlens-surface) !important;
    width: 280px !important;
    max-width: 80vw !important;
    height: 100% !important;
    padding: 20px !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease-in-out !important;
    overflow-y: auto !important;
    box-shadow: none !important;
    border: none !important;
    border-right: 1px solid var(--pmlens-border) !important;
}
.drawer-overlay.active .drawer-panel {
    transform: translateX(0) !important;
}
.drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--pmlens-border) !important;
}
.drawer-header .site-title {
    font-size: 1.125rem !important;
}
.drawer-close {
    background: none !important;
    border: none !important;
    font-size: 1.4rem !important;
    cursor: pointer !important;
    color: var(--pmlens-text-muted) !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: background 0.2s !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.drawer-close:hover {
    background: var(--pmlens-bg) !important;
}
.drawer-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.drawer-menu li {
    margin-bottom: 4px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}
.drawer-menu a {
    display: block !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--pmlens-primary) !important;
    padding: 10px 8px !important;
    border-radius: 6px !important;
    transition: background 0.2s !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    margin: 0 !important;
}
.drawer-menu a:hover {
    background: var(--pmlens-bg) !important;
}

/* --- Drawer Search --- */
.drawer-search {
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--pmlens-border) !important;
}
.drawer-search form {
    display: flex !important;
    gap: 8px !important;
}
.drawer-search input[type="search"] {
    flex: 1 !important;
    padding: 8px 12px !important;
    border: 1px solid var(--pmlens-border) !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-family: inherit !important;
    background: var(--pmlens-bg) !important;
    color: var(--pmlens-text) !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    min-width: 0 !important;
}
.drawer-search input[type="search"]:focus {
    border-color: var(--pmlens-primary) !important;
}
.drawer-search button {
    background: var(--pmlens-primary) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: opacity 0.2s !important;
}
.drawer-search button:hover {
    opacity: 0.85 !important;
}

/* ============================================
   GLOBAL EL-* OVERRIDES (catch-all for parent theme)
   ============================================ */
[class*="el-"] {
    font-family: var(--pmlens-font-sans) !important;
}
.el-section,
.el-container,
.el-row,
.el-col {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
}
.el-title,
.el-heading,
.el-subheading {
    color: var(--pmlens-primary) !important;
    font-family: var(--pmlens-font-sans) !important;
}
.el-button,
.el-button-inner {
    font-family: var(--pmlens-font-sans) !important;
}
.el-text,
.el-content {
    color: var(--pmlens-text) !important;
    font-family: var(--pmlens-font-sans) !important;
}

/* ============================================
   HOMEPAGE — My Bookshelf Header (full-width bg)
   ============================================ */
.hp-hero-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: url('../images/pinned-book-bg.jpg') center/cover no-repeat;
    padding: 80px 0;
}
.hp-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
.hp-hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--pmlens-primary);
    margin: 0 0 10px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.hp-hero-sub {
    font-size: 1.15rem;
    color: var(--pmlens-text-muted);
    margin: 0 0 24px;
    max-width: 560px;
}

/* ============================================
   HOMEPAGE — Pinned Book (full-width hero)
   ============================================ */
.hp-pinned {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
    background: var(--pmlens-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--pmlens-border);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-md);
    align-items: center;
}
.hp-pinned-cover {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--pmlens-bg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.hp-pinned-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hp-pinned-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.hp-pinned-badge {
    display: inline-block;
    background: var(--pmlens-accent);
    color: #FFF;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.hp-pinned-info h2 {
    font-size: 1.75rem;
    margin: 0 0 4px;
    color: var(--pmlens-primary);
}
.hp-pinned-author {
    color: var(--pmlens-text-muted);
    font-size: 1rem;
    margin: 0 0 12px;
}
.hp-pinned-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.hp-pinned-desc {
    color: var(--pmlens-text);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 12px;
}

/* ============================================
   HOMEPAGE — Featured + Stats Row
   ============================================ */
.hp-featured-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

/* --- Featured Book --- */
.hp-featured-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-lg);
    background: var(--pmlens-primary);
    border-radius: var(--radius-lg);
    border: none;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}
.hp-featured-card h3 a {
    color: #FFF !important;
}
.hp-featured-card .hp-featured-author {
    color: rgba(255,255,255,0.7) !important;
}
.hp-featured-card .book-status-badge {
    background: var(--pmlens-accent);
    color: #FFF;
}
.hp-featured-card .book-progress-label {
    color: rgba(255,255,255,0.7);
}
.hp-featured-card .tag {
    background: rgba(255,255,255,0.15);
    color: #FFF;
}
.hp-featured-cover {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--pmlens-bg);
}
.hp-featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hp-featured-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.hp-featured-info h3 {
    font-size: 1.375rem;
    margin: 0 0 4px;
}
.hp-featured-info h3 a {
    color: var(--pmlens-primary);
    text-decoration: none;
}
.hp-featured-author {
    color: var(--pmlens-text-muted);
    font-size: 0.9375rem;
    margin: 0 0 10px;
}

/* --- Statistics Sidebar --- */
.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}
.hp-stat-item {
    background: var(--pmlens-surface);
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
}
.hp-stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pmlens-primary);
    line-height: 1;
}
.hp-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--pmlens-text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Stay in Loop --- */
.hp-stay-in-loop {
    background: var(--pmlens-surface);
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}
.hp-subscribe-form {
    display: flex;
    gap: 6px;
}
.hp-subscribe-form input[type="email"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--pmlens-border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}
.hp-subscribe-form button {
    padding: 8px 14px;
    background: var(--pmlens-primary);
    color: #FFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

/* --- Book Collection --- */
.hp-collection {
    margin-bottom: var(--space-3xl);
}

/* ============================================
   ABOUT ME HERO (shared with homepage)
   ============================================ */
.hero {
    text-align: center;
    padding: 80px var(--space-lg) 60px;
}
.hero .avatar {
    width: 120px;
    height: 120px;
    background-color: var(--pmlens-primary);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-lg);
    border: 4px solid var(--pmlens-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #FFF;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.hero .tagline {
    font-size: 1.25rem;
    color: var(--pmlens-text-muted);
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero .intro {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    color: var(--pmlens-text-muted);
}
.hero .btn {
    margin: 6px 10px;
}

/* ============================================
   CORE IDENTITY (About Me)
   ============================================ */
.core-identity {
    display: flex;
    flex-direction: column;
    background: var(--pmlens-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--pmlens-border);
    margin-bottom: var(--space-2xl);
}
.core-item {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--pmlens-border);
}
.core-item:last-child { border-bottom: none; }
.core-label {
    font-size: 12px;
    color: var(--pmlens-text-muted);
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}
.core-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--pmlens-primary);
}

/* ============================================
   BOOK GRID (Homepage)
   ============================================ */
.book-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-2xl) 0;
}

.book-card {
    background: var(--pmlens-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--pmlens-border);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}
.book-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.book-card a {
    color: inherit;
}
.book-card-cover {
    aspect-ratio: 2 / 3;
    background: var(--pmlens-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}
.book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.book-card:hover .book-card-cover img {
    transform: scale(1.05);
}
.book-card-body {
    padding: var(--space-md) var(--space-md) var(--space-lg);
}
.book-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}
.book-card-author {
    font-size: 0.875rem;
    color: var(--pmlens-text-muted);
    margin: 0 0 var(--space-sm);
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.book-progress {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-sm) 0;
}
.book-progress-track {
    flex: 1;
    height: 6px;
    background: var(--pmlens-border);
    border-radius: 3px;
    overflow: hidden;
}
.book-progress-fill {
    height: 100%;
    background: var(--pmlens-accent);
    border-radius: 3px;
    transition: width 0.5s ease-out;
}
.book-progress-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--pmlens-text-muted);
    min-width: 36px;
    text-align: right;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding: 0;
}
.timeline-item {
    position: relative;
    padding-left: var(--space-lg);
    border-left: 2px solid var(--pmlens-border);
    margin-bottom: 28px;
    padding-bottom: var(--space-sm);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: var(--pmlens-accent);
    border-radius: 50%;
}
.timeline-item:last-child {
    border-left-color: transparent;
}
.timeline-item-actions {
    margin-top: 8px;
}
.timeline-item-actions .like-buttons {
    margin: 0;
}
.timeline-item-actions .like-btn,
.timeline-item-actions .dislike-btn {
    padding: 3px 10px;
    font-size: 12px;
}
.timeline-date {
    font-size: 0.875rem;
    color: var(--pmlens-text-muted);
    margin-bottom: var(--space-xs);
}
.timeline-type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #FFF;
    padding: 2px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: var(--space-xs) 0;
}
.timeline-excerpt {
    font-size: 0.9375rem;
    color: var(--pmlens-text-muted);
    margin: var(--space-xs) 0;
}

/* ============================================
   BOOK DETAIL — 2-COLUMN LAYOUT
   Design ref: Book-Detail-Desktop.png
   ============================================ */
.book-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    padding: var(--space-lg) 0 60px;
}

/* --- Left Column --- */
.book-detail-left {
    min-width: 0;
}

/* Cover + Info side-by-side row */
.book-detail-header-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
    align-items: start;
}

/* Base cover styles */
.book-detail-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    position: sticky;
    top: 80px;
}
.book-detail-cover:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}
.book-detail-cover img {
    width: 100%;
    height: auto;
    display: block;
}
.book-detail-cover-placeholder {
    aspect-ratio: 2 / 3;
    background: var(--pmlens-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-radius: var(--radius-lg);
}

/* Title */
.book-detail-left .book-detail-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--pmlens-primary);
    margin: 0 0 6px;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

/* Excerpt */
.book-detail-excerpt {
    font-size: 1.0625rem;
    color: var(--pmlens-text-muted);
    margin: 0 0 var(--space-md);
    line-height: 1.5;
    font-style: italic;
}

/* Author */
.book-detail-left .book-detail-author {
    font-size: 1.125rem;
    color: var(--pmlens-text-muted);
    margin: 0 0 var(--space-md);
}

/* CTA Button */
.book-detail-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}
.book-detail-cta .btn {
    padding: 12px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Description */
.book-detail-left .book-detail-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--pmlens-text);
    margin-bottom: var(--space-xl);
}
.book-detail-left .book-detail-description p {
    margin: 0 0 var(--space-md);
}

/* Subheading */
.book-detail-subheading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pmlens-primary);
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--pmlens-border);
}

/* Top Liked Journeys */
.book-detail-top-journeys {
    margin-top: var(--space-xl);
}
.top-journey-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.top-journey-item {
    background: var(--pmlens-surface);
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: box-shadow 0.2s;
}
.top-journey-item:hover {
    box-shadow: var(--shadow-sm);
}
.top-journey-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: 6px;
}
.top-journey-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}
.top-journey-title a {
    color: var(--pmlens-primary);
    text-decoration: none;
}
.top-journey-title a:hover {
    text-decoration: underline;
}
.top-journey-excerpt {
    font-size: 0.875rem;
    color: var(--pmlens-text-muted);
    margin: 0 0 6px;
    line-height: 1.5;
}
.top-journey-likes {
    font-size: 0.8125rem;
    color: var(--pmlens-text-muted);
}

/* --- Right Sidebar --- */
.book-detail-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.book-sidebar-card {
    background: var(--pmlens-surface);
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}
.book-sidebar-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pmlens-primary);
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--pmlens-border);
}

/* Sidebar: Progress */
.book-sidebar-progress {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.book-sidebar-progress .book-status-badge {
    align-self: flex-start;
}

/* Status Badge (used in sidebar and elsewhere) */
.book-status-badge {
    display: inline-block;
    background: var(--pmlens-accent);
    color: #FFF;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar: Info List */
.book-sidebar-info-list {
    display: flex;
    flex-direction: column;
}
.book-sidebar-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pmlens-border);
}
.book-sidebar-info-row:first-child {
    padding-top: 0;
}
.book-sidebar-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.book-sidebar-info-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pmlens-bg);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}
.book-sidebar-info-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pmlens-text-muted);
    margin-bottom: 2px;
}
.book-sidebar-info-value {
    display: block;
    font-size: 0.875rem;
    color: var(--pmlens-text);
    line-height: 1.4;
}

/* Sidebar: Timeline */
.book-sidebar-timeline {
    display: flex;
    flex-direction: column;
}
.book-sidebar-empty {
    font-size: 0.875rem;
    color: var(--pmlens-text-muted);
    margin: 0;
}
.book-sidebar-timeline .timeline-item {
    padding-left: 20px;
    margin-bottom: var(--space-md);
    position: relative;
}
.book-sidebar-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pmlens-accent);
    border: 2px solid var(--pmlens-surface);
}
.book-sidebar-timeline .timeline-item .timeline-date {
    font-size: 0.75rem;
}
.book-sidebar-timeline .timeline-item .timeline-title {
    font-size: 0.9375rem;
}
.book-sidebar-timeline .timeline-item .timeline-excerpt {
    display: none;
}

/* Desktop: larger title */
@media (min-width: 1024px) {
    .book-detail-left .book-detail-title {
        font-size: 2.5rem;
    }
}

/* Mobile: single column */
@media (max-width: 767px) {
    .book-detail-layout {
        grid-template-columns: 1fr;
    }
    .book-detail-header-row {
        grid-template-columns: 1fr 2fr;
        gap: var(--space-lg);
    }
    .book-detail-left .book-detail-title {
        font-size: 1.75rem;
    }
    .book-detail-cover {
        max-width: 200px;
        margin: 0 auto;
        position: static;
    }
    .top-journey-header {
        flex-direction: column;
    }
}

/* ============================================
   BOOK GRID (Homepage)
   ============================================ */

/* ============================================
   JOURNEY CARD (Timeline page)
   ============================================ */
.journey-list {
    display: flex;
    flex-direction: column;
}
.journey-card {
    background: var(--pmlens-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--pmlens-border);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}
.journey-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.journey-card-inner {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}
.journey-card-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--pmlens-bg);
}
.journey-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.journey-card-body {
    flex: 1;
    min-width: 0;
}
.journey-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}
.journey-card-header .timeline-title {
    margin: 0;
    font-size: 1.0625rem;
}
.journey-card-book {
    font-size: 0.8125rem;
    color: var(--pmlens-text-muted);
    margin-bottom: 4px;
}
@media (max-width: 480px) {
    .journey-card-thumb {
        width: 44px;
        height: 66px;
    }
}
.journey-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.journey-card-actions .like-buttons {
    margin: 0;
}

/* ============================================
   LIKE / DISLIKE BUTTONS
   ============================================ */
.like-buttons {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-md) 0;
}
.like-btn, .dislike-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pmlens-bg);
    border: 1px solid var(--pmlens-border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--pmlens-text-muted);
    line-height: 1;
}
.like-btn svg, .dislike-btn svg {
    flex-shrink: 0;
}
.like-btn:hover { border-color: var(--pmlens-like); color: var(--pmlens-like); background: rgba(59,130,246,0.06); }
.like-btn.active { background: var(--pmlens-like); color: #FFF; border-color: var(--pmlens-like); }
.like-btn.active svg { stroke: #FFF; }
.dislike-btn:hover { border-color: var(--pmlens-danger); color: var(--pmlens-danger); background: rgba(239,68,68,0.06); }
.dislike-btn.active { background: var(--pmlens-danger); color: #FFF; border-color: var(--pmlens-danger); }
.dislike-btn.active svg { stroke: #FFF; }

.book-journey-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.book-journey-header .section-title {
    margin-bottom: 0;
}

.timeline-book-filter-label {
    font-size: 0.9375rem;
    color: var(--pmlens-text-muted);
    margin: -8px 0 var(--space-lg);
    padding: 8px 14px;
    background: var(--pmlens-primary-light);
    border-radius: 6px;
    display: inline-block;
}

/* ============================================
   SOCIAL SHARE
   ============================================ */
.social-share {
    position: relative;
    display: inline-block;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pmlens-bg);
    color: var(--pmlens-text-muted);
    border: 1px solid var(--pmlens-border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}
.share-btn:hover {
    background: var(--pmlens-primary-light);
    color: var(--pmlens-primary);
    border-color: var(--pmlens-primary-light);
    color: #FFF;
}
.share-fallback {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--pmlens-surface);
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 150px;
}
.share-fallback.hidden { display: none; }
.share-fallback a,
.share-copy-link {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--pmlens-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}
.share-fallback a:hover,
.share-copy-link:hover {
    background: var(--pmlens-bg);
}

/* ============================================
   ABOUT ME — MAIN GRID
   ============================================ */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--pmlens-primary);
    color: #FFF;
    padding: var(--space-2xl) 0 var(--space-xl);
    margin-top: var(--space-3xl);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
}
.footer-brand h3 {
    color: #FFF;
    margin: 0 0 4px;
    font-size: 1.375rem;
}
.footer-brand p {
    color: #94A3B8;
    font-size: 0.875rem;
    margin: 0;
    max-width: 300px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-lg);
}
.footer-links a {
    color: #CBD5E1;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}
.footer-links a:hover {
    color: var(--pmlens-accent);
}
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--pmlens-accent);
    transition: width 0.2s;
}
.footer-links a:hover::after {
    width: 100%;
}
.footer-copyright {
    font-size: 0.8125rem;
    opacity: 0.5;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ============================================
   TIMELINE PAGE
   ============================================ */
.timeline-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding-top: var(--space-md);
}
.timeline-page-title {
    margin: 48px 0 8px;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--pmlens-primary);
}
.timeline-page-subtitle {
    color: var(--pmlens-text-muted);
    margin-bottom: 36px;
    font-size: 1.0625rem;
}
.timeline-content {
    min-width: 0;
}
.timeline-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--pmlens-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--pmlens-border);
}
.timeline-empty p {
    font-size: 1.125rem;
    color: var(--pmlens-text-muted);
    margin: 0;
}
.timeline-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.timeline-sidebar .section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pmlens-primary);
    margin: 0 0 var(--space-md);
}
.timeline-sidebar .search-form {
    margin-bottom: 0;
    display: flex;
    gap: 8px;
}
.timeline-sidebar .search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    background: var(--pmlens-bg);
}
.timeline-sidebar .search-form button {
    padding: 10px 18px;
    background: var(--pmlens-primary);
    color: #FFF;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.timeline-sidebar .search-form button:hover {
    background: var(--pmlens-primary-dark, #1a3a6b);
}
.timeline-sidebar .filter-bar select {
    padding: 10px 14px;
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    background: var(--pmlens-bg);
    color: var(--pmlens-text);
    cursor: pointer;
}
.timeline-sidebar .btn-ghost {
    background: transparent;
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.875rem;
    color: var(--pmlens-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.timeline-no-hashtags {
    font-size: 0.875rem;
    color: var(--pmlens-text-muted);
    margin: 0;
}
.timeline-sidebar .btn-ghost:hover {
    border-color: var(--pmlens-primary);
    color: var(--pmlens-primary);
}

/* Timeline sidebar cards */
.timeline-sidebar .card {
    background: var(--pmlens-surface);
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 1023px) {
    .timeline-sidebar {
        margin-top: var(--space-xl);
    }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: var(--space-xl) 0 var(--space-3xl);
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination a {
    background: var(--pmlens-surface);
    border: 1px solid var(--pmlens-border);
    color: var(--pmlens-text);
}
.pagination a:hover {
    border-color: var(--pmlens-primary);
    color: var(--pmlens-primary);
    background: var(--pmlens-bg);
}
.pagination span.current {
    background: var(--pmlens-primary);
    border: 1px solid var(--pmlens-primary);
    color: #FFF;
}
/* ============================================
   ARCHIVE / LISTING PAGES
   ============================================ */
.archive-page {
    padding-top: 48px;
    padding-bottom: 60px;
}
.archive-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--pmlens-primary);
    margin: 0 0 8px;
    line-height: 1.2;
}
.archive-subtitle {
    color: var(--pmlens-text-muted);
    margin-bottom: 36px;
    font-size: 1.0625rem;
}
.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}
.archive-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--pmlens-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--pmlens-border);
}
.archive-empty p {
    font-size: 1.125rem;
    color: var(--pmlens-text-muted);
    margin: 0;
}

/* Archive post cards (non-book post types) */
.archive-post-card {
    background: var(--pmlens-surface);
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: box-shadow 0.2s, transform 0.2s;
}
.archive-post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.archive-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.archive-post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pmlens-primary);
    margin: 0 0 var(--space-xs);
    line-height: 1.3;
}
.archive-post-link:hover .archive-post-title {
    color: var(--pmlens-accent);
}
.archive-post-excerpt {
    font-size: 0.9375rem;
    color: var(--pmlens-text-muted);
    margin: 0 0 var(--space-sm);
    line-height: 1.6;
}
.archive-post-date {
    font-size: 0.8125rem;
    color: var(--pmlens-text-muted);
    opacity: 0.8;
}

/* ============================================
   BLOG DETAIL / SINGLE CONTENT
   Design ref: Blog-Detail.png
   ============================================ */
.single-post-content {
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
/* Back link */
.single-post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
    color: var(--pmlens-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.single-post-back:hover {
    color: var(--pmlens-primary);
}
/* Category badge */
.single-post-category {
    display: inline-block;
    background: var(--pmlens-primary-light);
    color: var(--pmlens-primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
/* Title */
.single-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pmlens-primary);
    margin: 0 0 16px;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
/* Author row */
.single-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.single-post-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--pmlens-border);
    flex-shrink: 0;
}
.single-post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.single-post-author-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pmlens-text);
}
.single-post-author-date {
    font-size: 0.875rem;
    color: var(--pmlens-text-muted);
}
.single-post-author-sep {
    color: var(--pmlens-border);
    font-size: 0.75rem;
}
/* Featured image */
.single-post-featured {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.single-post-featured img {
    width: 100%;
    height: auto;
    display: block;
}
/* Tags after content */
.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: 32px 0;
    padding-top: 24px;
    border-top: 1px solid var(--pmlens-border);
}
/* Bottom actions (share) */
.single-post-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--pmlens-border);
    margin-top: 8px;
}
/* Post navigation */
.single-post-nav {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    gap: var(--space-md);
}
.single-post-nav a {
    font-size: 0.9375rem;
    color: var(--pmlens-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}
.single-post-nav a:hover {
    opacity: 0.8;
}

/* ============================================
   JOURNEY DETAIL — 2-COLUMN LAYOUT
   ============================================ */
.journey-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding-bottom: 60px;
}
.journey-detail-main {
    min-width: 0;
}
.journey-detail-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--pmlens-primary);
    margin: 0 0 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
/* Reference blockquote */
.journey-detail-ref {
    border-left: 3px solid var(--pmlens-accent);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--pmlens-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.journey-detail-ref p {
    font-size: 0.9375rem;
    color: var(--pmlens-text-muted);
    margin: 0;
}

/* Sidebar cards */
.journey-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.journey-sidebar-card {
    background: var(--pmlens-surface);
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}
.journey-sidebar-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: calc(-1 * var(--space-lg));
    margin-bottom: 0;
}
.journey-sidebar-image img {
    width: 100%;
    height: auto;
    display: block;
}
.journey-sidebar-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pmlens-primary);
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--pmlens-border);
}
.journey-sidebar-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pmlens-border);
}
.journey-sidebar-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.journey-sidebar-row:first-of-type {
    padding-top: 0;
}
.journey-sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--pmlens-border);
}
.journey-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.journey-sidebar-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pmlens-bg);
    border-radius: var(--radius-sm);
    font-size: 1.125rem;
}
.journey-sidebar-label {
    flex: 1;
    min-width: 0;
}
.journey-sidebar-label-text {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pmlens-text-muted);
    margin-bottom: 2px;
}
.journey-sidebar-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--pmlens-text);
    flex-wrap: wrap;
}
.journey-sidebar-value a {
    color: var(--pmlens-primary);
    font-weight: 500;
    text-decoration: none;
}
.journey-sidebar-value a:hover {
    text-decoration: underline;
}
.journey-sidebar-book-thumb {
    width: 32px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Desktop: larger title */
@media (min-width: 1024px) {
    .journey-detail-title {
        font-size: 2.5rem;
    }
}

/* Mobile: sidebar cards stack below */
@media (max-width: 767px) {
    .journey-detail-title {
        font-size: 1.625rem;
    }
}

/* ============================================
   COMMON PAGE / ENTRY CONTENT STYLES
   ============================================ */
.entry-content h1, .entry-content h2, .entry-content h3 { color: var(--pmlens-primary); margin-top: 1.5em; margin-bottom: 0.5em; }
.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.625rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content p { margin-bottom: 1em; line-height: 1.8; }
.entry-content ul, .entry-content ol { margin-bottom: 1em; padding-left: 24px; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content a { color: var(--pmlens-primary); text-decoration: underline; }
.entry-content a:hover { opacity: 0.8; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 1em 0; }
.entry-content blockquote { border-left: 3px solid var(--pmlens-accent); padding: 12px 20px; margin: 1.5em 0; background: var(--pmlens-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--pmlens-text-muted); }
.entry-content .wp-block-image { margin: 1.5em 0; }
.entry-content .wp-block-image img { border-radius: var(--radius-md); }
.entry-content .wp-block-button__link { display: inline-block; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; text-decoration: none !important; background: var(--pmlens-primary); color: #FFF; }
.entry-content .wp-block-button__link:hover { opacity: 0.9; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin-right: 1em; }
.entry-content .alignright { float: right; margin-left: 1em; }
@media (max-width: 767px) {
    .entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em 0; }
}

/* ============================================
   FEATURED CARD (About Me)
   ============================================ */
.featured-card {
    background: var(--pmlens-primary);
    color: #FFF;
}
.featured-card h3 {
    color: #FFF;
}
.featured-card .featured-role {
    color: var(--pmlens-accent);
    font-weight: 600;
    margin-bottom: 12px;
}
.featured-card p {
    color: #CBD5E1;
}

/* ============================================
   ABOUT ME V2 — Template About Me 2
   Design ref: AboutMe-Desktop.png
   ============================================ */
/* Hero Banner */
.about2-hero {
    background: linear-gradient(135deg, var(--pmlens-primary) 0%, color-mix(in srgb, var(--pmlens-primary) 80%, #000) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: #FFF;
}
.about2-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}
.about2-hero-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    border: 4px solid rgba(255,255,255,0.3);
    background: var(--pmlens-bg);
}
.about2-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about2-hero-name {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.03em;
    color: #FFF;
}
.about2-hero-tagline {
    font-size: 1.25rem;
    opacity: 0.85;
    margin: 0 0 20px;
    color: #FFF;
}
.about2-hero-bio {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.75;
    max-width: 560px;
    margin: 0 auto 28px;
    color: #FFF;
}
.about2-hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.about2-hero-actions .btn {
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.about2-hero-actions .btn-primary {
    background: #FFF;
    color: var(--pmlens-primary);
    border: 2px solid #FFF;
}
.about2-hero-actions .btn-primary:hover {
    background: transparent;
    color: #FFF;
}
.about2-hero-actions .btn-ghost {
    background: transparent;
    color: #FFF;
    border: 2px solid rgba(255,255,255,0.5);
}
.about2-hero-actions .btn-ghost:hover {
    border-color: #FFF;
    background: rgba(255,255,255,0.1);
}

/* 2-Column Layout */
.about2-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    padding: 48px 0 60px;
}

/* Cards */
.about2-card {
    background: var(--pmlens-surface);
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}
.about2-card:last-child {
    margin-bottom: 0;
}
.about2-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pmlens-primary);
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--pmlens-border);
}

/* Profile Top */
.about2-profile-top {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.about2-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--pmlens-primary-light);
    background: var(--pmlens-bg);
}
.about2-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about2-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pmlens-primary);
    margin: 0 0 4px;
}
.about2-profile-role {
    font-size: 0.9375rem;
    color: var(--pmlens-text-muted);
    margin: 0;
}

/* Profile Stats Row */
.about2-profile-stats {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-md);
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.about2-stat-item {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    border-right: 1px solid var(--pmlens-border);
}
.about2-stat-item:last-child {
    border-right: none;
}
.about2-stat-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pmlens-text-muted);
    margin-bottom: 4px;
}
.about2-stat-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pmlens-primary);
}
.about2-profile-bio {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--pmlens-text);
    margin: 0;
}

/* Stats Grid (right column) */
.about2-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.about2-stat-block {
    text-align: center;
    padding: var(--space-lg);
    background: var(--pmlens-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--pmlens-border);
}
.about2-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--pmlens-primary);
    line-height: 1;
    margin-bottom: 6px;
}
.about2-stat-desc {
    display: block;
    font-size: 0.8125rem;
    color: var(--pmlens-text-muted);
    font-weight: 500;
}

/* Philosophy items */
.about2-philosophy-item {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--pmlens-border);
}
.about2-philosophy-item:first-child {
    padding-top: 0;
}
.about2-philosophy-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.about2-philosophy-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pmlens-primary);
    margin: 0 0 4px;
}
.about2-philosophy-item p {
    font-size: 0.875rem;
    color: var(--pmlens-text-muted);
    margin: 0;
    line-height: 1.6;
}
.about2-writing-context {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--pmlens-text);
    margin: 0;
}

/* Tablet */
@media (min-width: 768px) {
    .about2-hero-name {
        font-size: 3.5rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .about2-hero {
        padding: 100px 0 70px;
    }
    .about2-hero-avatar {
        width: 160px;
        height: 160px;
    }
    .about2-hero-name {
        font-size: 4rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .about2-layout {
        grid-template-columns: 1fr;
    }
    .about2-hero {
        padding: 60px 0 40px;
    }
    .about2-hero-avatar {
        width: 100px;
        height: 100px;
    }
    .about2-hero-name {
        font-size: 2.25rem;
    }
    .about2-hero-bio {
        font-size: 0.9375rem;
    }
    .about2-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .about2-hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    .about2-profile-top {
        flex-direction: column;
        text-align: center;
    }
    .about2-profile-stats {
        flex-direction: column;
    }
    .about2-stat-item {
        border-right: none;
        border-bottom: 1px solid var(--pmlens-border);
    }
    .about2-stat-item:last-child {
        border-bottom: none;
    }
    .about2-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Timeline Role & Company (About Me) --- */
.timeline-role {
    font-weight: 700;
    font-size: 18px;
    color: var(--pmlens-primary);
}
.timeline-company {
    color: var(--pmlens-accent);
    font-weight: 500;
    margin-bottom: 8px;
}

/* ============================================
   SEARCH
   ============================================ */
.search-form {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}
.search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-md);
    font-size: 15px;
}
.search-form button {
    padding: 10px 20px;
    background: var(--pmlens-primary);
    color: #FFF;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}
.filter-bar select {
    padding: 8px 16px;
    border: 1px solid var(--pmlens-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--pmlens-surface);
}
