/* ===================================================================
   GLAMZONE — Custom theme for tropstylee blog
   Palette : rose poudré, plum, doré
=================================================================== */

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

:root {
    --bg:         #fff7f9;
    --bg-card:    #ffffff;
    --text:       #2a1f29;
    --text-soft:  #5d4854;
    --muted:      #9a8090;
    --pink:       #e87fa6;
    --pink-deep:  #c25380;
    --pink-soft:  #fde2e9;
    --pink-pale:  #fff0f4;
    --gold:       #d4a574;
    --shadow:     0 4px 20px rgba(232, 127, 166, 0.10);
    --shadow-hov: 0 14px 40px rgba(232, 127, 166, 0.22);
    --radius:     20px;
    --radius-sm:  12px;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Quicksand', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.01em;
}

a {
    color: var(--pink-deep);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--pink-soft); color: var(--pink-deep); }

/* ───── Layout ───── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 720px;
}

.site-main {
    min-height: 50vh;
}

/* ───── Header ───── */
.site-header {
    background:
      radial-gradient(ellipse at top, var(--pink-pale) 0%, transparent 70%),
      linear-gradient(135deg, #fff5f7 0%, #ffeaf0 100%);
    padding: 64px 0 36px;
    text-align: center;
    border-bottom: 1px solid rgba(232, 127, 166, 0.12);
    position: relative;
}

.site-header::before {
    content: "";
    position: absolute;
    top: 18px; left: 50%;
    width: 80px; height: 4px;
    background: linear-gradient(90deg, transparent, var(--pink), transparent);
    transform: translateX(-50%);
    border-radius: 4px;
}

.site-title {
    font-family: 'Pacifico', cursive;
    font-size: 60px;
    color: var(--pink-deep);
    text-decoration: none;
    display: inline-block;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(232, 127, 166, 0.15);
}

.site-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 19px;
    color: var(--text-soft);
    margin: 14px 0 0;
}

.site-nav {
    margin-top: 28px;
}

.site-nav ul,
.site-nav .nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.site-nav a {
    font-weight: 600;
    color: var(--text);
    padding: 8px 18px;
    border-radius: 999px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.site-nav a:hover,
.site-nav .nav-current a,
.site-nav li.nav-current > a {
    background: var(--pink);
    color: white;
}

/* ───── Hero ───── */
.hero {
    text-align: center;
    padding: 56px 0 24px;
}

.hero-title {
    font-size: 44px;
    margin: 0 0 16px;
    color: var(--pink-deep);
    line-height: 1.1;
}

.hero-tagline {
    font-size: 19px;
    color: var(--text-soft);
    max-width: 620px;
    margin: 0 auto;
    font-style: italic;
}

.author-hero .author-avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

/* ───── Post grid (home, tag, author) ───── */
.post-feed {
    padding: 32px 0 96px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hov);
}

.post-card-image-link {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--pink-pale);
}

.post-card-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.06);
}

.post-card-content {
    padding: 26px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-tag {
    display: inline-block;
    background: var(--pink-soft);
    color: var(--pink-deep);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    align-self: flex-start;
}

.post-card-title {
    font-size: 23px;
    margin: 0 0 12px;
    line-height: 1.25;
}

.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--pink-deep); }

.post-card-excerpt {
    color: var(--text-soft);
    font-size: 15px;
    margin: 0 0 18px;
    flex: 1;
}

.post-card-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: auto;
}

.post-card-meta .dot { margin: 0 6px; }

/* ───── Single post ───── */
.post-header {
    text-align: center;
    padding: 64px 0 36px;
}

.post-tag {
    display: inline-block;
    background: var(--pink-soft);
    color: var(--pink-deep);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.post-title {
    font-size: 52px;
    margin: 0 0 22px;
    line-height: 1.1;
}

.post-excerpt {
    font-size: 21px;
    color: var(--text-soft);
    font-style: italic;
    font-family: 'Playfair Display', serif;
    margin: 0 0 26px;
    line-height: 1.5;
}

.post-meta {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.post-meta .dot { margin: 0 8px; color: var(--pink); }

.post-feature-image {
    margin: 0 auto 56px;
    max-width: 1100px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-feature-image img {
    width: 100%; height: auto;
}

/* ───── Post content ───── */
.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
}

.post-content > *:first-child { margin-top: 0; }

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote {
    margin: 0 0 26px;
}

.post-content h2 { font-size: 32px; margin: 52px 0 22px; }
.post-content h3 { font-size: 26px; margin: 42px 0 18px; }
.post-content h4 { font-size: 21px; margin: 36px 0 14px; }

.post-content a {
    color: var(--pink-deep);
    text-decoration: underline;
    text-decoration-color: var(--pink-soft);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}

.post-content a:hover {
    background: var(--pink-soft);
    text-decoration-color: var(--pink);
}

.post-content blockquote {
    border-left: 4px solid var(--pink);
    padding: 8px 0 8px 28px;
    color: var(--pink-deep);
    font-style: italic;
    font-size: 22px;
    font-family: 'Playfair Display', serif;
    margin-left: 0;
}

.post-content img,
.post-content figure {
    border-radius: var(--radius-sm);
    margin: 32px auto;
}

.post-content figcaption {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    font-style: italic;
    margin-top: 8px;
}

.post-content ul {
    list-style: none;
    padding-left: 28px;
}

.post-content ul li {
    position: relative;
    margin-bottom: 8px;
}

.post-content ul li::before {
    content: "\2661";
    position: absolute;
    left: -24px;
    top: -1px;
    color: var(--pink);
    font-size: 18px;
    font-weight: bold;
}

.post-content ol {
    padding-left: 24px;
}

.post-content ol li::marker {
    color: var(--pink-deep);
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.post-content code {
    background: var(--pink-soft);
    color: var(--pink-deep);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.92em;
    font-family: 'Courier New', monospace;
}

.post-content hr {
    border: none;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--pink), transparent);
    margin: 48px auto;
    width: 100px;
    border-radius: 4px;
}

/* ───── Author footer (post end) ───── */
.post-footer {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 2px dotted var(--pink-soft);
}

.post-author {
    display: flex;
    gap: 20px;
    align-items: center;
}

.post-author-image {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pink-soft);
    flex-shrink: 0;
}

.post-author-image-default {
    background: var(--pink-soft);
    color: var(--pink-deep);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.post-author h4 {
    font-size: 18px;
    margin: 0 0 4px;
    color: var(--pink-deep);
}

.post-author p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}

/* ───── Pagination ───── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 64px;
}

.pagination a,
.pagination .page-number {
    background: white;
    color: var(--pink-deep);
    padding: 10px 22px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 14px;
}

.pagination a:hover {
    background: var(--pink);
    color: white;
    transform: translateY(-2px);
}

/* ───── Footer ───── */
.site-footer {
    background: linear-gradient(135deg, var(--pink-soft) 0%, var(--pink-pale) 100%);
    text-align: center;
    padding: 36px 0;
    color: var(--text-soft);
    font-size: 14px;
    border-top: 1px solid rgba(232, 127, 166, 0.15);
}

/* ───── Error page ───── */
.error-page {
    text-align: center;
    padding: 120px 24px;
}

.error-code {
    font-family: 'Pacifico', cursive;
    font-size: 120px;
    color: var(--pink);
    margin: 0;
    line-height: 1;
}

.error-title {
    font-size: 40px;
    color: var(--pink-deep);
    margin: 8px 0 16px;
}

.error-message {
    font-size: 18px;
    color: var(--text-soft);
    margin: 0 0 32px;
    font-style: italic;
}

.error-link {
    display: inline-block;
    background: var(--pink);
    color: white;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.error-link:hover {
    background: var(--pink-deep);
    color: white;
    transform: translateY(-2px);
}

/* ───── Responsive ───── */
@media (max-width: 720px) {
    .site-title { font-size: 44px; }
    .site-tagline { font-size: 16px; }
    .hero-title { font-size: 34px; }
    .post-title { font-size: 36px; }
    .post-excerpt { font-size: 18px; }
    .post-content { font-size: 17px; }
    .post-content h2 { font-size: 26px; }
    .post-content h3 { font-size: 22px; }
    .post-feature-image { border-radius: 0; margin-left: -24px; margin-right: -24px; max-width: none; }
    .post-author { flex-direction: column; text-align: center; }
}

/* ───── Cute touches ───── */
.post-content > p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4em;
    font-weight: bold;
    float: left;
    line-height: 0.9;
    margin: 6px 12px 0 0;
    color: var(--pink-deep);
}

.kg-bookmark-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.kg-callout-card {
    background: var(--pink-pale);
    border-left: 4px solid var(--pink);
    padding: 20px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 32px 0;
}

.kg-button-card a {
    background: var(--pink) !important;
    color: white !important;
    border-radius: 999px !important;
    padding: 12px 32px !important;
}
