/*
Theme Name: yneedthis
Theme URI: https://yneedthis.com/
Author: yneedthis
Author URI: https://yneedthis.com/
Description: A modern, beautiful blog theme with soft colors and elegant typography. Features a clean design with Tailwind-inspired styling, featured post carousel, responsive mobile navigation, and optimized for SEO and AdSense monetization.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insight-blog
Tags: blog, modern, clean, responsive, custom-colors, custom-menu, featured-images, translation-ready, carousel, seo-ready, adsense-ready
*/

/* ===== CSS Variables ===== */
:root {
    --background: #fff;
    --surface: #ffffff;
    --text: #2d3e50;
    --primary-action: #5eb3d6;
    --secondary-action: #f4a261;
    --accent-pink: #f5b8d0;
    --border-color: rgba(94, 179, 214, 0.2);
    --text-muted: rgba(45, 62, 80, 0.6);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
    max-width: 100vw;
}

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

a {
    color: var(--primary-action);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ===== Accessibility Utilities ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--surface);
    border-radius: 0.25rem;
    box-shadow: 0 0 2px 2px rgba(94, 179, 214, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--primary-action);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link {
    background-color: var(--primary-action);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
}

/* Focus Indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-action);
    outline-offset: 2px;
}

/* ===== Utility Classes ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-action) 0%, var(--secondary-action) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.hover-glow:hover {
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

/* ===== Layout ===== */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header & Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(232, 244, 248, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-action);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-title a {
    color: var(--primary-action);
}

.site-description {
    font-size: 0.75rem;
    color: rgba(45, 62, 80, 0.5);
    margin-top: 0.125rem;
}

/* ===== Mobile Menu Toggle Button ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s ease-out;
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Navigation Menu ===== */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease-out;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease-out;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: var(--primary-action);
}

.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after {
    width: 100%;
    background-color: var(--primary-action);
}

/* ===== Featured Post Hero ===== */
.featured-hero {
    position: relative;
    padding: 5rem 1.5rem;
    overflow: hidden;
}

.featured-hero::before {
    content: '';
    position: absolute;
    top: 5rem;
    right: 25%;
    width: 24rem;
    height: 24rem;
    background: var(--accent-pink);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: 0;
}

.featured-hero::after {
    content: '';
    position: absolute;
    bottom: 5rem;
    left: 25%;
    width: 20rem;
    height: 20rem;
    background: #a5d8e8;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: 0;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}

.featured-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .featured-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-action);
}

.carousel-control:hover {
    background: var(--primary-action);
    color: white;
    box-shadow: 0 4px 12px rgba(94, 179, 214, 0.3);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

/* Hide indicators when only one slide */
.carousel-container[data-slides="1"] .carousel-indicators {
    display: none;
}

/* Hide navigation buttons when only one slide */
.carousel-container[data-slides="1"] .carousel-control {
    display: none;
}

.carousel-indicator {
    width: 2.5rem;
    height: 0.375rem;
    border-radius: 9999px;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.carousel-indicator.active {
    background: var(--primary-action);
    box-shadow: 0 2px 8px rgba(94, 179, 214, 0.4);
}

.featured-badge {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background: rgba(245, 184, 208, 0.25);
    color: #d47ba8;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text);
}

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

.featured-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary-action);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.author-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.author-role {
    font-size: 0.75rem;
    color: rgba(45, 62, 80, 0.5);
}

.post-meta-items {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-action);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    color: white;
    opacity: 1;
}

.featured-image-placeholder {
    aspect-ratio: 4/3;
    border-radius: 1.5rem;
    background: #d0ebf5;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-icon {
    width: 6rem;
    height: 6rem;
    color: rgba(94, 179, 214, 0.3);
}

/* ===== Blog Posts Grid ===== */
.blog-section {
    padding: 4rem 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Blog Card ===== */
.blog-card {
    position: relative;
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-action), var(--secondary-action));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

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

.post-thumbnail {
    aspect-ratio: 16/9;
    background: #d0ebf5;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.category-design {
    background: rgba(244, 162, 97, 0.25);
    color: #d47c3e;
}

.category-development {
    background: rgba(94, 179, 214, 0.25);
    color: #3a9abf;
}

.category-ux {
    background: rgba(245, 184, 208, 0.25);
    color: #d47ba8;
}

.entry-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text);
}

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

.entry-excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: rgba(45, 62, 80, 0.5);
}

/* ===== Single Post / Article ===== */
.aspect-video {
    aspect-ratio: 16/9;
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary-action);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.author-role {
    font-size: 0.75rem;
    color: rgba(45, 62, 80, 0.5);
}

/* Article Content Styling */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
}

.article-content p {
    margin-bottom: 1.5rem;
    color: rgba(45, 62, 80, 0.7);
    line-height: 1.75;
}

.article-content p:first-of-type {
    font-size: 1.25rem;
    color: rgba(45, 62, 80, 0.8);
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.article-content ul,
.article-content ol {
    margin-bottom: 2rem;
    margin-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
    color: rgba(45, 62, 80, 0.7);
}

.article-content li strong {
    color: var(--text);
    font-weight: 600;
}

.article-content blockquote {
    padding: 2rem;
    border-radius: 1rem;
    margin: 3rem 0;
    text-align: center;
    background: rgba(245, 184, 208, 0.15);
}

.article-content blockquote p {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-style: normal;
}

.article-content blockquote cite {
    font-size: 0.875rem;
    color: rgba(45, 62, 80, 0.5);
    font-style: normal;
}

.article-content img {
    border-radius: 1.5rem;
    margin: 2rem 0;
    width: 100%;
    height: auto;
}

/* Info/Alert Boxes */
.article-content .info-box {
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-action);
    background: rgba(208, 235, 245, 0.4);
}

.article-content .info-box p:first-child {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* Author Bio */
.author-bio {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(208, 235, 245, 0.3);
    border: 1px solid var(--border-color);
}

.author-bio .author-avatar {
    width: 4rem;
    height: 4rem;
    font-size: 1.25rem;
}

/* Line clamping for related articles */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Utility classes */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* ===== Newsletter Section ===== */
.newsletter-section {
    padding: 5rem 1.5rem;
}

.newsletter-box {
    position: relative;
    max-width: 1024px;
    margin: 0 auto;
    padding: 4rem;
    background: #d0ebf5;
    border: 1px solid rgba(94, 179, 214, 0.3);
    border-radius: 1.5rem;
    overflow: hidden;
    text-align: center;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: var(--accent-pink);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
}

.newsletter-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 12rem;
    height: 12rem;
    background: var(--primary-action);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

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

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.newsletter-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
    flex-direction: column;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(107, 156, 195, 0.3);
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    color: var(--text);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-action);
}

.newsletter-form button {
    padding: 0.75rem 2rem;
    background: var(--primary-action);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

/* ===== Footer ===== */
.site-footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(107, 156, 195, 0.15);
}

.footer-widgets {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-widgets {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-widget h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-widget p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid rgba(107, 156, 195, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(45, 62, 80, 0.5);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--primary-action);
    color: var(--primary-action);
}

.site-info {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(107, 156, 195, 0.15);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(45, 62, 80, 0.5);
}

/* ===== Pagination ===== */
.pagination {
    text-align: center;
    margin: 3rem 0;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.pagination .current {
    background: var(--primary-action);
    color: white;
    border-color: var(--primary-action);
}

.pagination a:hover {
    background: var(--primary-action);
    color: white;
    border-color: var(--primary-action);
    opacity: 1;
}

/* ===== Comments ===== */
.comments-area {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment-list {
    margin-left: 2rem;
    margin-top: 1rem;
}

.comment {
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.comment-author {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.comment-content {
    line-height: 1.7;
    color: var(--text);
}

.reply a {
    font-size: 0.875rem;
    color: var(--primary-action);
    margin-top: 0.75rem;
    display: inline-block;
}

.comment-form {
    margin-top: 3rem;
}

.comment-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    background: var(--surface);
    color: var(--text);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-action);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: var(--primary-action);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    transform: scale(1.05);
}

/* Comment form checkbox styling */
.comment-form input[type="checkbox"] {
    width: 1.125rem !important;
    min-width: 1.125rem;
    max-width: 1.125rem;
    height: 1.125rem !important;
    cursor: pointer;
    accent-color: var(--primary-action);
    background-color: transparent !important;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    margin-right: 0.75rem;
    margin-bottom: 0;
    flex-shrink: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.comment-form input[type="checkbox"]:hover {
    border-color: var(--primary-action);
}

.comment-form input[type="checkbox"]:focus {
    outline: 2px solid var(--primary-action);
    outline-offset: 2px;
}

.comment-form input[type="checkbox"]:checked {
    background-color: var(--primary-action);
    border-color: var(--primary-action);
}

/* Align checkbox label properly */
.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.comment-form .comment-form-cookies-consent label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.5;
}

/* ===== Single Post Header ===== */
.single-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.back-to-blog {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.back-to-blog:hover {
    opacity: 0.7;
}

.back-to-blog svg {
    flex-shrink: 0;
}

.back-to-blog span {
    white-space: nowrap;
}

.single-post-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-action);
}

.brand-emoji {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Single Post Content Spacing ===== */

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

/* Add sizing utilities for SVG icons */
.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
}

/* Share icons styling */
.mt-12 {
    margin-top: 3rem;
}

.pt-8 {
    padding-top: 2rem;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile navigation overlay - Blume-inspired */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--background);
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease-out;
        overflow-y: auto;
        padding: 6rem 2rem 2rem;
        display: flex;
        flex-direction: column;
    }

    .main-navigation.is-open {
        right: 0 !important;
    }

    /* Mobile menu list styling */
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .main-navigation a {
        display: block;
        padding: 1.25rem 0.5rem;
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--text);
        width: 100%;
    }

    .main-navigation a::after,
    .main-navigation a:hover::after,
    .main-navigation .current-menu-item a::after,
    .main-navigation .current_page_item a::after {
        display: none !important;
    }

    .main-navigation a:hover {
        color: var(--primary-action);
        opacity: 1;
    }

    .main-navigation .current-menu-item a,
    .main-navigation .current_page_item a {
        color: var(--primary-action);
        font-weight: 600;
    }

    /* Mobile overlay backdrop */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    }

    .mobile-menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    /* Hide carousel controls on mobile - use swipe instead */
    .carousel-control {
        display: none;
    }

    .featured-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .newsletter-title {
        font-size: 2rem;
    }

    .newsletter-box {
        padding: 2rem 1.5rem;
    }

    .single-post-header {
        gap: 0.75rem;
    }

    .back-to-blog {
        font-size: 0.8rem;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-emoji {
        font-size: 1rem;
    }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #0f172a;
        --surface: #1e293b;
        --text: #f1f5f9;
        --primary-action: #60a5fa;
        --secondary-action: #fbbf24;
        --accent-pink: #ec4899;
        --border-color: rgba(148, 163, 184, 0.2);
        --text-muted: rgba(241, 245, 249, 0.7);
    }

    .site-header {
        background-color: rgba(15, 23, 42, 0.9);
    }

    .featured-hero::before {
        background: #ec4899;
        opacity: 0.1;
    }

    .featured-hero::after {
        background: #3b82f6;
        opacity: 0.1;
    }

    .post-thumbnail,
    .featured-image-placeholder {
        background: #1e293b;
    }

    .newsletter-box {
        background: #1e293b;
        border-color: rgba(148, 163, 184, 0.3);
    }

    .screen-reader-text:focus {
        background-color: var(--surface);
        color: var(--primary-action);
    }
}

/* ===== Fluid Typography ===== */
.featured-title {
    font-size: clamp(2rem, 4vw + 1rem, 2.5rem);
}

.section-title {
    font-size: clamp(1.75rem, 3vw + 1rem, 2rem);
}

.newsletter-title {
    font-size: clamp(2rem, 4vw + 1rem, 2.5rem);
}

.entry-title {
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.25rem);
}

/* ===== Smooth Scroll ===== */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
