/*
Theme Name: Darkest Dreaming Version 1.03 by Vladimir Jankovic
Theme URI: https://darkestdreaming.com
Author: Vladimir
Description: A modern, dark-themed responsive blog/magazine theme inspired by Typify. Features a sleek dark design with a transparent header, hero sections, featured posts carousel, and beautiful typography. Fully responsive from mobile to 4K screens.
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: darkest-dreaming
Tags: blog, magazine, responsive, dark-theme, custom-header, featured-images, threaded-comments
*/

/* ===========================
   CSS RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #213fd4;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --text-lighter: #808080;
    --bg-color: #0f0f0f;
    --bg-gray: #1a1a1a;
    --bg-darker: #050505;
    --border-color: #2a2a2a;
    --overlay-dark: rgba(0, 0, 0, 0.5);
    --overlay-darker: rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
    --header-height: 80px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-darker);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    list-style-position: inside;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1.5rem;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(5, 5, 5, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    flex: 0 0 auto;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    transition: var(--transition);
}

.site-header.scrolled .site-title {
    color: var(--primary-color);
}

.site-title a {
    color: inherit;
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none;
    position: relative;
    animation: fadeInDown 0.6s ease-out backwards;
}

/* Staggered animation for menu items */
.nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu li:nth-child(2) { animation-delay: 0.15s; }
.nav-menu li:nth-child(3) { animation-delay: 0.2s; }
.nav-menu li:nth-child(4) { animation-delay: 0.25s; }
.nav-menu li:nth-child(5) { animation-delay: 0.3s; }
.nav-menu li:nth-child(6) { animation-delay: 0.35s; }
.nav-menu li:nth-child(7) { animation-delay: 0.4s; }
.nav-menu li:nth-child(8) { animation-delay: 0.45s; }

.nav-menu a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 0.25rem;
}

/* Modern underline animation */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after,
.nav-menu .current_page_item a::after {
    width: 100%;
}

.site-header.scrolled .nav-menu a {
    color: var(--primary-color);
}

.nav-menu a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Active menu item */
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: var(--secondary-color);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.search-toggle,
.login-button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    border-radius: 4px;
    font-size: 0.95rem;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hide login button */
.login-button {
    display: none !important;
}

.site-header.scrolled .search-toggle,
.site-header.scrolled .login-button {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.search-toggle:hover,
.login-button:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    height: 42px;
    width: 42px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
    transform: scale(1.1);
}


.site-header.scrolled .mobile-menu-toggle {
    color: var(--primary-color);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-darker);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.search-overlay.active {
    display: flex;
}

.search-form-container {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    position: relative;
    border: 1px solid var(--border-color);
}

.search-close {
    display: none;
}

.search-form {
    display: flex;
    gap: 1rem;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
}

.search-form input[type="search"]::placeholder {
    color: var(--text-lighter);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.search-form button {
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-form button:hover {
    background: #3858e9;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: var(--header-height);
}

.single .hero-section {
    height: 50vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7) 60%, rgba(5, 5, 5, 0.9) 90%, rgb(5, 5, 5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    margin: 0 auto;
    text-align: left;
    color: #ffffff;
}

/* Hero content narrower on single posts */
.single .hero-content {
    max-width: 900px;
}

.hero-category {
    display: inline-block;
    background: var(--secondary-color);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.hero-category a {
    color: #ffffff;
}

.hero-category a:hover {
    color: #ffffff;
    opacity: 0.9;
}

.hero-title {
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    color: #ffffff;
    font-size: 0.95rem;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===========================
   TAGLINE SECTION
   =========================== */
.tagline-section {
    padding: 1rem 0rem;
    position: relative;
    overflow: hidden;
}

.tagline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tagline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tagline-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: fadeInUp 1s ease-out;
}

.site-tagline {
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--primary-color);
    text-align: center;
    margin: 0;
    letter-spacing: 0.5px;
    font-style: italic;
    position: relative;
}

.tagline-ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--secondary-color) 50%, transparent 100%);
    position: relative;
    flex-shrink: 0;
}

.tagline-ornament::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tagline */
@media (max-width: 768px) {
    .tagline-section {
        padding: 4rem 2rem;
    }
    
    .tagline-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .site-tagline {
        font-size: 1.35rem;
    }
    
    .tagline-ornament {
        width: 80px;
        height: 1px;
    }
}

@media (max-width: 480px) {
    .tagline-section {
        padding: 3rem 1.5rem;
    }
    
    .site-tagline {
        font-size: 1.15rem;
    }
}

/* ===========================
   FEATURED POSTS CAROUSEL
   =========================== */
.featured-posts {
    padding: 4rem 2rem;
    background: var(--bg-darker);
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: left;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.carousel-wrapper {
    position: relative;
}

.carousel-container {
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    height: 500px;
    background: var(--bg-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item:hover .carousel-image img {
    transform: scale(1.08);
}

.carousel-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 60%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.carousel-category {
    display: inline-block;
    background: var(--secondary-color);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.carousel-category a {
    color: #ffffff;
}

.carousel-category a:hover {
    color: #ffffff;
    opacity: 0.9;
}

.carousel-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.carousel-title a {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    transition: var(--transition);
}

.carousel-title a:hover {
    color: var(--secondary-color);
}

.carousel-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.carousel-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 20;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 300;
    line-height: 1;
}

.carousel-btn::before {
    content: '';
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.prev-btn::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="18 15 12 9 6 15"%3E%3C/polyline%3E%3C/svg%3E');
}

.next-btn::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="6 9 12 15 18 9"%3E%3C/polyline%3E%3C/svg%3E');
}

.carousel-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.5);
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.indicator.active {
    background: var(--secondary-color);
    width: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(74, 158, 255, 0.6);
}

/* ===========================
   POSTS LIST
   =========================== */
.posts-list {
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, var(--bg-darker) 0%, var(--bg-color) 20%, var(--bg-color) 100%);
}

.posts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-item {
    background: var(--bg-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    border-color: var(--secondary-color);
}

.post-thumbnail {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.post-category {
    display: inline-block;
    background: var(--secondary-color);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0;
    width: fit-content;
    /* box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3); */
}

.post-category a {
    color: #ffffff;
}

.post-category a:hover {
    color: #ffffff;
    opacity: 0.9;
}

/* Post Tags */
.post-tags-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.post-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    display: inline-block;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.post-tag a {
    color: var(--text-light);
}

.post-tag:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.post-tag:hover a {
    color: #ffffff;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.post-excerpt .read-more {
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.post-excerpt .read-more:hover {
    color: #3858e9;
    text-decoration: underline;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-lighter);
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

.pagination .current {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

/* ===========================
   SINGLE POST
   =========================== */
.author-bar {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
}

.share-button {
    width: 44px;
    height: 44px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.submit.share-button {
    width: auto;
    height: auto;
}

.share-button::before {
    content: '';
    width: 22px;
    height: 22px;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b0b0b0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="18" cy="5" r="3"%3E%3C/circle%3E%3Ccircle cx="6" cy="12" r="3"%3E%3C/circle%3E%3Ccircle cx="18" cy="19" r="3"%3E%3C/circle%3E%3Cline x1="8.59" y1="13.51" x2="15.42" y2="17.49"%3E%3C/line%3E%3Cline x1="15.41" y1="6.51" x2="8.59" y2="10.49"%3E%3C/line%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.share-button:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(33, 63, 212, 0.3);
}

.share-button:hover::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="18" cy="5" r="3"%3E%3C/circle%3E%3Ccircle cx="6" cy="12" r="3"%3E%3C/circle%3E%3Ccircle cx="18" cy="19" r="3"%3E%3C/circle%3E%3Cline x1="8.59" y1="13.51" x2="15.42" y2="17.49"%3E%3C/line%3E%3Cline x1="15.41" y1="6.51" x2="8.59" y2="10.49"%3E%3C/line%3E%3C/svg%3E');
}

/* Table of Contents */
.table-of-contents {
    max-width: 900px;
    margin: 2rem auto;
    margin-bottom: 1rem;
    padding: 0 2rem;
    position: relative;
}

.table-of-contents::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 63, 212, 0.1) 0%, rgba(58, 88, 233, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 0;
    transition: all 0.3s ease;
}

.table-of-contents:hover::before {
    border-color: rgba(33, 63, 212, 0.3);
    box-shadow: 0 8px 24px rgba(33, 63, 212, 0.1);
}

.table-of-contents > * {
    position: relative;
    z-index: 1;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
}

.toc-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 0.5px;
}

.toc-icon {
    color: var(--secondary-color);
    flex-shrink: 0;
    stroke-width: 2.5;
}

.toc-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 6px;
}

.toc-toggle:hover {
    background: rgba(33, 63, 212, 0.1);
    color: var(--secondary-color);
}

.toc-toggle-icon {
    transition: transform 0.3s ease;
}

.table-of-contents.collapsed .toc-toggle-icon {
    transform: rotate(-90deg);
}

.toc-list {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.table-of-contents.collapsed .toc-list {
    max-height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
}

.toc-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin: 0;
    padding: 0;
}

.toc-link {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--text-color);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
}

.toc-link:hover {
    color: var(--primary-color);
    background: rgba(33, 63, 212, 0.05);
    border-left-color: var(--secondary-color);
    padding-left: 1.25rem;
}

.toc-link.active {
    color: var(--secondary-color);
    background: rgba(33, 63, 212, 0.1);
    border-left-color: var(--secondary-color);
    font-weight: 500;
}

.toc-level-2 .toc-link {
    padding-left: 1rem;
}

.toc-level-3 .toc-link {
    padding-left: 2rem;
    font-size: 0.9rem;
}

.toc-level-4 .toc-link {
    padding-left: 3rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.toc-level-3 .toc-link:hover {
    padding-left: calc(2rem + 0.25rem);
}

.toc-level-4 .toc-link:hover {
    padding-left: calc(3rem + 0.25rem);
}

.toc-list::-webkit-scrollbar {
    width: 6px;
}

.toc-list::-webkit-scrollbar-track {
    background: transparent;
}

.toc-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.toc-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.post-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content img {
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 0;
    border-radius: 8px;
}

.entry-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Share Section */
.share-section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.share-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.share-icon::before {
    content: '';
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.share-icon.facebook::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%233b5998" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"%3E%3C/path%3E%3C/svg%3E');
}

.share-icon.twitter::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231da1f2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"%3E%3C/path%3E%3C/svg%3E');
}

.share-icon.linkedin::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230077b5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"%3E%3C/path%3E%3Crect x="2" y="9" width="4" height="12"%3E%3C/rect%3E%3Ccircle cx="4" cy="4" r="2"%3E%3C/circle%3E%3C/svg%3E');
}

.share-icon.reddit::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff4500" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="10"%3E%3C/circle%3E%3Ccircle cx="9" cy="10" r="1"%3E%3C/circle%3E%3Ccircle cx="15" cy="10" r="1"%3E%3C/circle%3E%3Cpath d="M9 15c.5.5 1.5 1 3 1s2.5-.5 3-1"%3E%3C/path%3E%3C/svg%3E');
}

.share-icon:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(33, 63, 212, 0.3);
}

.share-icon.facebook:hover::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"%3E%3C/path%3E%3C/svg%3E');
}

.share-icon.twitter:hover::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"%3E%3C/path%3E%3C/svg%3E');
}

.share-icon.linkedin:hover::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"%3E%3C/path%3E%3Crect x="2" y="9" width="4" height="12"%3E%3C/rect%3E%3Ccircle cx="4" cy="4" r="2"%3E%3C/circle%3E%3C/svg%3E');
}

.share-icon.reddit:hover::before {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="10"%3E%3C/circle%3E%3Ccircle cx="9" cy="10" r="1"%3E%3C/circle%3E%3Ccircle cx="15" cy="10" r="1"%3E%3C/circle%3E%3Cpath d="M9 15c.5.5 1.5 1 3 1s2.5-.5 3-1"%3E%3C/path%3E%3C/svg%3E');
}

/* Post Navigation */
.post-navigation {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-post {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.nav-post:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-color: var(--secondary-color);
}

.nav-post-thumbnail {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.nav-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-post-content {
    flex: 1;
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-lighter);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.nav-post-title {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* ===========================
   PAGE TEMPLATES
   =========================== */
.page-header {
    max-width: 900px;
    margin: calc(var(--header-height) + 3rem) auto 3rem;
    padding: 0 2rem;
    text-align: center;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.page-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: var(--bg-darker);
    color: var(--text-color);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
    list-style: none;
}

.footer-menu a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-lighter);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .header-container {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .main-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        height: calc(100vh - var(--header-height));
        background: var(--bg-color);
        transform: translateX(-100%);
        transition: var(--transition);
        padding: 2rem;
        overflow-y: auto;
        z-index: 999;
    }
    
    .main-navigation.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Disable entrance animations on mobile */
    .nav-menu li {
        animation: none;
    }
    
    .nav-menu a {
        color: var(--primary-color);
        font-size: 1.25rem;
    }
    
    /* Disable underline animation on mobile */
    .nav-menu a::after {
        display: none;
    }
    
    /* Keep hover effect but remove lift */
    .nav-menu a:hover {
        transform: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Convert header actions to icons on mobile */
    .header-actions {
        display: flex;
        gap: 0.75rem;
        margin-left: auto;
    }
    
    .search-toggle,
    .login-button {
        background: transparent;
        border: none;
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        color: var(--primary-color);
        cursor: pointer;
        transition: var(--transition);
    }
    
    .search-toggle:hover,
    .login-button:hover {
        opacity: 0.7;
        transform: scale(1.1);
    }
    
    .search-toggle::before {
        content: '';
        width: 20px;
        height: 20px;
        background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="11" cy="11" r="8"%3E%3C/circle%3E%3Cpath d="m21 21-4.35-4.35"%3E%3C/path%3E%3C/svg%3E');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .login-button span {
        display: none;
    }
    
    .login-button::before {
        content: '';
        width: 20px;
        height: 20px;
        background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"%3E%3C/path%3E%3Ccircle cx="12" cy="7" r="4"%3E%3C/circle%3E%3C/svg%3E');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 1rem;
        text-align: center;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .featured-posts,
    .posts-list {
        padding: 2rem 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-content {
        width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .carousel-title {
        font-size: 1.75rem;
    }
    
    .carousel-controls {
        right: 1.5rem;
        flex-direction: row;
        top: auto;
        bottom: 2rem;
        transform: none;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .carousel-btn::before {
        width: 18px;
        height: 18px;
    }
    
    .carousel-indicators {
        left: 1.5rem;
        bottom: 4.5rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-post {
        flex-direction: column;
    }
    
    .nav-post-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .author-bar {
        gap: 1rem;
    }
    
    .share-button {
        width: 40px;
        height: 40px;
    }
    
    .share-button::before {
        width: 20px;
        height: 20px;
    }
    
    .share-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }
    
    .share-icon {
        width: 36px;
        height: 36px;
    }
    
    .share-icon::before {
        width: 18px;
        height: 18px;
    }
    
    .post-tags-section {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
    
    .post-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.65rem;
    }
    
    /* Table of Contents - Mobile */
    .table-of-contents {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }
    
    .table-of-contents::before {
        left: 1rem;
        right: 1rem;
    }
    
    .toc-header {
        padding: 1rem 1.25rem;
    }
    
    .toc-title {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .toc-list {
        padding: 0 1.25rem 1.25rem;
        max-height: 400px;
    }
    
    .toc-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }
    
    .toc-level-3 .toc-link {
        padding-left: 1.5rem;
        font-size: 0.85rem;
    }
    
    .toc-level-4 .toc-link {
        padding-left: 2.25rem;
        font-size: 0.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Large Desktop & 4K */
@media (min-width: 1920px) {
    :root {
        font-size: 18px;
    }
    
    .header-container,
    .featured-container,
    .posts-container {
        max-width: 1400px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 2.5rem;
    }
    
    .carousel-image {
        height: 600px;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .carousel-content {
        width: 65%;
        padding: 2.5rem;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    /* Center hero text on tablet */
    .hero-content {
        text-align: center;
    }
    
    .hero-meta {
        justify-content: center;
    }
    
    /* Convert header actions to icons on tablet */
    .header-actions {
        display: flex;
        gap: 0.75rem;
        margin-left: auto;
    }
    
    .search-toggle,
    .login-button {
        background: transparent;
        border: none;
        padding: 0.5rem;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        color: var(--primary-color);
        cursor: pointer;
        transition: var(--transition);
    }
    
    .search-toggle:hover,
    .login-button:hover {
        opacity: 0.7;
        transform: scale(1.1);
    }
    
    .search-toggle::before {
        content: '';
        width: 22px;
        height: 22px;
        background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="11" cy="11" r="8"%3E%3C/circle%3E%3Cpath d="m21 21-4.35-4.35"%3E%3C/path%3E%3C/svg%3E');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .login-button span {
        display: none;
    }
    
    .login-button::before {
        content: '';
        width: 22px;
        height: 22px;
        background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"%3E%3C/path%3E%3Ccircle cx="12" cy="7" r="4"%3E%3C/circle%3E%3C/svg%3E');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
        margin-left: 0.5rem;
    }
    
    .main-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        height: calc(100vh - var(--header-height));
        background: var(--bg-color);
        transform: translateX(-100%);
        transition: var(--transition);
        padding: 2rem;
        overflow-y: auto;
        z-index: 999;
    }
    
    .main-navigation.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1.25rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .site-branding {
        gap: 0.5rem;
    }
    
    .site-logo img {
        height: 40px;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    /* Convert header actions to icons on extra small mobile */
    .header-actions {
        display: flex;
        gap: 0.5rem;
        margin-left: auto;
    }
    
    .search-toggle,
    .login-button {
        background: transparent;
        border: none;
        padding: 0.5rem;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        color: var(--primary-color);
        cursor: pointer;
        transition: var(--transition);
    }
    
    .search-toggle:hover,
    .login-button:hover {
        opacity: 0.7;
        transform: scale(1.1);
    }
    
    .search-toggle::before {
        content: '';
        width: 18px;
        height: 18px;
        background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="11" cy="11" r="8"%3E%3C/circle%3E%3Cpath d="m21 21-4.35-4.35"%3E%3C/path%3E%3C/svg%3E');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .login-button span {
        display: none;
    }
    
    .login-button::before {
        content: '';
        width: 18px;
        height: 18px;
        background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"%3E%3C/path%3E%3Ccircle cx="12" cy="7" r="4"%3E%3C/circle%3E%3C/svg%3E');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .mobile-menu-toggle {
        margin-left: 0.5rem;
    }
    
    .hero-section {
        min-height: 350px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-meta {
        justify-content: center;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .carousel-content {
        padding: 1.5rem 1rem;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-category {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }
    
    .carousel-meta {
        font-size: 0.8rem;
        gap: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn::before {
        width: 16px;
        height: 16px;
    }
    
    .carousel-controls {
        right: 1rem;
        bottom: 1.5rem;
        gap: 0.5rem;
    }
    
    .carousel-indicators {
        left: 1rem;
        bottom: 4rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* WordPress Core Classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 2rem auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text,
figcaption {
    text-align: center;
    font-size: 0.75rem;
    color: #999999;
    margin-top: 0.25rem;
    font-style: italic;
    line-height: 1.4;
}

/* Override WordPress block image caption margin */
.wp-block-image :where(figcaption) {
    margin-bottom: 2em;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ===========================
   LOGIN PAGE
   =========================== */
.login-page-wrapper {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-color) 50%, var(--bg-darker) 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    height: 60px;
    margin: 0 auto 1rem;
}

.login-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-tagline {
    color: var(--text-light);
    font-size: 0.95rem;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.login-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 1rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.login-tab:hover {
    color: var(--primary-color);
}

.login-tab.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.login-form-container {
    display: none;
}

.login-form-container.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-remember {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.form-remember label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    color: var(--text-light);
    font-weight: 400;
    cursor: pointer;
}

.form-remember input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-info {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--bg-darker);
    border-radius: 4px;
    border-left: 3px solid var(--secondary-color);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #3858e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.login-links {
    text-align: center;
    margin-top: 1.5rem;
}

.login-links a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.login-links a:hover {
    color: #3858e9;
    text-decoration: underline;
}

.login-links p {
    color: var(--text-light);
    margin: 0;
}

.login-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.login-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.login-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.login-message.info {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .login-page-wrapper {
        padding: 2rem 1rem;
    }
    
    .login-box {
        padding: 2rem 1.5rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
}

/* ===========================
   NO-POSTS PAGE
   =========================== */

.no-posts form.search-form label {
    width: 100%;
}