:root {
  --pink: #ff2d78;
  --pink-dark: #d81159;
  --purple: #2b0b3f;
  --ink: #1a1523;
  --ink-soft: #55506b;
  --bg: #faf7fb;
  --card: #ffffff;
  --border: #ece6f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

h1, h2, h3, .logo { font-family: 'Poppins', sans-serif; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--purple); color: #fff; }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 16px; gap: 16px; }
.logo { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.logo::before { content: "💋 "; }

.search-form { display: flex; background: rgba(255,255,255,0.12); border-radius: 999px; overflow: hidden; }
.search-form input { background: transparent; border: 0; padding: 10px 14px; color: #fff; width: 200px; outline: none; }
.search-form input::placeholder { color: rgba(255,255,255,0.6); }
.search-form button { background: var(--pink); border: 0; padding: 0 16px; cursor: pointer; }

.site-nav { background: rgba(0,0,0,0.2); }
.nav-inner { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 16px; }
.nav-inner a { padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: 14px; color: rgba(255,255,255,0.85); }
.nav-inner a:hover { background: var(--pink); color: #fff; }

/* Ads */
.ad-slot { margin: 20px 0; display: flex; justify-content: center; }
.ad-placeholder {
  width: 100%; max-width: 728px; min-height: 90px;
  border: 2px dashed #d7c9e0; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #a091b3; background: #fdfbfe; text-align: center; padding: 12px;
}
.ad-placeholder span { font-weight: 700; letter-spacing: 1px; font-size: 13px; }
.ad-placeholder small { font-size: 11px; margin-top: 4px; }
.post-grid__ad { grid-column: 1 / -1; }

/* Layout */
.main-content { padding: 28px 16px 60px; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.section-title { font-size: 22px; margin: 0 0 16px; }

/* Featured */
.featured-card { display: block; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(43,11,63,0.08); margin-bottom: 28px; }
.featured-card img { width: 100%; height: 320px; object-fit: cover; display: block; }
.featured-card__body { padding: 20px 24px 24px; }
.featured-card h1 { font-size: 28px; margin: 10px 0 8px; }
.featured-card p { color: var(--ink-soft); margin: 0 0 10px; }
.featured-card time { color: #a091b3; font-size: 13px; }

.tag { display: inline-block; background: #f3e6ee; color: var(--pink-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 999px; margin: 0 6px 8px 0; }
.tag--destaque { background: var(--pink); color: #fff; }

/* Grid */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-card { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(43,11,63,0.06); transition: transform .15s ease; }
.post-card:hover { transform: translateY(-3px); }
.post-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.post-card__body { padding: 14px 16px 18px; }
.post-card h3 { font-size: 16px; margin: 6px 0 6px; line-height: 1.3; }
.post-card p { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; }
.post-card time { font-size: 12px; color: #a091b3; }

.empty-state { color: var(--ink-soft); padding: 40px 0; text-align: center; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 32px 0 0; }
.pagination a { padding: 8px 14px; border-radius: 8px; background: var(--card); font-weight: 600; box-shadow: 0 2px 8px rgba(43,11,63,0.06); }
.pagination a.active { background: var(--pink); color: #fff; }

/* Sidebar widget */
.widget { background: var(--card); border-radius: 14px; padding: 18px; box-shadow: 0 4px 14px rgba(43,11,63,0.06); }
.widget h3 { margin: 0 0 12px; font-size: 15px; }
.widget-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.widget-list a { font-size: 14px; font-weight: 600; }
.widget-list a:hover { color: var(--pink); }

/* Article */
.post-article h1 { font-size: 30px; margin: 12px 0 6px; }
.post-article time { color: #a091b3; font-size: 13px; }
.post-article__cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; margin: 18px 0; }
.post-article__content { font-size: 17px; color: #2b2438; }
.post-article__content p { margin: 0 0 16px; }
.source-credit { font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 18px; }
.share-bar { display: flex; align-items: center; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.share-bar span { font-weight: 600; color: var(--ink-soft); font-size: 14px; }
.share-bar a { background: var(--card); border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.share-bar a:hover { background: var(--pink); color: #fff; border-color: var(--pink); }
.related { margin-top: 32px; }
.related h3 { margin-bottom: 16px; }

/* Static pages */
.static-page { max-width: 760px; margin: 0 auto; }
.static-page h1 { font-size: 28px; }
.static-page h2 { font-size: 20px; margin-top: 28px; }
.static-page p { color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--purple); color: rgba(255,255,255,0.85); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 32px 16px; }
.footer-inner p { color: rgba(255,255,255,0.6); font-size: 14px; margin: 6px 0 0; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a:hover { color: var(--pink); }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.1); padding: 14px 16px; font-size: 12px; color: rgba(255,255,255,0.5); }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .search-form input { width: 120px; }
  .featured-card img { height: 200px; }
}

/* Admin */
.admin-body { background: #f4f2f7; font-family: 'Inter', sans-serif; min-height: 100vh; }
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 60px; }
.admin-bar { background: var(--purple); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.admin-bar a { color: rgba(255,255,255,0.85); font-weight: 600; margin-left: 16px; }
.admin-bar a:hover { color: var(--pink); }
.admin-card { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 4px 14px rgba(43,11,63,0.06); margin-bottom: 20px; }
.admin-card h1, .admin-card h2 { margin-top: 0; }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: 14px; }
.form-row input[type=text], .form-row input[type=password], .form-row input[type=email], .form-row input[type=url], .form-row select, .form-row textarea {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row small { color: var(--ink-soft); }
.checkbox-row { flex-direction: row; align-items: center; gap: 8px; }
.btn { display: inline-block; background: var(--pink); color: #fff; border: 0; padding: 11px 22px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 14px; }
.btn:hover { background: var(--pink-dark); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn--danger { background: #c0392b; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert--ok { background: #e4f7ec; color: #1e7d46; }
.alert--error { background: #fbe4e4; color: #a12727; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
table.admin-table td.actions a { margin-right: 10px; font-weight: 600; color: var(--pink-dark); }
.status-pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.status-pill--pub { background: #e4f7ec; color: #1e7d46; }
.status-pill--draft { background: #f1eef4; color: #6c6480; }
.login-box { max-width: 380px; margin: 80px auto; }
