/**
 * Offerly Theme Custom Styles
 * 
 * @package Offerly
 * @since 1.0.0
 */

/* ==========================================================================
   Custom Theme Styles
   ========================================================================== */

/* Front Page Specific */
.front-page .wp-block-group {
    margin-top: 0 !important;
}

.front-page .hero-section {
    margin-top: 0 !important;
}

/* Header Styles */
.site-header {
    background: var(--background, #fff);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: var(--background, #fff);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground, #222);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-branding .logo:hover {
    color: var(--primary, #0073aa);
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: #222;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

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

.main-navigation a {
    color: var(--foreground, #333);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--primary, #0073aa);
}

/* Menu Hamburguesa */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--foreground, #333);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Content Area */
.site-main {
    padding: 0;
}

#main-content.front-page {
    padding: 0 !important;
    margin: 0 !important;
}

.front-page .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

.entry-title a {
    color: #222;
    text-decoration: none;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.entry-footer {
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.875rem;
    color: #666;
}

/* Sidebar */
.widget-area {
    margin-top: 3rem;
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.widget-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    background: #222;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    font-size: 0.875rem;
    color: #999;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-numbers {
    padding: 0.5rem 1rem;
    background: #f4f4f4;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #0073aa;
    color: #fff;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

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

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Responsive Grid */
@media screen and (min-width: 768px) {
    .site-main > .container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
    
    .widget-area {
        margin-top: 0;
    }
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Estilos responsivos para la navegación */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--background, #fff);
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .primary-menu {
        flex-direction: column;
        gap: 1.5rem;
    }

    .primary-menu li {
        margin: 0;
    }

    .primary-menu a {
        display: block;
        padding: 12px 16px;
        font-size: 1.1rem;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

    .primary-menu a:hover {
        background: rgba(0, 0, 0, 0.05);
        transform: translateX(5px);
    }

    /* Overlay cuando el menú está abierto */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .site-header.scrolled .main-navigation {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .header-inner {
        padding: 1rem 0;
    }

    .site-branding .logo {
        font-size: 1.25rem;
    }
}

/* Para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-navigation ul,
    .main-navigation .primary-menu {
        gap: 1.5rem;
    }
}

/* Ajustar espaciado para header fijo */
body {
    padding-top: 0px;
}

body.front-page {
    padding-top: 0 !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .front-page {
        padding-top: 0 !important;
    }
}

/* ==========================================================================
   Front Page Styles
   ========================================================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--foreground);
    padding: 140px 0 40px;
    text-align: center;
    position: relative;
    margin-top: 0;
}

.trust-badge {
    background: var(--accent);
    padding: 8px 20px;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    display: inline-block;
    color: var(--primary);
    border: 1px solid hsl(333, 71%, 90%);
    text-align: center;
}

.trust-badge p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--foreground);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--muted-foreground);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--background);
    color: var(--foreground);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--muted);
    border-color: var(--secondary);
    transform: translateY(-1px);
}

/* Companies Section */
.companies-section {
    margin-top: 4rem;
}

.companies-title {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.companies-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.company-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--muted-foreground);
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.company-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--foreground);
}

/* Why Offerly Section */
.why-offerly {
    padding: 40px 0;
    background: var(--background);
}

.why-offerly h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--foreground);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--background);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    text-align: left;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
    font-weight: 600;
}

.feature-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 1rem;
}

/* Responsive Front Page */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .companies-logos {
        gap: 1.5rem;
    }

    .why-offerly {
        padding: 30px 0;
    }

    .why-offerly h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

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

/* ==========================================================================
   Insights Page Styles
   ========================================================================== */

.insights-page {
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
}

.insights-page .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

.insights-header-section {
    background: transparent;
    padding: 100px 0 60px;
    border-bottom: none;
}

.insights-header-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.insights-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.insights-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.insights-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--foreground);
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 60, 131, 0.1);
}

.search-box input::placeholder {
    color: var(--muted-foreground);
}

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

.filter-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 60, 131, 0.1);
}

.insights-content-section {
    padding: 60px 0;
}

.insights-container {
    max-width: 1200px;
    margin: 0 auto;
}

.plugin-not-active {
    background: var(--background);
    padding: 4rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.plugin-not-active h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.plugin-not-active p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Responsive Insights Page */
@media (max-width: 768px) {
    .insights-header-section {
        padding: 60px 0 40px;
    }

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

    .insights-description {
        font-size: 1rem;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .insights-content-section {
        padding: 40px 0;
    }
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

.contact-page {
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
}

.contact-page .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

.contact-header-section {
    background: transparent;
    padding: 100px 0 60px;
    text-align: center;
}

.contact-header-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.contact-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.contact-content-section {
    padding: 0 0 80px;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form-wrapper {
    width: 100%;
}

.contact-form-card {
    background: var(--background);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-subtitle {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    font-size: 0.9375rem;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--foreground);
    transition: all 0.2s ease;
    font-family: inherit;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 60, 131, 0.1);
}

.contact-form .form-control::placeholder {
    color: var(--muted-foreground);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Contact Info */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.2s ease;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-icon {
    background: hsl(333, 71%, 95%);
    color: var(--primary);
}

.phone-icon {
    background: hsl(200, 71%, 95%);
    color: hsl(200, 71%, 50%);
}

.location-icon {
    background: hsl(120, 71%, 95%);
    color: hsl(120, 71%, 40%);
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.contact-details p {
    margin: 0;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.contact-details a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: var(--primary);
}

/* Responsive Contact Page */
@media (max-width: 768px) {
    .contact-header-section {
        padding: 80px 0 40px;
    }

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

    .contact-subtitle {
        font-size: 1rem;
    }

    .contact-content-section {
        padding: 0 0 60px;
    }

    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-card {
        padding: 2rem;
    }

    .contact-info-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Blog Page Styles
   ========================================================================== */

.blog-page {
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
}

.blog-page .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

.blog-header-section {
    background: transparent;
    padding: 100px 0 60px;
    text-align: center;
}

.blog-header-content {
    max-width: 700px;
    margin: 0 auto;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.blog-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.blog-content-section {
    padding: 0 0 80px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

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

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

.post-thumbnail {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

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

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

.post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-category:hover {
    background: var(--primary);
    color: white;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-author img {
    border-radius: 50%;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.btn-read-more:hover {
    gap: 0.75rem;
}

/* Pagination */
.pagination {
    margin-top: 4rem;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.pagination-list li {
    margin: 0;
}

.pagination-list a,
.pagination-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--background);
    color: var(--foreground);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.pagination-list a:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.pagination-list .current {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.pagination-list svg {
    width: 16px;
    height: 16px;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.no-posts svg {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.no-posts h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.no-posts p {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

/* Responsive Blog Page */
@media (max-width: 768px) {
    .blog-header-section {
        padding: 80px 0 40px;
    }

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

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-content-section {
        padding: 0 0 60px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-content {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Single Post Styles
   ========================================================================== */

.single-post-article {
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

/* Hero Section */
.single-post-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 80px;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 60, 131, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.post-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.post-hero-categories {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.hero-category-badge:hover {
    background: white;
    color: var(--primary);
}

.single-post-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: white;
}

.post-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    border-radius: 50%;
    border: 2px solid white;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
    color: white;
}

.meta-details {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-dot {
    opacity: 0.5;
}

/* Content Container */
.single-post-container {
    padding: 80px 0;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-content-wrapper {
    background: var(--background);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.post-content-wrapper > * {
    margin-bottom: 1.5rem;
}

.post-content-wrapper > *:last-child {
    margin-bottom: 0;
}

.post-content-wrapper h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.post-content-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.post-content-wrapper p {
    line-height: 1.8;
    color: var(--foreground);
    font-size: 1.125rem;
}

.post-content-wrapper ul,
.post-content-wrapper ol {
    line-height: 1.8;
    padding-left: 2rem;
    font-size: 1.125rem;
}

.post-content-wrapper a {
    color: var(--primary);
    text-decoration: underline;
}

.post-content-wrapper img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.post-content-wrapper blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin-left: 0;
    font-style: italic;
    color: var(--muted-foreground);
}

.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-links-title {
    font-weight: 600;
    color: var(--foreground);
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--muted);
    color: var(--foreground);
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-number:hover {
    background: var(--primary);
    color: white;
}

/* Tags Section */
.post-tags-section {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 3rem;
}

.post-tags-section svg {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 0.25rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.tag-item {
    display: inline-block;
    padding: 6px 16px;
    background: var(--muted);
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: var(--primary);
    color: white;
}

/* Author Bio */
.author-bio-section {
    background: var(--background);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.author-bio-avatar img {
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.author-bio-content {
    flex: 1;
}

.author-bio-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.author-bio-description {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-posts-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.author-posts-link:hover {
    gap: 0.75rem;
}

/* Post Navigation */
.single-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.nav-item {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 120px;
}

.nav-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.nav-item.nav-empty {
    visibility: hidden;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.nav-prev .nav-label {
    justify-content: flex-start;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

.nav-post-title {
    color: var(--foreground);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.nav-prev .nav-post-title {
    text-align: left;
}

.nav-next .nav-post-title {
    text-align: right;
}

/* Nav Thumbnail */
.nav-thumbnail {
    margin-top: 1rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: block;
}

.nav-thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-thumbnail img {
    transform: scale(1.05);
}

/* Comments Section */
.comments-section {
    background: var(--background);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #ff6b9d 100%);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(220, 60, 131, 0.4);
}

/* ==========================================================================
   Social Share Sidebar
   ========================================================================== */
.social-share-sidebar {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.share-buttons-sticky {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--background);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.share-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 0.25rem;
}

.share-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.share-twitter {
    background: #1DA1F2;
    color: white;
}

.share-twitter:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.share-facebook {
    background: #1877F2;
    color: white;
}

.share-facebook:hover {
    background: #0e63d1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.share-linkedin {
    background: #0A66C2;
    color: white;
}

.share-linkedin:hover {
    background: #084d91;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.4);
}

.share-copy {
    background: var(--muted);
    color: var(--foreground);
}

.share-copy:hover {
    background: var(--border);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-copy.copied {
    background: #10b981;
    color: white;
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */
.table-of-contents {
    background: linear-gradient(135deg, var(--accent) 0%, var(--background) 100%);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.toc-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.toc-title svg {
    color: var(--primary);
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc-nav a {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--foreground);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
    line-height: 1.5;
    border-left: 3px solid transparent;
}

.toc-nav a:hover {
    background: var(--background);
    border-left-color: var(--primary);
    padding-left: 1.5rem;
}

.toc-nav a.active {
    background: var(--background);
    border-left-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.toc-nav a::before {
    content: "•";
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* Empty TOC Message */
.toc-empty {
    color: var(--muted-foreground);
    font-style: italic;
    font-size: 0.9375rem;
}

/* ==========================================================================
   Enhanced Content Styling
   ========================================================================== */

/* Better Blockquotes */
.post-content-wrapper blockquote {
    background: linear-gradient(135deg, var(--accent) 0%, var(--background) 100%);
    border-left: 4px solid var(--primary);
    padding: 2rem 2rem 2rem 2.5rem;
    margin: 2.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.8;
    font-style: normal;
    color: var(--foreground);
    box-shadow: var(--shadow);
}

.post-content-wrapper blockquote::before {
    content: '"';
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.post-content-wrapper blockquote p {
    margin-bottom: 0.75rem;
}

.post-content-wrapper blockquote p:last-child {
    margin-bottom: 0;
}

.post-content-wrapper blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    font-weight: 600;
}

.post-content-wrapper blockquote cite::before {
    content: "— ";
}

/* Code Blocks */
.code-block-wrapper {
    position: relative;
    margin: 2rem 0;
}

.post-content-wrapper pre {
    background: hsl(240, 5%, 10%);
    color: #e5e7eb;
    padding: 2rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid hsl(240, 5%, 15%);
    position: relative;
}

.code-copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.code-copy-btn.copied {
    background: #10b981;
    border-color: #059669;
    color: white;
}

.post-content-wrapper pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    font-family: var(--font-mono);
}

.post-content-wrapper code {
    background: var(--muted);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Highlighted Lists */
.post-content-wrapper ul li,
.post-content-wrapper ol li {
    margin-bottom: 0.75rem;
    position: relative;
}

.post-content-wrapper ul li::marker {
    color: var(--primary);
    font-size: 1.2em;
}

.post-content-wrapper ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.post-content-wrapper ol li {
    counter-increment: item;
    padding-left: 2.5rem;
    position: relative;
}

.post-content-wrapper ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary);
    color: white;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Tables */
.post-content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--background);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-content-wrapper table thead {
    background: var(--primary);
    color: white;
}

.post-content-wrapper table th,
.post-content-wrapper table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.post-content-wrapper table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.post-content-wrapper table tbody tr:hover {
    background: var(--accent);
}

.post-content-wrapper table tbody tr:last-child td {
    border-bottom: none;
}

/* Image Captions */
.post-content-wrapper figure {
    margin: 2.5rem 0;
}

.post-content-wrapper figcaption {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    text-align: center;
    font-style: italic;
}

/* HR Dividers */
.post-content-wrapper hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    margin: 3rem 0;
}

/* Links with Icon */
.post-content-wrapper a[href^="http"]::after {
    content: "↗";
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.875em;
    opacity: 0.7;
}

/* ==========================================================================
   Related Posts Section
   ========================================================================== */
.related-posts-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border);
}

.related-posts-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--foreground);
}

.related-posts-title svg {
    color: var(--primary);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: block;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.related-post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2rem;
    text-decoration: none;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.related-post-category:hover {
    background: var(--primary);
    color: white;
}

.related-post-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-post-title a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-title a:hover {
    color: var(--primary);
}

.related-post-excerpt {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.related-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-top: auto;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(220, 60, 131, 0.4);
    background: var(--primary-hover);
}

/* ==========================================================================
   Responsive Enhancements
   ========================================================================== */
@media (max-width: 1024px) {
    .social-share-sidebar {
        display: none;
    }

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

@media (max-width: 768px) {
    .single-post-hero {
        min-height: 400px;
        padding: 100px 0 60px;
    }

    .single-post-title {
        font-size: 2rem;
    }

    .single-post-container {
        padding: 40px 0;
    }

    .container-narrow {
        padding: 0 1rem;
    }

    .post-content-wrapper {
        padding: 2rem 1.5rem;
    }

    .post-content-wrapper h2 {
        font-size: 1.5rem;
    }

    .post-content-wrapper h3 {
        font-size: 1.25rem;
    }

    .post-content-wrapper p,
    .post-content-wrapper ul,
    .post-content-wrapper ol {
        font-size: 1rem;
    }

    .post-content-wrapper blockquote {
        padding: 1.5rem 1.5rem 1.5rem 2rem;
        font-size: 1rem;
    }

    .post-content-wrapper blockquote::before {
        font-size: 3rem;
    }

    .table-of-contents {
        padding: 1.5rem;
    }

    .author-bio-section {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .author-bio-avatar {
        margin: 0 auto;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .single-post-navigation {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-next .nav-label,
    .nav-next .nav-post-title {
        justify-content: flex-start;
        text-align: left;
    }

    .comments-section {
        padding: 2rem 1.5rem;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Print Styles */
@media print {
    .reading-progress-bar,
    .social-share-sidebar,
    .single-post-navigation,
    .comments-section,
    .back-to-top,
    .site-header,
    .site-footer {
        display: none !important;
    }

    .post-content-wrapper {
        box-shadow: none;
        padding: 0;
    }
}
