/*
Theme Name: Huyblog
Theme URI: https://huyblog.com
Author: Huy
Author URI: https://huyblog.com
Description: A clean and modern WordPress theme for blogging with social media layout
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: huyblog
Tags: blog, simple, clean, responsive, social
*/

/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #1a1a1a;
    --color-primary-hover: #2d2d2d;
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #fafafa;
    --color-bg-tertiary: #f5f5f5;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #666666;
    --color-text-tertiary: #999999;
    --color-border: #e0e0e0;
    --color-border-light: #f0f0f0;
    --color-accent-red: #EF4444;
    --color-accent-red-hover: #DC2626;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    
    /* Effects */
    --radius-sm: 0.375rem;
    --radius-base: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition-base: 200ms ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-secondary);
}

a {
    text-decoration: none;
}

/* Header */
/* Header */
.header-wrapper {
    background-color: var(--color-bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.site-header {
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
    color: var(--color-text-primary);
    transition: all var(--transition-base);
}

.mobile-menu-toggle:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-base);
}

.mobile-menu-toggle .icon {
    width: 24px;
    height: 24px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1a1a1a, #404040);
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
}

.site-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin: 0;
}

.site-title a {
    color: var(--color-primary);
    text-decoration: none;
}

/* Search Bar */
.search-bar {
    width: 400px;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    padding-right: 45px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    outline: none;
    transition: all var(--transition-base);
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Empty state */
.no-results.not-found {
    margin: var(--space-5) 0 var(--space-6);
}

.empty-state-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.empty-state-header {
    margin-bottom: var(--space-4);
}

.empty-state-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    margin-bottom: var(--space-3);
}

.empty-state-title {
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.25;
}

.empty-state-content {
    color: var(--color-text-secondary);
}

.empty-state-description {
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
}

.empty-state-content .search-form {
    max-width: 680px;
}

.empty-state-actions {
    margin-top: var(--space-4);
}

.empty-state-link {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-base);
}

.empty-state-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Search results */
.search-results-header {
    margin-bottom: var(--space-6);
    padding: var(--space-6);
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.search-results-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    margin-bottom: var(--space-3);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-full);
    background-color: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
}

.search-results-title {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    line-height: 1.25;
    margin-bottom: var(--space-3);
}

.search-results-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.search-results-form-wrap {
    max-width: 720px;
}

.search-results-grid {
    margin-bottom: var(--space-6);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.btn-creator {
    background-color: var(--color-accent-red);
    color: white;
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-creator:hover {
    background-color: var(--color-accent-red-hover);
    transform: translateY(-1px);
}

.notification-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.notification-icon:hover,
.notification-icon[aria-expanded="true"] {
    background-color: #fff4f4;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.16);
}

.notification-wrap {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(320px, calc(100vw - 32px));
    padding: var(--space-5);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
    border: 1px solid rgba(239, 68, 68, 0.12);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
    z-index: 120;
}

.notification-dropdown__header {
    margin-bottom: var(--space-4);
}

.notification-dropdown__eyebrow {
    display: inline-flex;
    margin-bottom: var(--space-2);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-accent-red-hover);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.notification-dropdown__title {
    font-size: var(--text-lg);
    line-height: 1.2;
}

.notification-dropdown__body {
    display: grid;
    gap: var(--space-3);
}

.notification-info-card {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border-light);
}

.notification-info-card__label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
}

.notification-info-card__value {
    display: block;
    font-size: var(--text-lg);
    line-height: 1.35;
}

.notification-note {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background-color: #1f2937;
    color: #ffffff;
    font-size: var(--text-sm);
    line-height: 1.6;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background-color: var(--color-accent-red);
    border-radius: 50%;
    font-size: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-semibold);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
}

.user-profile-link {
    text-decoration: none;
    color: inherit;
    border-radius: 999px;
    padding: 2px 6px;
    transition: background-color var(--transition-base);
}

.user-profile-link:hover {
    background-color: var(--color-bg-secondary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
}

.user-handle {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
}

/* Main Layout */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-6);
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    gap: var(--space-6);
}

/* Sidebar Left */
.sidebar-left {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.main-navigation {
    background-color: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
}

.main-navigation ul {
    list-style: none;
}

.main-navigation li {
    margin-bottom: var(--space-2);
}

.main-navigation a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-base);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-base);
    position: relative;
}

.main-navigation a:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-primary);
}

.main-navigation .current-menu-item a {
    background-color: var(--color-primary);
    color: white;
}

.nav-badge {
    position: absolute;
    right: var(--space-3);
    min-width: 24px;
    height: 24px;
    background-color: var(--color-accent-red);
    border-radius: 50%;
    color: white;
    font-size: var(--text-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-semibold);
    padding: 0 var(--space-2);
}

/* Following Section */
.following-section {
    background-color: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
}

.section-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.following-list {
    list-style: none;
}

.following-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.following-list li {
    margin-bottom: var(--space-2);
}

.following-list a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-base);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-base);
}

.following-list a:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-primary);
}

/* Profile page */
.profile-content {
    display: grid;
    gap: var(--space-6);
}

.profile-hero-card,
.profile-section-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcf7f3 100%);
    border: 1px solid var(--color-border-light);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.profile-hero-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-6);
    align-items: center;
    padding: clamp(1.25rem, 2vw, 2rem);
}

.profile-hero-avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-hero-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.15);
}

.profile-hero-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    background-color: #f8f1eb;
}

.profile-eyebrow {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background-color: #fff1ef;
    color: #d94841;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
}

.profile-title,
.profile-section-title {
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.25;
}

.profile-summary {
    margin-top: var(--space-3);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.profile-meta-list {
    margin-top: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-meta-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background-color: #fff;
    border: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.profile-meta-item a {
    margin-left: 6px;
    color: var(--color-primary);
    text-decoration: none;
}

.profile-section-card {
    padding: clamp(1.25rem, 1.8vw, 1.75rem);
}

.profile-section-heading {
    margin-bottom: var(--space-4);
}

.profile-rich-text {
    color: var(--color-text-secondary);
    line-height: 1.75;
}

.profile-rich-text p + p {
    margin-top: var(--space-3);
}

.profile-activity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
}

.profile-activity-item {
    border-radius: 16px;
    overflow: hidden;
    min-height: 170px;
    border: 1px solid var(--color-border-light);
    background-color: #ffffff;
}

.profile-activity-zoom {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.profile-activity-item img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    display: block;
}

.profile-activity-item--placeholder {
    padding: var(--space-4);
    background: linear-gradient(180deg, #fff8f3 0%, #ffffff 100%);
}

.profile-activity-placeholder-title {
    font-weight: var(--font-semibold);
    margin-bottom: 8px;
}

.profile-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.profile-lightbox[hidden] {
    display: none;
}

.profile-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.75);
}

.profile-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
}

.profile-lightbox__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 48px);
    object-fit: contain;
    background: #0f172a;
}

.profile-lightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Solar calendar page */
.solar-calendar-content {
    display: grid;
    gap: var(--space-6);
}

.solar-hero-card,
.solar-calendar-card,
.solar-info-panel,
.solar-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcf7f3 100%);
    border: 1px solid var(--color-border-light);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.solar-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-6);
    padding: clamp(1.25rem, 2vw, 2rem);
}

.solar-hero-card__eyebrow,
.solar-section-heading__eyebrow {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background-color: #fff1ef;
    color: #d94841;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
}

.solar-hero-card__title,
.solar-section-heading__title {
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.25;
}

.solar-hero-card__description {
    margin-top: var(--space-3);
    color: var(--color-text-secondary);
    max-width: 720px;
}

.solar-hero-card__now {
    min-width: 230px;
    padding: var(--space-5);
    border-radius: 20px;
    background: radial-gradient(circle at top left, #ffede8, #fffaf7 70%);
    border: 1px solid #ffd7cf;
}

.solar-hero-card__time {
    display: block;
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    font-weight: var(--font-bold);
    line-height: 1.1;
}

.solar-hero-card__date {
    display: block;
    margin-top: var(--space-2);
    color: var(--color-text-secondary);
}

.solar-picker-card {
    padding: var(--space-5);
    border-radius: 24px;
    background: linear-gradient(180deg, #fff7f1 0%, #ffffff 100%);
    border: 1px solid #f4ddd2;
}

.solar-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.solar-picker-form {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.solar-picker-form__field {
    display: grid;
    gap: 8px;
}

.solar-picker-form__label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.solar-picker-form__input {
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    font-size: var(--text-sm);
    background-color: #ffffff;
}

.solar-picker-form__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.solar-picker-form__button,
.solar-picker-form__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-decoration: none;
}

.solar-picker-form__button {
    border: none;
    background-color: var(--color-primary);
    color: #ffffff;
    cursor: pointer;
}

.solar-picker-form__link {
    background-color: #ffffff;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.solar-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
}

.solar-stat-card {
    padding: var(--space-5);
}

.solar-stat-card__label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
}

.solar-stat-card__value {
    font-size: var(--text-xl);
}

.solar-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
    gap: var(--space-6);
    align-items: start;
}

.solar-calendar-card,
.solar-info-panel {
    padding: var(--space-6);
}

.solar-section-heading {
    margin-bottom: var(--space-4);
}

.solar-month-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.solar-month-nav {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.solar-month-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.solar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--space-3);
}

.solar-month-grid--header {
    margin-bottom: var(--space-3);
}

.solar-weekday {
    text-align: center;
    color: var(--color-text-tertiary);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.solar-day {
    min-height: 72px;
    padding: var(--space-3);
    border-radius: 18px;
    background-color: #fff;
    border: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.solar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.solar-day--empty {
    background: transparent;
    border-style: dashed;
}

.solar-day--today {
    background: linear-gradient(180deg, #ffebe7 0%, #fff7f5 100%);
    border-color: #ffb8aa;
}

.solar-day--marked .solar-day__number {
    color: #d94841;
}

.solar-day__number {
    font-weight: var(--font-semibold);
}

.solar-day__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
}

.solar-side-stack {
    display: grid;
    gap: var(--space-5);
}

.solar-note-text,
.solar-upcoming-item__note {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.solar-upcoming-list {
    display: grid;
    gap: var(--space-4);
}

.solar-upcoming-item {
    padding: var(--space-4);
    border-radius: 18px;
    background-color: #ffffff;
    border: 1px solid var(--color-border-light);
}

.solar-upcoming-item__date {
    display: block;
    margin-bottom: var(--space-2);
}

/* Lunar calendar page */
.lunar-calendar-content {
    display: grid;
    gap: var(--space-6);
}

.lunar-hero-card,
.lunar-picker-card,
.lunar-stat-card,
.lunar-calendar-card,
.lunar-info-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f5fbf6 100%);
    border: 1px solid var(--color-border-light);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.lunar-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-6);
    padding: clamp(1.25rem, 2vw, 2rem);
}

.lunar-hero-card__eyebrow,
.lunar-section-heading__eyebrow {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background-color: #edf8ef;
    color: #2f855a;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
}

.lunar-hero-card__title,
.lunar-section-heading__title {
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.25;
}

.lunar-hero-card__description,
.lunar-note-text,
.lunar-upcoming-item__note {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.lunar-hero-card__description {
    margin-top: var(--space-3);
    max-width: 720px;
}

.lunar-hero-card__now {
    min-width: 240px;
    padding: var(--space-5);
    border-radius: 20px;
    background: radial-gradient(circle at top left, #ecfff0, #ffffff 70%);
    border: 1px solid #cce9d4;
}

.lunar-hero-card__time {
    display: block;
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

.lunar-hero-card__date {
    display: block;
    margin-top: var(--space-2);
    color: var(--color-text-secondary);
}

.lunar-picker-card,
.lunar-calendar-card,
.lunar-info-panel,
.lunar-stat-card {
    padding: var(--space-5);
}

.lunar-picker-grid,
.lunar-stats-grid,
.lunar-layout-grid {
    display: grid;
    gap: var(--space-4);
}

.lunar-picker-grid,
.lunar-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lunar-layout-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
    gap: var(--space-6);
    align-items: start;
}

.lunar-picker-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-4);
}

.lunar-picker-form__field {
    display: grid;
    gap: 8px;
}

.lunar-picker-form__label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.lunar-picker-form__input {
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    font-size: var(--text-sm);
    background-color: #ffffff;
}

.lunar-picker-form__actions,
.lunar-month-nav {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.lunar-picker-form__button,
.lunar-picker-form__link,
.lunar-month-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.lunar-picker-form__button {
    border: none;
    background-color: #1f7a4d;
    color: #ffffff;
    cursor: pointer;
}

.lunar-picker-form__link,
.lunar-month-nav__link {
    background-color: #ffffff;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.lunar-stat-card__label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
}

.lunar-stat-card__value {
    font-size: var(--text-xl);
}

.lunar-section-heading {
    margin-bottom: var(--space-4);
}

.lunar-month-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.lunar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--space-3);
}

.lunar-month-grid--header {
    margin-bottom: var(--space-3);
}

.lunar-weekday {
    text-align: center;
    color: var(--color-text-tertiary);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.lunar-day {
    min-height: 82px;
    padding: var(--space-3);
    border-radius: 18px;
    background-color: #ffffff;
    border: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.lunar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.lunar-day--empty {
    background: transparent;
    border-style: dashed;
}

.lunar-day--selected {
    background: linear-gradient(180deg, #e9f9ee 0%, #f8fffa 100%);
    border-color: #87cf9d;
}

.lunar-day--marked .lunar-day__lunar {
    color: #1f7a4d;
}

.lunar-day__solar {
    font-weight: var(--font-semibold);
}

.lunar-day__lunar {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}

.lunar-day__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1f7a4d;
}

.lunar-side-stack,
.lunar-upcoming-list {
    display: grid;
    gap: var(--space-4);
}

.lunar-detail-list {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.lunar-detail-item {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: 14px;
    background-color: #ffffff;
    border: 1px solid var(--color-border-light);
}

.lunar-upcoming-item {
    padding: var(--space-4);
    border-radius: 18px;
    background-color: #ffffff;
    border: 1px solid var(--color-border-light);
}

.lunar-upcoming-item__date {
    display: block;
    margin-bottom: var(--space-2);
}

/* Weather page */
.weather-content {
    display: grid;
    gap: var(--space-6);
}

.weather-hero-card,
.weather-status-card,
.weather-now-card,
.weather-forecast-card {
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    border: 1px solid var(--color-border-light);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.weather-hero-card {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-6);
    padding: clamp(1.25rem, 2vw, 2rem);
}

.weather-hero-card__eyebrow,
.weather-section-heading__eyebrow,
.weather-status-card__label {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background-color: #edf4ff;
    color: #2563eb;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.weather-hero-card__title,
.weather-section-heading__title {
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.25;
}

.weather-section-heading__title {
    margin-top: var(--space-3);
    margin-bottom: var(--space-5);
    letter-spacing: 0.01em;
}

.weather-hero-card__description,
.weather-status-card__message,
.weather-forecast-item__summary,
.weather-forecast-item__meta {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.weather-hero-card__description {
    margin-top: var(--space-3);
    max-width: 720px;
}

.weather-hero-card__date {
    min-width: 220px;
    padding: var(--space-5);
    border-radius: 18px;
    background: radial-gradient(circle at top left, #eff6ff, #ffffff 70%);
    border: 1px solid #c9ddff;
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

.weather-status-card,
.weather-forecast-card {
    padding: var(--space-5);
}

.weather-status-card__header {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    align-items: start;
    margin-bottom: var(--space-3);
}

.weather-status-card__location {
    margin-top: var(--space-2);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.weather-refresh-button {
    border: none;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: var(--font-semibold);
    cursor: pointer;
}

.weather-refresh-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.weather-now-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.weather-hidden {
    display: none !important;
}

.weather-now-card,
.weather-forecast-item {
    padding: var(--space-5);
}

.weather-now-card__label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
}

.weather-now-card__temp {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-bold);
    line-height: 1;
}

.weather-now-card__temp small {
    font-size: 0.45em;
}

.weather-now-card__summary {
    margin-top: var(--space-3);
    font-size: var(--text-base);
}

.weather-now-card__value {
    font-size: var(--text-xl);
}

.weather-forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-4);
}

.weather-forecast-grid--cities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.weather-forecast-item,
.weather-forecast-placeholder {
    border-radius: 18px;
    background-color: #ffffff;
    border: 1px solid var(--color-border-light);
}

.weather-forecast-placeholder {
    grid-column: 1 / -1;
    padding: var(--space-5);
    color: var(--color-text-secondary);
}

.weather-forecast-item__day {
    display: block;
    margin-bottom: 6px;
    text-transform: capitalize;
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
}

.weather-forecast-item__date,
.weather-forecast-item__temp {
    display: block;
    margin-bottom: var(--space-2);
}

.weather-forecast-item--city .weather-forecast-item__day {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.weather-forecast-item--featured {
    position: relative;
    border-color: #7aa7ff;
    background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.16);
}

.weather-forecast-item__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-3);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    background-color: #2563eb;
    color: #ffffff;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.following-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.logout-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: none;
    border: none;
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.logout-button:hover {
    background-color: var(--color-bg-primary);
    color: var(--color-accent-red);
}

/* Main Content Area */
.content-area {
    background-color: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    cursor: grab;
    user-select: none;
}

.tabs:active {
    cursor: grabbing;
}

.tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg-secondary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.tab:hover {
    color: var(--color-primary);
    background-color: var(--color-border-light);
    transform: translateY(-1px);
}

.tab.active {
    color: white;
    background-color: var(--color-primary);
}

.tab-badge {
    display: inline-block;
    margin-left: var(--space-2);
    padding: 2px 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.tab.active .tab-badge {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Featured Slider */
.featured-slider {
    margin-bottom: var(--space-6);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-bg-primary);
    box-shadow: var(--shadow-md);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-link {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: var(--space-8);
    max-width: 600px;
    color: white;
}

.slide-category {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background-color: var(--color-accent-red);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

.slide-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-3);
    line-height: 1.2;
    color: white;
}

.slide-excerpt {
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    opacity: 0.95;
}

.slide-meta {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-sm);
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all var(--transition-base);
    color: var(--color-primary);
    opacity: 0;
}

.slider-container:hover .slider-nav {
    opacity: 1;
}

.slider-nav:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.slider-prev {
    left: var(--space-4);
}

.slider-next {
    right: var(--space-4);
}

.slider-dots {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.dot.active {
    background-color: white;
    width: 30px;
    border-radius: var(--radius-full);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.post {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.post-thumbnail {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background-color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    box-shadow: var(--shadow-sm);
}

.post-badge-download {
    background-color: rgba(26, 26, 26, 0.92);
    color: white;
}

.unlock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    z-index: 10;
}

.post-content-wrapper {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.entry-header {
    margin-bottom: var(--space-3);
}

.entry-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin: 0;
    line-height: 1.35;
}

.entry-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-base);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entry-title a:hover {
    color: var(--color-primary);
}

.entry-summary {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: auto;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: none;
    border: none;
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-base);
    white-space: nowrap;
}

.post-action-btn:hover {
    color: var(--color-primary);
}

.post-action-btn.is-active {
    color: var(--color-accent-red);
}

.post-action-btn.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.post-action-btn .icon {
    width: 18px;
    height: 18px;
}

/* Hide "saved" action UI without removing underlying feature/code. */
.post-action-btn[data-action="save"],
.post-action-btn[aria-label="Đã lưu"] {
    display: none;
}

.single-post-actions {
    margin-top: var(--space-2);
}

/* Single Post */
.single-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 920px;
}

.single .content-area {
    padding: var(--space-7);
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    display: flow-root;
    overflow: visible;
}

.single-post-card {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: var(--space-5);
}

.single-post-card:hover {
    transform: none;
    box-shadow: none;
}

.single-entry-header {
    margin-bottom: var(--space-5);
}

.single-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.single-category-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.single-category-chip:hover {
    color: var(--color-primary);
    border-color: var(--color-border);
}

.single-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.2;
    margin: 0;
}

.single-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    color: var(--color-text-tertiary);
    font-size: var(--text-sm);
}

.single-meta-item,
.single-meta-item a {
    font-size: inherit;
}

.single-meta-item a {
    color: inherit;
    text-decoration: none;
}

.single-meta-item a:hover {
    color: var(--color-primary);
}

.single-meta-separator {
    color: var(--color-border);
}

.single-featured-media {
    margin-bottom: var(--space-6);
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
}

.single-entry-content {
    color: var(--color-text-primary);
    font-size: 1.05rem;
    line-height: 1.9;
}

.single-entry-content p,
.single-entry-content ul,
.single-entry-content ol,
.single-entry-content dl,
.single-entry-content table,
.single-entry-content pre {
    margin-bottom: var(--space-5);
}

.single-entry-content h2,
.single-entry-content h3,
.single-entry-content h4,
.single-entry-content h5,
.single-entry-content h6 {
    margin: var(--space-8) 0 var(--space-3);
    line-height: 1.3;
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
}

.single-entry-content h2 { font-size: 1.55rem; }
.single-entry-content h3 { font-size: 1.3rem; }
.single-entry-content h4 { font-size: 1.15rem; }
.single-entry-content h5 { font-size: 1.05rem; }
.single-entry-content h6 { font-size: 0.95rem; color: var(--color-text-secondary); }

/* Blockquote */
.single-entry-content blockquote {
    margin: var(--space-6) 0;
    padding: var(--space-4) var(--space-5);
    border-left: 4px solid var(--color-accent-red);
    background: var(--color-bg-tertiary);
    border-radius: 0 var(--radius-base) var(--radius-base) 0;
    color: var(--color-text-secondary);
    font-style: italic;
    font-size: 1rem;
}

.single-entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Inline code */
.single-entry-content code {
    background: #f0f0f0;
    color: #c7254e;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.875em;
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
}

/* Code block */
.single-entry-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: var(--space-5);
    border-radius: var(--radius-base);
    overflow-x: auto;
    white-space: pre;
}

.single-entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
    border-radius: 0;
}

/* Lists */
.single-entry-content ul,
.single-entry-content ol {
    padding-left: var(--space-6);
}

.single-entry-content ul { list-style: disc; }
.single-entry-content ol { list-style: decimal; }

.single-entry-content li {
    margin-bottom: var(--space-2);
}

.single-entry-content ul ul,
.single-entry-content ol ol,
.single-entry-content ul ol,
.single-entry-content ol ul {
    margin-top: var(--space-2);
    margin-bottom: 0;
}

/* Horizontal rule */
.single-entry-content hr {
    border: none;
    border-top: 2px solid var(--color-border-light);
    margin: var(--space-8) 0;
}

/* Table */
.single-entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.single-entry-content th,
.single-entry-content td {
    border: 1px solid var(--color-border);
    padding: var(--space-3) var(--space-4);
    text-align: left;
    vertical-align: top;
}

.single-entry-content th {
    background: var(--color-bg-tertiary);
    font-weight: var(--font-semibold);
}

.single-entry-content tr:nth-child(even) td {
    background: var(--color-bg-secondary);
}

/* Strong / Em */
.single-entry-content strong { font-weight: var(--font-bold); }
.single-entry-content em     { font-style: italic; }

/* Links inside content */
.single-entry-content a {
    color: var(--color-accent-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-entry-content a:hover {
    color: var(--color-accent-red-hover);
}

.single-tags-links {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.single-tags-links a {
    color: var(--color-primary);
    text-decoration: none;
    margin-right: var(--space-2);
}

.single-tags-links a:hover {
    text-decoration: underline;
}

.single-download-box {
    margin-top: var(--space-6);
    padding: var(--space-5);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    position: relative;
    z-index: 10;
}

.single-like-cta {
    margin-top: var(--space-6);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid #ffd7cf;
    background: radial-gradient(circle at top left, #fff1ee 0%, #ffffff 70%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.single-like-cta__text {
    margin: 0;
    color: var(--color-text-secondary);
}

.single-like-cta__button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    border: none;
    border-radius: var(--radius-full);
    background-color: var(--color-accent-red);
    color: #fff;
    min-height: 44px;
    padding: 0 var(--space-5);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.single-like-cta__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.25);
}

.single-like-cta__button .icon {
    width: 18px;
    height: 18px;
}

.single-like-cta__button .action-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    padding: 0 var(--space-2);
    background-color: rgba(255, 255, 255, 0.24);
}

.single-like-cta__button.is-active {
    background-color: #b91c1c;
}

.single-download-box.is-floating {
    position: fixed;
    left: var(--download-floating-left, auto);
    right: auto;
    bottom: 22px;
    top: auto;
    width: var(--download-floating-width, min(420px, calc(100vw - 44px)));
    box-shadow: var(--shadow-lg);
    z-index: 120;
}

.single-download-copy {
    min-width: 0;
}

.single-download-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    margin-bottom: var(--space-3);
}

.single-download-title {
    font-size: var(--text-xl);
    line-height: 1.3;
    margin-bottom: var(--space-2);
}

.single-download-description {

    .single-download-count {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin: var(--space-3) 0 0;
        font-size: var(--text-sm);
        color: var(--color-text-secondary);
    }
    color: var(--color-text-secondary);
    margin: 0;
}

.single-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    font-weight: var(--font-semibold);
    white-space: nowrap;
}

.single-download-button--quick {
    min-width: auto;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    margin-top: 2px;
}

.single-download-button:hover {
    background-color: var(--color-primary-hover);
}

.single .post-navigation {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border-light);
}

.single .post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.single .post-navigation a {
    display: block;
    padding: var(--space-4);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-base);
    color: var(--color-text-primary);
    text-decoration: none;
    min-width: 0;
}

.single .post-navigation .nav-subtitle {
    display: block;
    color: var(--color-text-tertiary);
    font-size: var(--text-xs);
    margin-bottom: var(--space-2);
}

.single .post-navigation .nav-title {
    display: block;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.single-related-posts {
    margin-top: var(--space-6);
    margin-bottom: var(--space-6);
    margin-left: var(--space-2);
    margin-right: var(--space-2);
    padding: var(--space-5);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    background-color: var(--color-bg-primary);
}

.single-related-grid {
    margin-top: var(--space-4);
    margin-bottom: var(--space-3);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.single-section-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

/* Comments */
.comments-area {
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border-light);
    clear: both;
    display: flow-root;
    position: relative;
    z-index: 2;
    margin-bottom: var(--space-8);
}

.single .site-content {
    align-items: start;
}

.single .comments-area {
    display: block !important;
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
    width: auto !important;
    max-width: calc(100% - (var(--space-2) * 2));
    margin-top: var(--space-6);
    margin-bottom: var(--space-6);
    margin-left: var(--space-2);
    margin-right: var(--space-2);
    padding: var(--space-5);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    background-color: var(--color-bg-primary);
}

.single .comments-area #respond {
    display: block !important;
    clear: both !important;
    float: none !important;
    position: static !important;
    margin-top: var(--space-4);
}

.single .comments-area #respond form,
.single .comments-area #commentform {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    float: none !important;
    clear: both !important;
    inset: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

.single .comments-area #commentform .comment-form-comment,
.single .comments-area #commentform .logged-in-as,
.single .comments-area #commentform .comment-form-author,
.single .comments-area #commentform .comment-form-email,
.single .comments-area #commentform .comment-form-url,
.single .comments-area #commentform .comment-notes,
.single .comments-area #commentform .form-submit {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    position: static !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.single .comments-area #commentform textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    float: none !important;
    clear: both !important;
    margin: 0 0 var(--space-3) !important;
    transform: none !important;
}

.single .comments-area #commentform .form-submit {
    margin-bottom: var(--space-6) !important;
}

.single #respond,
.single .comment-respond,
.single .comment-form {
    display: flow-root !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    position: static !important;
}

.single .logged-in-as,
.single .comment-form-comment,
.single .form-submit,
.single .comment-notes {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    position: static !important;
}

.comments-title,
.comment-reply-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    color: var(--color-text-primary);
}

.comment-list {
    list-style: none;
    margin: 0 0 var(--space-6);
    padding: 0;
}

.comments-area .comment-navigation {
    margin-bottom: var(--space-4);
}

.comments-area .comment-navigation .nav-links {
    display: flex;
    gap: var(--space-2);
}

.comments-area .comment-navigation .nav-previous a,
.comments-area .comment-navigation .nav-next a {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-xs);
}

.comments-area .comment-navigation .nav-previous a:hover,
.comments-area .comment-navigation .nav-next a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.no-comments {
    margin: var(--space-4) 0;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.comment-list .children {
    list-style: none;
    margin: var(--space-3) 0 0 var(--space-5);
    padding: 0;
}

.comment-body {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-base);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.comment-meta {
    margin-bottom: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
}

.comment-author .fn a,
.comment-author .fn {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    text-decoration: none;
}

.comment-content p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.comment-reply-link {
    font-size: var(--text-xs);
    color: var(--color-primary);
    text-decoration: none;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.comment-respond,
.comment-form {
    display: block;
    width: 100%;
    clear: both;
    float: none;
    position: static;
}

.comment-respond {
    overflow: hidden;
}

.comment-form p {
    margin-bottom: var(--space-3);
    float: none;
    clear: both;
}

.comment-form-comment {
    width: 100%;
    float: none;
    clear: both;
}

.comment-form-comment label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    max-width: 100%;
    display: block;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    padding: var(--space-3);
    font-size: var(--text-sm);
    outline: none;
}

#comment {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    position: static !important;
}

.site-footer {
    clear: both;
    position: relative;
    z-index: 1;
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.comment-form .submit {
    border: none;
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-base);
    padding: 10px 16px;
    font-size: var(--text-sm);
    cursor: pointer;
}

.comment-form .submit:hover {
    background-color: var(--color-primary-hover);
}

.action-count,
.action-label {
    font-size: inherit;
}

/* Sidebar Right */
.sidebar-right {
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* Popular Posts Widget */
.popular-posts-widget {
    background-color: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.widget-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin: 0;
}

.popular-posts-list {
    list-style: none;
}

.popular-post-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}

.popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-item:hover {
    background-color: var(--color-bg-tertiary);
    margin: 0 calc(-1 * var(--space-3));
    padding: var(--space-3);
    border-radius: var(--radius-base);
}

.popular-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.popular-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.popular-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-base);
}

.popular-post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.popular-post-title {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    line-height: 1.4;
}

.popular-post-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-base);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-title a:hover {
    color: var(--color-primary);
}

.popular-post-meta {
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
}

.views-count {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

/* Pagination */
.pagination {
    margin-top: var(--space-6);
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
}

.pagination .nav-links a,
.pagination .nav-links span {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text-primary);
    border-radius: var(--radius-base);
    font-size: 0.85rem;
    min-width: 40px;
    text-align: center;
    transition: all var(--transition-base);
}

.pagination .nav-links a:hover {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-primary);
}

.pagination .nav-links .current {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Icon Styles */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-8) 0 var(--space-5);
    margin-top: var(--space-8);
}

.site-footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.footer-widgets {
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-6);
}

.footer-mobile-compact {
    display: none;
}

.footer-widget {
    flex: 1;
}

.footer-widget .widget-title {
    color: white;
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: var(--space-2);
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-base);
}

.footer-widget a:hover {
    color: white;
}

.site-info {
    text-align: center;
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

.site-info a {
    color: white;
    text-decoration: none;
    font-weight: var(--font-medium);
}

.site-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .site-content {
        grid-template-columns: 200px 1fr 280px;
    }
}

@media (max-width: 1024px) {
    .site-content {
        grid-template-columns: 200px 1fr;
    }

    .profile-hero-card {
        grid-template-columns: 160px 1fr;
        gap: var(--space-4);
    }

    .profile-hero-avatar {
        width: 144px;
        height: 144px;
    }
    
    .sidebar-right {
        display: none;
    }
    
    .tabs {
        padding: 0 var(--space-4);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .site-content {
        grid-template-columns: 1fr;
        padding: var(--space-4);
    }

    .profile-hero-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .profile-hero-avatar-wrap {
        justify-content: flex-start;
    }

    .profile-activity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .sidebar-left {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background-color: var(--color-bg-primary);
        z-index: 999;
        overflow-y: auto;
        padding: var(--space-6) var(--space-4);
        transition: left 0.3s ease-in-out;
        box-shadow: var(--shadow-lg);
    }
    
    .sidebar-left.active {
        left: 0;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .search-bar {
        width: 250px;
    }
    
    .user-info {
        display: none;
    }

    .site-footer {
        padding: var(--space-4) 0;
    }

    .site-footer .container {
        padding: 0 var(--space-4);
    }

    .footer-mobile-compact {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        padding: var(--space-2) 0;
    }

    .footer-mobile-brand {
        font-size: var(--text-sm);
        color: rgba(255, 255, 255, 0.85);
    }

    .footer-mobile-trigger {
        color: rgba(255, 255, 255, 0.88);
        font-size: 1.1rem;
        line-height: 1;
        letter-spacing: 0;
        cursor: pointer;
        user-select: none;
    }

    .footer-mobile-trigger:hover {
        color: white;
    }

    .site-footer.expanded .footer-mobile-trigger {
        font-size: 1rem;
    }

    .footer-widgets {
        display: none;
        margin-top: var(--space-4);
        margin-bottom: var(--space-4);
        gap: var(--space-5);
    }

    .site-footer.expanded .footer-widgets {
        display: flex;
        flex-direction: column;
    }

    .footer-widget .widget-title {
        font-size: var(--text-base);
        margin-bottom: var(--space-2);
    }

    .footer-widget p,
    .footer-widget a {
        font-size: var(--text-xs);
    }
    
    .footer-widgets {
        flex-direction: column;
    }
    
    .header-wrapper {
        padding: var(--space-3) var(--space-4);
    }
    
    .site-header {
        padding: 0;
    }
    
    .header-left {
        gap: var(--space-3);
    }
    
    .header-right {
        gap: var(--space-3);
    }

    .solar-hero-card {
        flex-direction: column;
        align-items: stretch;
    }

    .lunar-hero-card {
        flex-direction: column;
        align-items: stretch;
    }

    .weather-hero-card {
        flex-direction: column;
        align-items: stretch;
    }

    .solar-picker-form {
        align-items: stretch;
    }

    .lunar-picker-grid,
    .lunar-stats-grid,
    .lunar-layout-grid {
        grid-template-columns: 1fr;
    }

    .weather-now-grid,
    .weather-forecast-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lunar-picker-form {
        align-items: stretch;
    }

    .lunar-picker-form__field,
    .lunar-picker-form__input {
        width: 100%;
    }

    .solar-picker-grid {
        grid-template-columns: 1fr;
    }

    .solar-picker-form__field,
    .solar-picker-form__input {
        width: 100%;
    }

    .solar-stats-grid,
    .solar-layout-grid {
        grid-template-columns: 1fr;
    }

    .solar-month-grid {
        gap: var(--space-2);
    }

    .solar-day {
        min-height: 58px;
        padding: var(--space-2);
    }

    .notification-dropdown {
        right: -12px;
    }
    
    .slider-container {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    .slide-content {
        padding: var(--space-6);
    }
    
    .slide-title {
        font-size: var(--text-2xl);
    }
    
    .tabs {
        padding: 0 var(--space-4);
        gap: var(--space-2);
    }
    
    .tab {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }

    .single .content-area {
        padding: var(--space-4);
    }

    .single-post-card {
        padding: var(--space-4);
    }

    .single .comments-area {
        width: auto !important;
        max-width: calc(100% - (var(--space-1) * 2));
        margin-top: var(--space-5);
        margin-bottom: var(--space-5);
        margin-left: var(--space-1);
        margin-right: var(--space-1);
        padding: var(--space-4);
    }

    .single-related-posts {
        margin-top: var(--space-6);
        margin-bottom: var(--space-5);
        margin-left: var(--space-1);
        margin-right: var(--space-1);
        padding: var(--space-4);
    }

    .single-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .single-download-box {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-4);
        gap: var(--space-3);
        border-radius: 16px;
    }

    .single-like-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-4);
    }

    .single-like-cta__button {
        width: 100%;
        justify-content: center;
    }

    .single-download-box.is-floating {
        left: 14px;
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: none;
    }

    .single-download-title {
        font-size: clamp(1.1rem, 5vw, 1.35rem);
    }

    .single-download-description {
        font-size: var(--text-sm);
        line-height: 1.6;
    }

    .single-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .single-download-button--quick {
        align-self: flex-start;
    }

    .single-download-button {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 640px) {
    .header-left {
        gap: var(--space-2);
    }
    
    .search-bar {
        width: 150px;
        font-size: var(--text-xs);
    }

    .profile-section-card {
        padding: var(--space-4);
        border-radius: 18px;
    }

    .profile-activity-grid {
        grid-template-columns: 1fr;
    }

    .profile-meta-item {
        width: 100%;
        justify-content: flex-start;
    }

    .solar-calendar-card,
    .solar-info-panel,
    .solar-stat-card,
    .solar-hero-card,
    .solar-picker-card {
        border-radius: 18px;
    }

    .lunar-hero-card,
    .lunar-picker-card,
    .lunar-stat-card,
    .lunar-calendar-card,
    .lunar-info-panel {
        border-radius: 18px;
    }

    .weather-hero-card,
    .weather-status-card,
    .weather-now-card,
    .weather-forecast-card,
    .weather-forecast-item {
        border-radius: 18px;
    }

    .solar-calendar-card,
    .solar-info-panel {
        padding: var(--space-4);
    }

    .lunar-calendar-card,
    .lunar-info-panel,
    .lunar-stat-card,
    .lunar-picker-card {
        padding: var(--space-4);
    }

    .solar-month-grid {
        gap: 8px;
    }

    .lunar-month-grid {
        gap: 8px;
    }

    .solar-day {
        min-height: 50px;
    }

    .lunar-day {
        min-height: 62px;
        padding: var(--space-2);
    }

    .weather-now-grid,
    .weather-forecast-grid {
        grid-template-columns: 1fr;
    }

    .weather-status-card,
    .weather-forecast-card,
    .weather-now-card,
    .weather-forecast-item {
        padding: var(--space-4);
    }

    .solar-day__number {
        font-size: var(--text-sm);
    }

    .lunar-day__solar {
        font-size: var(--text-sm);
    }

    .notification-dropdown {
        right: -18px;
        width: min(300px, calc(100vw - 24px));
        padding: var(--space-4);
    }
    
    .btn-creator {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }
    
    .site-title {
        font-size: var(--text-lg);
    }
    
    .slider-container {
        aspect-ratio: 16 / 9;
    }
    
    .featured-slider {
        margin-bottom: var(--space-4);
    }
    
    .slide-content {
        padding: var(--space-4);
    }
    
    .slide-title {
        font-size: var(--text-xl);
    }
    
    .slide-excerpt {
        font-size: var(--text-xs);
    }
    
    .tabs {
        padding: 0 var(--space-3);
        gap: var(--space-1);
    }
    
    .tab {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
        white-space: nowrap;
    }
    
    .post-thumbnail {
        aspect-ratio: 16 / 10;
    }
    
    .entry-title {
        font-size: 0.95rem;
    }
    
    .entry-summary {
        font-size: 0.75rem;
        line-height: 1.45;
    }
    
    .post-actions {
        gap: var(--space-2);
        justify-content: space-between;
    }
    
    .post-action-btn {
        padding: 0;
        font-size: var(--text-xs);
        gap: 4px;
    }

    .post-action-btn .action-label {
        display: none;
    }

    .post-action-btn .action-count {
        line-height: 1;
    }

    .post-action-btn .icon {
        width: 14px;
        height: 14px;
    }

    .pagination .nav-links {
        gap: 6px;
    }

    .pagination .nav-links a,
    .pagination .nav-links span {
        padding: 6px 10px;
        font-size: 0.78rem;
        min-width: 34px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        padding: var(--space-2) var(--space-3);
    }
    
    .search-bar {
        display: none;
    }
    
    .btn-creator {
        display: none;
    }
    
    .header-actions {
        gap: var(--space-2);
    }
    
    .slider-container {
        aspect-ratio: 2 / 1;
    }
    
    .featured-slider {
        margin-bottom: var(--space-3);
    }
    
    .slide-content {
        padding: var(--space-3);
    }
    
    .slide-title {
        font-size: var(--text-lg);
        margin-bottom: var(--space-2);
    }
    
    .slide-excerpt {
        display: none;
    }
    
    .tabs {
        padding: 0 var(--space-2);
    }
    
    .tab {
        padding: var(--space-2);
        font-size: 0.7rem;
    }
    
    .posts-grid {
        gap: var(--space-3);
    }
    
    .post {
        padding: 0;
    }
    
    .post-content-wrapper {
        padding: var(--space-3);
    }

    .entry-title {
        font-size: 0.9rem;
    }

    .entry-summary {
        font-size: 0.7rem;
        line-height: 1.4;
    }
    
    .post-thumbnail {
        aspect-ratio: 16 / 10;
    }

    .post-actions {
        justify-content: flex-start;
        gap: var(--space-3);
    }

    .post-action-btn {
        font-size: 0.75rem;
        gap: 2px;
    }

    .post-action-btn .action-label {
        display: none;
    }

    .pagination .nav-links {
        gap: 4px;
    }

    .pagination .nav-links a,
    .pagination .nav-links span {
        padding: 5px 8px;
        font-size: 0.74rem;
        min-width: 30px;
        border-radius: 8px;
    }

    .single-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .single .site-content {
        padding: var(--space-3);
    }

    .single .content-area {
        padding: var(--space-3);
    }

    .single-post-card {
        padding: var(--space-3);
    }

    .single .comments-area {
        width: 100% !important;
        max-width: 100%;
        margin-top: var(--space-4);
        margin-bottom: var(--space-4);
        margin-left: 0;
        margin-right: 0;
        padding: var(--space-3);
    }

    .single-related-posts {
        margin-top: var(--space-5);
        margin-bottom: var(--space-4);
        margin-left: 0;
        margin-right: 0;
        padding: var(--space-3);
    }

    .single-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
    }

    .single-entry-content {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .single-meta {
        font-size: 0.78rem;
        gap: 6px;
    }

    .comment-list .children {
        margin-left: var(--space-3);
    }

    .comment-form textarea {
        min-height: 120px;
    }
}

/* ── Lightbox ── */
.huyblog-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.huyblog-lightbox.is-open {
    display: flex;
}

.huyblog-lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
    user-select: none;
}

.huyblog-lightbox__close {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius-full);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background var(--transition-base);
    z-index: 10000;
}

.huyblog-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.single-entry-content img {
    cursor: zoom-in;
}
