/*
Theme Name: IPTV Kopen Dark Blog
Theme URI: https://iptvkopen.it.com/blog/
Author: IPTV Kopen
Author URI: https://iptvkopen.it.com/
Description: A dark, modern WordPress theme designed for the IPTV Kopen blog. Features a sleek purple accent color scheme with excellent readability for blog content.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iptvkopen-dark
Tags: blog, dark, one-column, custom-colors, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS Variables - Dark Theme
   ========================================================================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --accent-primary: #a855f7;
    --accent-secondary: #c084fc;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #6366f1 100%);
    --gradient-text: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    --gradient-card: linear-gradient(145deg, rgba(168, 85, 247, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(168, 85, 247, 0.3);
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --container-width: 1100px;
    --content-width: 760px;
    --section-padding: 70px;
    --card-radius: 16px;
    --btn-radius: 10px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--accent-secondary);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-primary);
}

ul, ol {
    list-style-position: inside;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Background Effects
   ========================================================================== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(168, 85, 247, 0.12);
    top: -150px;
    right: -150px;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.08);
    bottom: -100px;
    left: -100px;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-content {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-normal);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
}

/* Logo - Match main HTML site exactly */
.site-logo,
.site-logo .custom-logo-link {
    display: flex;
    align-items: center;
    line-height: 1;
}

.site-logo img,
.site-logo .custom-logo-link img,
.custom-logo-link img.custom-logo,
.site-logo .custom-logo {
    height: 36px !important;
    width: auto !important;
    max-height: 36px !important;
    max-width: none !important;
    object-fit: contain;
    transition: var(--transition-fast);
}

.site-logo:hover img,
.custom-logo-link:hover img {
    transform: scale(1.05);
}

.site-logo-text {
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
}

.site-logo-text span {
    color: var(--accent-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    padding: 8px 14px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--btn-radius);
    transition: var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn {
    margin-left: 12px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--btn-radius);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Blog Header
   ========================================================================== */
.blog-header {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.blog-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.blog-header .gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Blog Grid
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding-bottom: var(--section-padding);
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
}

.post-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    color: var(--accent-primary);
    font-size: 48px;
}

.post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.post-category {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-secondary);
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-card h2 a {
    color: var(--text-primary);
}

.post-card h2 a:hover {
    color: var(--accent-secondary);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    gap: 10px;
}

.read-more svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.read-more:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post-header {
    padding: 140px 0 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.single-post-header .post-category {
    margin-bottom: 16px;
    display: inline-block;
}

.single-post-header h1 {
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.single-post-meta .author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.featured-image {
    margin-bottom: 48px;
    border-radius: var(--card-radius);
    overflow: hidden;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

.featured-image img {
    width: 100%;
    height: auto;
}

.post-body {
    max-width: var(--content-width);
    margin: 0 auto;
    padding-bottom: var(--section-padding);
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    color: var(--text-primary);
    margin: 32px 0 16px;
    font-weight: 700;
    line-height: 1.3;
}

.post-body h2 {
    font-size: 28px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-body h3 {
    font-size: 22px;
}

.post-body h4 {
    font-size: 18px;
}

.post-body p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.post-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.post-body blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--bg-card);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
    font-style: italic;
    color: var(--text-primary);
    font-size: 18px;
}

.post-body blockquote p {
    margin-bottom: 0;
    color: var(--text-primary);
}

.post-body code {
    background: var(--bg-secondary);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-secondary);
}

.post-body pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    overflow-x: auto;
    margin: 24px 0;
}

.post-body pre code {
    background: none;
    padding: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.post-body img {
    border-radius: var(--card-radius);
    margin: 24px 0;
}

.post-body a {
    color: var(--accent-primary);
    border-bottom: 1px solid transparent;
}

.post-body a:hover {
    border-bottom-color: var(--accent-primary);
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.post-body th,
.post-body td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.post-body th {
    background: var(--bg-card);
    font-weight: 600;
}

.post-body hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}

/* ==========================================================================
   Post Tags
   ========================================================================== */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.post-tags a {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.post-tags a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: var(--content-width);
    margin: 0 auto 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.post-navigation a {
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    transition: var(--transition-normal);
}

.post-navigation a:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.post-navigation .nav-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.post-navigation .nav-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.4;
}

.post-navigation .nav-next {
    text-align: right;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding-bottom: var(--section-padding);
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-title span {
    background: var(--gradient-primary);
    color: white;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 100px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    margin-bottom: 16px;
}

.comment .children {
    list-style: none;
    padding-left: 24px;
    margin-top: 16px;
    border-left: 2px solid var(--border-color);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 13px;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.comment-content p {
    margin-bottom: 12px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Comment Form */
.comment-respond {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 32px;
    margin-top: 32px;
}

.comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--btn-radius);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    transition: var(--transition-fast);
    margin-bottom: 16px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form .submit {
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--btn-radius);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 0 var(--section-padding);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--btn-radius);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-fast);
}

.pagination a:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.pagination .current {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget a {
    color: var(--text-secondary);
}

.widget a:hover {
    color: var(--accent-primary);
}

/* Search Widget */
.search-form {
    display: flex;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--btn-radius) 0 0 var(--btn-radius);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
}

.search-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.search-form button {
    padding: 12px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0 var(--btn-radius) var(--btn-radius) 0;
    color: white;
    cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: 60px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
    margin: 0 auto 40px;
}

.footer-logo img,
.footer-logo .custom-logo-link img,
.footer-logo .custom-logo {
    height: 44px;
    width: auto;
    max-height: 44px;
    object-fit: contain;
    margin-bottom: 16px;
}

.footer-logo-text {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 16px;
}

.footer-logo-text span {
    color: var(--accent-primary);
}

.footer-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-contact a {
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--accent-primary);
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--btn-radius);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--text-secondary);
}

.footer-bottom a:hover {
    color: var(--accent-primary);
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404 {
    text-align: center;
    padding: 140px 0 var(--section-padding);
}

.error-404 h1 {
    font-size: 120px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-404 h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.error-404 p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--btn-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
    color: white;
}

/* ==========================================================================
   Screen Reader Text
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 24px 24px;
        gap: 8px;
        transition: var(--transition-normal);
        border-left: 1px solid var(--border-color);
        z-index: 1000;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 14px 18px;
        font-size: 15px;
        border-radius: var(--btn-radius);
        background: rgba(255, 255, 255, 0.03);
        text-align: center;
    }

    .nav-btn {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
        text-align: center;
    }

    .blog-header {
        padding: 120px 0 40px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .single-post-header h1 {
        font-size: 28px;
    }

    .single-post-meta {
        flex-direction: column;
        gap: 12px;
    }

    .post-body h2 {
        font-size: 24px;
    }

    .post-body p {
        font-size: 16px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .comment {
        padding: 20px;
    }

    .comment .children {
        padding-left: 16px;
    }

    .comment-respond {
        padding: 24px;
    }

    .footer-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        padding: 0 0 40px;
    }

    .post-content {
        padding: 20px;
    }

    .post-card h2 {
        font-size: 18px;
    }
}

/* ==========================================================================
   WordPress Specific Styles
   ========================================================================== */
.alignleft {
    float: left;
    margin: 0 24px 24px 0;
}

.alignright {
    float: right;
    margin: 0 0 24px 24px;
}

.aligncenter {
    display: block;
    margin: 24px auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 24px;
}

.wp-caption img {
    display: block;
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--btn-radius);
}

.sticky .post-card {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-primary);
}

/* WordPress Block Editor */
.wp-block-quote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--bg-card);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
}

.wp-block-quote p {
    font-style: italic;
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 0;
}

.wp-block-quote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
    font-style: normal;
}

.has-drop-cap:not(:focus)::first-letter {
    float: left;
    font-size: 4.5em;
    line-height: 0.68;
    font-weight: 700;
    margin: 0.05em 0.1em 0 0;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

