/* Personal Care Hugo Theme Stylesheet (ace Style, Elegant Cosmetic & Personal Care Rose/Coral) */
:root {
    --primary: #2d3436;
    --primary-hover: #1e272e;
    --primary-light: #fff0f5;
    --primary-border: #fed7e2;
    --accent: #e84393;
    --accent-hover: #d63031;
    --accent-light: #fde8f1;
    --accent-border: #fbb6ce;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;
    --bg: #fdfbfb;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --header-text: #2d3436;
    --header-link: #636e72;
    --header-link-hover: #e84393;
    --border: #f1e7ea;
    --border-hover: #e84393;
    --shadow-sm: 0 2px 6px rgba(232, 67, 147, 0.06);
    --shadow-md: 0 6px 18px rgba(232, 67, 147, 0.1);
    --shadow-lg: 0 12px 28px rgba(232, 67, 147, 0.14);
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* Header & Navigation */
.site-header {
    background-color: var(--header-bg);
    border-bottom: 2px solid var(--accent-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--header-text);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-link:hover {
    color: var(--accent);
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-left: 1px solid var(--border);
    padding-left: 0.75rem;
    display: none;
}

@media (min-width: 768px) {
    .brand-tagline {
        display: inline-block;
    }
}

.site-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: var(--header-link);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
    background-color: var(--accent-light);
}

/* Banner Section */
.banner-section {
    position: relative;
    width: 100%;
    max-height: 380px;
    overflow: hidden;
    background-color: #2d3436;
}

.banner-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    filter: brightness(0.7) saturate(1.1);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(232, 67, 147, 0.25) 0%, rgba(45, 52, 54, 0.7) 100%);
    text-align: center;
    padding: 2rem 1.5rem;
}

.banner-content {
    max-width: 800px;
    color: #ffffff;
}

.banner-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.banner-desc {
    font-size: 1.1rem;
    color: #fff0f5;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Layout Containers */
.site-main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-container {
    max-width: 1120px;
    width: 100%;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

/* Card Feed & Article Cards */
.card-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.card-item {
    width: 100%;
}

.care-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.care-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.article-card {
    padding: 2rem;
}

.card-header {
    margin-bottom: 1rem;
}

.card-meta, .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.meta-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.meta-icon {
    flex-shrink: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.badge-category {
    background-color: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent-border);
}

.badge-category:hover {
    background-color: var(--accent);
    color: #ffffff;
}

.badge-tag {
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.badge-tag:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.card-title {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.card-title a {
    color: var(--text-primary);
}

.card-title a:hover {
    color: var(--accent);
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more-link {
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background-color: var(--accent-light);
    transition: var(--transition);
}

.read-more-link:hover {
    background-color: var(--accent);
    color: #ffffff;
    transform: translateX(3px);
}

/* Pagination */
.pagination-nav {
    margin: 2.5rem 0 1rem;
    display: flex;
    justify-content: center;
}

.pagination-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pagination-btn {
    padding: 0.5rem 1.25rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pagination-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Single Article */
.single-article {
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.article-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-toc {
    background-color: var(--primary-light);
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.toc-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-toc ul {
    list-style: none;
    padding-left: 1rem;
}

.article-toc li {
    margin: 0.35rem 0;
}

.article-toc a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-toc a:hover {
    color: var(--accent);
}

/* Markdown Content Styling */
.markdown-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.markdown-body h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 0.5rem;
    color: var(--accent);
}

.markdown-body h3 {
    font-size: 1.25rem;
}

.markdown-body p {
    margin-bottom: 1.25rem;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.markdown-body li {
    margin-bottom: 0.35rem;
}

.markdown-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 0.75rem 1.25rem;
    background-color: var(--primary-light);
    color: var(--text-secondary);
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.markdown-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    background-color: #fff0f5;
    padding: 0.2em 0.45em;
    border-radius: var(--radius-sm);
    color: #e84393;
    border: 1px solid #fed7e2;
}

.markdown-body pre {
    background-color: #2d3436;
    color: #fdfbfb;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.markdown-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    border: none;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    text-align: left;
}

.markdown-body th {
    background-color: var(--primary-light);
    color: var(--accent);
    font-weight: 600;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.markdown-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Article Footer & Taxonomy */
.article-footer {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.taxonomy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.taxonomy-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Post Navigation */
.article-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
    .article-nav {
        grid-template-columns: 1fr 1fr;
    }
}

.nav-prev, .nav-next {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    background-color: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-prev:hover, .nav-next:hover {
    background-color: #ffffff;
    border-color: var(--accent-border);
    box-shadow: var(--shadow-sm);
}

.nav-prev span, .nav-next span {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav-prev strong, .nav-next strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* List & Taxonomy Pages */
.list-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-header {
    margin-bottom: 0.5rem;
}

.list-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 0.5rem;
}

.term-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.term-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.term-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.term-count {
    background-color: var(--accent-light);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

/* Archives Page */
.archives-wrapper {
    padding: 2.5rem;
}

.archives-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.archives-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.archives-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.archive-year-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.year-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 0.4rem;
}

.year-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.year-badge {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.archive-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 0.5rem;
}

.archive-item {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
}

.archive-date {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 75px;
    flex-shrink: 0;
}

.archive-link {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.archive-link:hover {
    color: var(--accent);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background-color: var(--accent);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 99;
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Footer */
.site-footer {
    background-color: #ffffff;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    padding: 1.75rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
}

@media (min-width: 640px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-top a {
    color: var(--accent);
}

.footer-top a:hover {
    color: var(--accent-hover);
}

.empty-state {
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem 0;
    text-align: center;
}
