/* Violet Page - Tạp chí hoa tươi & cắm hoa tại gia (violetpage.fyi) */
:root {
  --vp-primary: #6B4668;
  --vp-primary-dark: #50314E;
  --vp-primary-light: #F4EEF3;
  --vp-secondary: #8F5D88;
  --vp-botanical: #3D6B52;
  --vp-botanical-light: #EBF2ED;
  --vp-ochre: #C07E28;
  --vp-bg: #FAF7F2;
  --vp-surface: #FFFFFF;
  --vp-surface-warm: #F4EFEA;
  --vp-text: #282026;
  --vp-text-muted: #645861;
  --vp-border: #E6DED5;
  --vp-border-soft: #EDE6DF;
  --vp-shadow: 0 4px 18px rgba(78, 44, 75, 0.06);
  --vp-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --vp-font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --vp-radius: 12px;
  --vp-radius-sm: 6px;
  --vp-container: 1140px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--vp-bg);
  color: var(--vp-text);
  font-family: var(--vp-font-sans);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--vp-primary);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--vp-radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Top bar */
.topbar {
  background: #362234;
  color: #EBDDE9;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar a {
  color: #F8DE7E;
  text-decoration: none;
}
.topbar a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--vp-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header */
.site-header {
  background: var(--vp-surface);
  border-bottom: 1px solid var(--vp-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-family: var(--vp-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--vp-primary);
  line-height: 1.2;
}
.logo-tagline {
  font-size: 0.72rem;
  color: var(--vp-text-muted);
  letter-spacing: 0.02em;
}

/* Navigation */
.nav-checkbox {
  display: none;
}
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle-label span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--vp-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--vp-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.2s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--vp-primary);
}
.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--vp-primary);
  border-radius: 2px;
}
.nav-btn-highlight a {
  background-color: var(--vp-primary-light);
  color: var(--vp-primary) !important;
  padding: 0.45rem 1rem !important;
  border-radius: 20px;
  border: 1px solid rgba(107, 70, 104, 0.25);
  font-weight: 600;
  transition: all 0.2s ease;
}
.nav-btn-highlight a:hover {
  background-color: var(--vp-primary);
  color: #fff !important;
}

/* Page Hero */
.page-hero {
  background: linear-gradient(180deg, #F5EFF4 0%, var(--vp-bg) 100%);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--vp-border-soft);
}
.page-hero-inner {
  max-width: 820px;
}
.page-hero h1 {
  font-family: var(--vp-font-serif);
  font-size: 2.35rem;
  line-height: 1.25;
  color: var(--vp-primary-dark);
  margin-bottom: 0.85rem;
}
.page-hero .lead {
  font-size: 1.15rem;
  color: var(--vp-text-muted);
  line-height: 1.6;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--vp-text-muted);
  margin-bottom: 1rem;
}
.breadcrumbs a {
  color: var(--vp-text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--vp-primary);
  text-decoration: underline;
}
.breadcrumbs span {
  margin: 0 0.35rem;
  color: #B5A8B2;
}

/* Home Lead Asymmetric Layout */
.hero-editorial {
  padding: 2.5rem 0 3.5rem;
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.featured-story-card {
  background: var(--vp-surface);
  border-radius: var(--vp-radius);
  overflow: hidden;
  border: 1px solid var(--vp-border);
  box-shadow: var(--vp-shadow);
  display: flex;
  flex-direction: column;
}
.featured-story-img-link {
  display: block;
  position: relative;
  overflow: hidden;
}
.featured-story-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.featured-story-card:hover .featured-story-img {
  transform: scale(1.02);
}
.featured-story-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.badge-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: var(--vp-primary-light);
  color: var(--vp-primary);
  margin-bottom: 0.75rem;
  align-self: flex-start;
}
.badge-category.green {
  background: var(--vp-botanical-light);
  color: var(--vp-botanical);
}
.badge-category.ochre {
  background: #FFF5E6;
  color: #A06418;
}
.featured-story-title {
  font-family: var(--vp-font-serif);
  font-size: 1.65rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.featured-story-title a {
  color: var(--vp-text);
  text-decoration: none;
}
.featured-story-title a:hover {
  color: var(--vp-primary);
}
.featured-story-desc {
  font-size: 0.95rem;
  color: var(--vp-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.article-meta-line {
  font-size: 0.82rem;
  color: #7D707A;
  border-top: 1px solid var(--vp-border-soft);
  padding-top: 0.75rem;
  display: flex;
  gap: 1rem;
}

/* Editorial Sidebar Panel on Home */
.editorial-side-box {
  background: var(--vp-surface-warm);
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.editorial-side-box h2 {
  font-family: var(--vp-font-serif);
  font-size: 1.4rem;
  color: var(--vp-primary-dark);
  margin-bottom: 0.85rem;
}
.editorial-side-box p {
  font-size: 0.95rem;
  color: var(--vp-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}
.seasonal-ticker {
  background: var(--vp-surface);
  border-left: 3px solid var(--vp-botanical);
  padding: 1rem;
  border-radius: 0 var(--vp-radius-sm) var(--vp-radius-sm) 0;
  margin-bottom: 1.5rem;
}
.seasonal-ticker-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--vp-botanical);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.seasonal-ticker p {
  font-size: 0.88rem;
  margin-bottom: 0;
  color: var(--vp-text);
}

/* Card Grid */
.articles-section {
  padding: 2.5rem 0 4rem;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--vp-border);
  padding-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--vp-font-serif);
  font-size: 1.85rem;
  color: var(--vp-primary-dark);
}
.section-header a {
  font-size: 0.9rem;
  color: var(--vp-primary);
  text-decoration: none;
  font-weight: 600;
}
.section-header a:hover {
  text-decoration: underline;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.card {
  background: var(--vp-surface);
  border-radius: var(--vp-radius);
  overflow: hidden;
  border: 1px solid var(--vp-border);
  box-shadow: var(--vp-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(78, 44, 75, 0.1);
}
.card-img-link {
  display: block;
  overflow: hidden;
  background-color: var(--vp-surface-warm);
}
.card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.card:hover .card-img {
  transform: scale(1.03);
}
.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-title {
  font-family: var(--vp-font-serif);
  font-size: 1.22rem;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}
.card-title a {
  color: var(--vp-text);
  text-decoration: none;
}
.card-title a:hover {
  color: var(--vp-primary);
}
.card-excerpt {
  font-size: 0.88rem;
  color: var(--vp-text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.card-footer {
  font-size: 0.78rem;
  color: #7D707A;
  border-top: 1px solid var(--vp-border-soft);
  padding-top: 0.65rem;
  display: flex;
  justify-content: space-between;
}

/* Philosophy Callout */
.callout-banner {
  background: var(--vp-surface);
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius);
  padding: 2.25rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.callout-icon {
  width: 70px;
  height: 70px;
  background: var(--vp-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vp-primary);
}
.callout-text h3 {
  font-family: var(--vp-font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
  color: var(--vp-primary-dark);
}
.callout-text p {
  font-size: 0.92rem;
  color: var(--vp-text-muted);
  line-height: 1.55;
}
.btn-primary {
  display: inline-block;
  background: var(--vp-primary);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: var(--vp-radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.btn-primary:hover {
  background: var(--vp-primary-dark);
}

/* Article Detail Layout */
.article-layout {
  padding: 2.5rem 0 4rem;
}
.article-container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.article-header {
  margin-bottom: 2rem;
}
.article-header h1 {
  font-family: var(--vp-font-serif);
  font-size: 2.35rem;
  line-height: 1.25;
  color: var(--vp-primary-dark);
  margin: 0.75rem 0 1rem;
}
.article-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--vp-text-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.article-meta {
  font-size: 0.85rem;
  color: var(--vp-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--vp-border);
  border-bottom: 1px solid var(--vp-border);
}
.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.article-hero-figure {
  margin: 2rem 0;
  border-radius: var(--vp-radius);
  overflow: hidden;
  background: var(--vp-surface-warm);
}
.article-hero-img {
  width: 100%;
  height: auto;
  display: block;
}
.article-caption {
  font-size: 0.82rem;
  color: var(--vp-text-muted);
  padding: 0.65rem 1rem;
  background: var(--vp-surface);
  border-top: 1px solid var(--vp-border-soft);
  line-height: 1.5;
}
.article-caption a {
  color: var(--vp-primary);
  text-decoration: underline;
}

/* Article Prose */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2D252B;
}
.article-content p {
  margin-bottom: 1.35rem;
}
.article-content h2 {
  font-family: var(--vp-font-serif);
  font-size: 1.65rem;
  color: var(--vp-primary-dark);
  margin: 2.25rem 0 1rem;
  line-height: 1.3;
}
.article-content h3 {
  font-family: var(--vp-font-serif);
  font-size: 1.3rem;
  color: #3B2638;
  margin: 1.75rem 0 0.75rem;
  line-height: 1.35;
}
.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-content li {
  margin-bottom: 0.5rem;
}
.article-content a {
  color: var(--vp-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content a:hover {
  color: var(--vp-primary-dark);
}
.article-content blockquote {
  border-left: 3px solid var(--vp-primary);
  background: var(--vp-primary-light);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--vp-radius-sm) var(--vp-radius-sm) 0;
  font-family: var(--vp-font-serif);
  font-size: 1.1rem;
  color: var(--vp-primary-dark);
  font-style: italic;
}

/* Callout Box in Article */
.vp-callout {
  background: var(--vp-surface);
  border: 1px solid var(--vp-border);
  border-left: 4px solid var(--vp-botanical);
  border-radius: var(--vp-radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.vp-callout-title {
  font-weight: 700;
  color: var(--vp-botanical);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vp-callout p:last-child {
  margin-bottom: 0;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--vp-surface);
  border-radius: var(--vp-radius-sm);
  overflow: hidden;
  border: 1px solid var(--vp-border);
  font-size: 0.92rem;
}
table.data-table th,
table.data-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--vp-border);
  text-align: left;
}
table.data-table th {
  background: var(--vp-surface-warm);
  font-weight: 600;
  color: var(--vp-primary-dark);
}

/* Article Author & Tags */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--vp-border);
}
.author-box {
  background: var(--vp-surface);
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--vp-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--vp-font-serif);
  font-size: 1.5rem;
  color: var(--vp-primary);
  font-weight: 700;
}
.author-info h4 {
  font-family: var(--vp-font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--vp-primary-dark);
}
.author-info p {
  font-size: 0.88rem;
  color: var(--vp-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Related articles on single post */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--vp-border);
}
.related-posts h3 {
  font-family: var(--vp-font-serif);
  font-size: 1.45rem;
  margin-bottom: 1.5rem;
  color: var(--vp-primary-dark);
}

/* Generic Page Layout (About, Contact, Write-for-us) */
.page-wrap {
  padding: 3rem 0 5rem;
}
.page-container {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.prose-section {
  background: var(--vp-surface);
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius);
  padding: 2.5rem;
  box-shadow: var(--vp-shadow);
  margin-bottom: 2rem;
}
.prose-section h2 {
  font-family: var(--vp-font-serif);
  font-size: 1.55rem;
  color: var(--vp-primary-dark);
  margin-bottom: 1rem;
}
.prose-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--vp-text);
  margin-bottom: 1.25rem;
}
.prose-section ul {
  margin: 1rem 0 1.25rem 1.5rem;
}
.prose-section li {
  margin-bottom: 0.5rem;
}

/* Contact box */
.contact-details {
  background: var(--vp-surface-warm);
  border-radius: var(--vp-radius-sm);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--vp-primary);
}
.contact-details p {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #231B21;
  color: #D3C7D0;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h3 {
  font-family: var(--vp-font-serif);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #AEA2AB;
  margin-bottom: 1rem;
}
.footer-nav {
  list-style: none;
}
.footer-nav li {
  margin-bottom: 0.5rem;
}
.footer-nav a {
  color: #D3C7D0;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: #F8DE7E;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #8D808A;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 5rem 0;
}
.error-code {
  font-family: var(--vp-font-serif);
  font-size: 6rem;
  font-weight: 700;
  color: var(--vp-primary);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-title {
  font-family: var(--vp-font-serif);
  font-size: 1.85rem;
  margin-bottom: 1rem;
}
.error-desc {
  color: var(--vp-text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .callout-banner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--vp-surface);
    border-bottom: 1px solid var(--vp-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 1.25rem 1.5rem;
  }
  .nav-checkbox:checked ~ .main-nav {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .nav-btn-highlight {
    width: 100%;
  }
  .nav-btn-highlight a {
    display: block;
    text-align: center;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1,
  .article-header h1 {
    font-size: 1.85rem;
  }
  .featured-story-title {
    font-size: 1.35rem;
  }
  .featured-story-img {
    height: 240px;
  }
  .prose-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .logo-title {
    font-size: 1.15rem;
  }
  .logo-tagline {
    display: none;
  }
  .page-hero h1,
  .article-header h1 {
    font-size: 1.6rem;
  }
}
