/*
Theme Name: ChatDomestique
Theme URI: https://chatdomestique.com
Author: Martin Turcotte
Author URI: https://martinturcotte.com
Description: Un thème WordPress Pop & Playful pour les amoureux des chats.
Version: 2.22
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, modern, colorful, playful
Text Domain: chat-domestique
*/
/* 
   Theme: Pop & Playful (Woocky Inspired) + Premium Content
*/



:root {
    /* Playful Palette */
    --primary: #FF4785;
    /* Vibrant Pink */
    --primary-hover: #D9366E;

    --secondary: #2EC4B6;
    /* Turquoise */
    --secondary-hover: #25A599;

    --accent: #FFD166;
    /* Sunny Yellow */
    --purple: #8338EC;

    --dark: #2D3436;
    --gray: #636E72;
    --light-gray: #F5F6FA;
    --white: #FFFFFF;

    --font: 'Nunito', sans-serif;

    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-pill: 50px;

    --shadow-pop: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --shadow-contour: 0 0 25px rgba(0, 0, 0, 0.1);
    /* Uniform contour shadow */
    --shadow-table: 0 1px 4px rgba(0, 0, 0, 0.05);
    /* Reduced vertical shadow for tables */
}

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

body {
    font-family: var(--font);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* Typography Helpers */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-pop {
    color: var(--primary);
}

.highlight {
    color: var(--primary);
}

.highlight-blue {
    color: var(--secondary);
}

.highlight-yellow {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 71, 133, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 71, 133, 0.5);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--dark);
    color: var(--dark);
}

.btn-outline:hover {
    background-color: var(--dark);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Navbar */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 700;
    color: var(--gray);
    font-size: 1.05rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 3rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: #5A4800;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 3rem;
}

.stat-item strong {
    display: block;
    font-size: 1.8rem;
    color: var(--dark);
    line-height: 1;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 700;
}

/* Hero Visual & Blobs */
.hero-visual {
    position: relative;
}

.blob-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-color: #FFF0F5;
    /* Very Light Pink */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    animation: blobFloat 8s ease-in-out infinite alternate;
}

.hero-img {
    border-radius: var(--radius-lg);
    /* No shadow on image, clean look */
    mask-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAgMTBoMTgwdjE4MEgxMHoiLz48L3N2Zz4=');
    /* Simple mask if needed, but border radius is enough */
    transform: rotate(2deg);
    transition: transform 0.5s;
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.float-card {
    position: absolute;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    font-size: 0.9rem;
    animation: float 4s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-1 i {
    color: var(--primary);
    font-size: 1.2rem;
}

.card-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

.card-2 i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.wave-bottom {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* Categories */
.categories {
    background-color: var(--light-gray);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.cat-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-pop);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.cat-card:hover {
    transform: translateY(-10px);
}

.cat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    transition: 0.3s;
}

.cat-card.color-pink:hover {
    border-color: var(--primary);
}

.cat-card.color-pink .cat-icon {
    background: var(--primary);
}

.cat-card.color-blue:hover {
    border-color: var(--secondary);
}

.cat-card.color-blue .cat-icon {
    background: var(--secondary);
}

.cat-card.color-yellow:hover {
    border-color: var(--accent);
}

.cat-card.color-yellow .cat-icon {
    background: var(--accent);
}

.cat-card.color-purple:hover {
    border-color: var(--purple);
}

.cat-card.color-purple .cat-icon {
    background: var(--purple);
}

.cat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cat-card p {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 600;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.view-all {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-pop);
    transition: 0.4s;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.blog-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--dark);
}

.tag-blue {
    background: #D1F2EB;
    color: #148F77;
}

.tag-pink {
    background: #FFDDE8;
    color: #C2185B;
}

.tag-yellow {
    background: #FFF4D1;
    color: #B7950B;
}

.blog-content {
    padding: 1.8rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.blog-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.link-btn {
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

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

/* Promo Feature */
.feature-promo {
    background: #FFF0F5;
    padding: 6rem 0;
}

.promo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.promo-img img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop);
    transform: rotate(-3deg);
}

.pill-label {
    display: inline-block;
    background: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.promo-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.fun-list li {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fun-list i {
    color: var(--secondary);
    font-size: 1.3rem;
}

/* Newsletter */
.newsletter-box {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 4rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.newsletter-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-box p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.subscribe-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-pill);
    border: none;
    font-family: var(--font);
    font-size: 1rem;
}

.subscribe-form button {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 0 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-family: var(--font);
    cursor: pointer;
    transition: 0.3s;
}

.subscribe-form button:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.circle-decor {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.top-left {
    top: -80px;
    left: -80px;
}

.bottom-right {
    bottom: -80px;
    right: -80px;
}

/* Footer */
.footer {
    padding: 4rem 0;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    margin: 0;
    font-size: 1.6rem;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-weight: 700;
    color: var(--dark);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(10deg);
}

.footer-bottom {
    text-align: center;
    border-top: 2px solid var(--light-gray);
    padding-top: 2rem;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Animations */
@keyframes blobFloat {
    0% {
        transform: translate(-50%, -50%) scale(1);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .cat-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .promo-img img {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        text-align: center;
        animation: slideDown 0.3s ease forwards;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .buttons,
    .stats {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .blob-bg {
        width: 100%;
        height: 100%;
        top: 50%;
    }

    .cat-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-box {
        padding: 2rem;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    /* Single Page Mobile */
    .article-container {
        grid-template-columns: 1fr;
    }

    .header-content h1 {
        font-size: 2rem;
    }
}

/* --- Single Page Styles POP --- */

.article-header {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Background Blob for Header */
.article-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 71, 133, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.meta-tags {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.meta-tags .badge {
    margin-bottom: 0;
}

.read-time {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 700;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.article-header h1 {
    font-size: 4rem;
    margin-bottom: 0;
    color: var(--dark);
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.02);
}

.featured-image-wrapper {
    margin-bottom: 5rem;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    transform: rotate(-1deg);
    transition: transform 0.5s ease;
}

.featured-image-wrapper img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    height: auto;
}

.featured-image-wrapper:hover {
    transform: rotate(0deg) scale(1.01);
}

/* --- CONTENT WOW UPGRADE --- */
.content-body {
    font-size: 1.15rem;
    /* Reduced from 1.25rem */
    color: #4A4A4A;
    line-height: 1.8;
}

/* Paragraphs */
.content-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-body p a,
.content-body li a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.content-body p a:hover,
.content-body li a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Lists */
.content-body ul,
.content-body ol {
    margin: 2rem 0;
    padding-left: 1.5rem;
    /* Reduced indent since no bullets */
    list-style: none !important;
    /* Force no bullets */
}

.content-body ul li,
.content-body ol li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0;
    /* No extra padding needed */
}

.content-body ul li::before,
.content-body ol li::before {
    content: none !important;
    /* Ensure no icons appeared */
}

/* Tables */
/* Wrapper for correct shadow rendering */
.table-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-table);
    background-color: #ffffff;
    width: 100%;
    /* Safety margin for shadow */
    margin: 0 auto 2rem auto;
    /* Center */
}

.content-body table {
    width: 100%;
    margin-bottom: 0;
    /* Wrapper handles margin */
    border-collapse: separate;
    border-spacing: 0;
    border: none !important;
    background-color: transparent;

    /* Fallback if JS wrapper fails */
    box-shadow: var(--shadow-table);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

/* If wrapper exists, remove shadow/margin from table to avoid double effect */
.table-card table {
    box-shadow: none !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
}

.content-body th,
.content-body td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border: none !important;
    border-bottom: none !important;
    border-right: none !important;
}



.content-body th {
    background-color: var(--primary);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none !important;
}

/* Explicit Corner Rounding (Fail-safe) */
.content-body tr:first-child th:first-child {
    border-top-left-radius: var(--radius-md);
}

.content-body tr:first-child th:last-child {
    border-top-right-radius: var(--radius-md);
}

.content-body tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-md);
}

.content-body tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-md);
}

.content-body tr:last-child td {
    border-bottom: none !important;
}

.content-body tr:nth-child(even) {
    background-color: #F9F9F9;
}

.content-body tr:hover {
    background-color: #F0F0F0;
}

/* GLOBAL CONTENT MEDIA STYLES (Images, Videos) */
.content-body img,
.content-body video,
.content-body iframe {
    width: 100%;
    /* Force full width */
    border-radius: var(--radius-md) !important;
    /* Round Corners */
    box-shadow: var(--shadow-pop) !important;
    /* Shadow */
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* YouTube Videos Responsive 16:9 */
.content-body iframe[src*="youtube.com"],
.content-body iframe[src*="youtu.be"] {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    margin: 2rem 0;
    display: block;
}

/* Drop Cap */
.intro-text::first-letter {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    float: left;
    margin-right: 1rem;
    line-height: 0.8;
}

.intro-text {
    font-size: 1.25rem;
    /* Slightly reduced */
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 3rem;
}

.content-body h2 {
    font-size: 2.2rem;
    margin-top: 3.5rem;
    margin-bottom: 1.2rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

/* Numbered H2 Decoration */
.content-body h2::before {
    content: '#';
    color: var(--secondary);
    margin-right: 0.5rem;
    opacity: 0.5;
}

/* Sticker Images */
.content-image {
    width: 100%;
    border-radius: var(--radius-md);
    margin: 3rem 0;
    border: 8px solid white;
    box-shadow: var(--shadow-pop);
    transform: rotate(1deg);
    transition: 0.3s;
}

.content-image:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Blockquote Fun */
.content-body blockquote {
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary) 0%, #25A599 100%);
    padding: 3rem 2rem;
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 0;
    text-align: center;
    margin: 4rem 0;
    box-shadow: var(--shadow-pop);
    position: relative;
}

.content-body blockquote::before {
    content: '\f10d';
    /* Quote icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 1rem;
    left: 1rem;
}

/* Sidebar Widgets */
.widget {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 2px solid var(--light-gray);
    box-shadow: var(--shadow-pop);
}

.widget h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.mini-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    /* increased spacing */
    align-items: center;
    background: var(--light-gray);
    /* Highlight background */
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    transition: 0.3s;
}

.mini-post:hover {
    background: white;
    box-shadow: var(--shadow-pop);
    transform: translateX(5px);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px dashed #EEE;
}

.nav-btn {
    flex: 1;
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.nav-btn:hover {
    background: var(--white);
    box-shadow: var(--shadow-pop);
    transform: translateY(-5px);
}

.next-post {
    text-align: right;
    align-items: flex-end;
}

.nav-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-title {
    font-weight: 800;
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.3;
}

.nav-btn:hover .nav-title {
    color: var(--primary);
}

/* Related Section */
.related-section {
    background: #FFF0F5;
    /* Very light pink background to separate from article */
    padding: 5rem 0;
    margin-top: 2rem;
}

.related-section .section-header {
    justify-content: center;
    margin-bottom: 3rem;
}

.related-section .section-header h3 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

/* Decorative wiggle underline */
.related-section .section-header h3::after {
    content: '';
    display: block;
    width: 100%;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q 12.5 0 25 10 T 50 10 T 75 10 T 100 10' stroke='%23FF4785' stroke-width='4' fill='none' /%3E");
    background-size: 50% 100%;
    position: absolute;
    bottom: -15px;
    left: 0;
}

@media (max-width: 600px) {
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .next-post {
        text-align: left;
        align-items: flex-start;
    }
}

/* Table of Contents */
#toc-container {
    background: #FFF0F5;
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 3rem;
    border-left: 5px solid var(--primary);
    display: none;
    /* Hidden by default, shown by JS */
}

#toc-container h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

#toc-container ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#toc-container ul li {
    margin-bottom: 0.8rem;
}

#toc-container ul li a {
    color: var(--dark);
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

#toc-container ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}