/*
Theme Name: Best 100 Tools 2026
Theme URI: https://best100tools.com
Author: Best 100 Tools Team
Author URI: https://best100tools.com
Description: A modern, tech-focused WordPress theme for Best 100 Tools - daily publication for developers, engineers, geeks and technolusts. Features sections for Latest, Trending, Featured, AI tools, Recent Posts, and HTML ad spaces.
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: best100tools
Tags: news, blog, tech, tools, developers, responsive, featured-images, custom-menu
*/

/* ========================================
   CSS VARIABLES & RESET
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border: #334155;
    --border-light: #475569;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    
    --max-width: 100%;
    --header-height: 70px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    min-width: 100%;
}

#page.site {
    width: 100%;
    max-width: 100%;
}

/* Handle WordPress admin bar */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Reset any admin bar margin issues */
html {
    margin-top: 0 !important;
}

body.admin-bar {
    padding-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        padding-top: 46px;
    }
}

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

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

a:hover {
    color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* ========================================
   LAYOUT
   ======================================== */

.site-container {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media screen and (min-width: 769px) {
    .site-container {
        padding: 0 40px;
    }
}

@media screen and (min-width: 1400px) {
    .site-container {
        padding: 0 60px;
    }
}

.site-content {
    padding: 2rem 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

.main-content {
    min-width: 0;
    width: 100%;
}

.sidebar {
    display: none;
    min-width: 0;
    width: 360px;
}

/* Desktop: Show sidebar */
@media screen and (min-width: 1025px) {
    .content-area {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 3rem;
    }
    
    .sidebar {
        display: block;
    }
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4vw;
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.site-logo:hover {
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: white;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.nav-menu .highlight a {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.nav-menu .highlight a:hover {
    opacity: 0.9;
    color: white;
}

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

.search-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.search-toggle:hover {
    color: var(--text-primary);
}

.subscribe-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .subscribe-btn {
        display: none;
    }
}

/* ========================================
   AD SPACES
   ======================================== */

.ad-space {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    margin: 1.5rem 0;
    overflow: hidden;
}

.ad-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.header-ad-container:empty {
    display: none;
}

.header-ad {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.sidebar-sticky-ad {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.section-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.section-icon.latest { background: linear-gradient(135deg, var(--accent), var(--primary)); }
.section-icon.trending { background: linear-gradient(135deg, var(--accent-orange), var(--accent-red)); }
.section-icon.featured { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.section-icon.ai { background: linear-gradient(135deg, #ec4899, var(--secondary)); }
.section-icon.recent { background: linear-gradient(135deg, var(--accent-green), var(--accent)); }

.view-all {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.view-all:hover {
    color: var(--primary);
}

/* ========================================
   HERO / FEATURED SECTION
   ======================================== */

.hero-section {
    margin-bottom: 3rem;
}

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

.hero-sidebar {
    display: none;
}

@media screen and (min-width: 769px) {
    .hero-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .hero-sidebar {
        display: flex;
    }
}

.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 300px;
}

@media screen and (min-width: 769px) {
    .hero-main {
        min-height: 400px;
    }
}

.hero-main .post-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

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

.hero-main .post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.hero-main .post-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    width: fit-content;
}

.hero-main .post-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

@media screen and (min-width: 769px) {
    .hero-main .post-title {
        font-size: 1.875rem;
    }
}

.hero-main .post-title a {
    color: var(--text-primary);
}

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

.hero-main .post-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    max-width: 600px;
}

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

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 190px;
    flex: 1;
}

.hero-card .post-thumbnail {
    position: absolute;
    inset: 0;
}

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

.hero-card .post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

.hero-card .post-category {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.hero-card .post-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.hero-card .post-title a {
    color: var(--text-primary);
}

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

/* ========================================
   LATEST SECTION
   ======================================== */

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

@media screen and (min-width: 640px) {
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media screen and (min-width: 1400px) {
    .latest-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.post-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

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

.post-card .post-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.post-card .post-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

.post-card .post-category {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

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

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

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

.post-card .post-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-card .post-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ========================================
   TRENDING SECTION
   ======================================== */

.trending-section {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trending-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.trending-item:hover {
    border-color: var(--primary);
}

.trending-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.trending-rank.top-3 {
    background: linear-gradient(135deg, var(--accent-orange), #dc2626);
}

.trending-content {
    flex: 1;
    min-width: 0;
}

.trending-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.trending-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.trending-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========================================
   AI TOOLS SECTION
   ======================================== */

.ai-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media screen and (min-width: 640px) {
    .ai-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .ai-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (min-width: 1400px) {
    .ai-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.ai-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    text-align: center;
}

.ai-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.ai-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--secondary), #ec4899);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.ai-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ai-card-title a {
    color: var(--text-primary);
}

.ai-card-title a:hover {
    color: var(--secondary);
}

.ai-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ai-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ai-tag {
    background-color: rgba(139, 92, 246, 0.2);
    color: var(--secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* ========================================
   RECENT POSTS LIST
   ======================================== */

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.recent-item:hover {
    border-color: var(--border-light);
}

.recent-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.recent-content {
    flex: 1;
    min-width: 0;
}

.recent-category {
    display: inline-block;
    color: var(--primary);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.recent-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
    line-height: 1.4;
}

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

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

.recent-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media screen and (min-width: 641px) {
    .recent-thumbnail {
        width: 120px;
        height: 80px;
    }
}

/* ========================================
   SIDEBAR
   ======================================== */

.widget {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

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

.widget li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
}

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

.widget a {
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* Popular Widget */
.popular-posts li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.popular-rank {
    width: 24px;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.popular-rank.top {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: white;
}

/* Categories Widget */
.widget_categories ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget_categories li {
    border-bottom: none;
    padding: 0;
}

.widget_categories a {
    display: block;
    padding: 0.375rem 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.widget_categories a:hover {
    background-color: var(--primary);
    color: white;
}

/* Newsletter Widget */
.newsletter-widget p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

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

.newsletter-form button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

/* ========================================
   SINGLE POST
   ======================================== */

.single-post {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
}

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

.post-categories {
    margin-bottom: 1rem;
}

.post-categories a {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.single-post .entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta-full {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

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

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.entry-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

.entry-content code {
    font-family: var(--font-mono);
    background-color: var(--bg-secondary);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

.entry-content pre {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

/* ========================================
   ARCHIVE & SEARCH
   ======================================== */

.page-header {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    text-align: center;
}

.page-title {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: var(--text-secondary);
}

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

@media screen and (min-width: 640px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media screen and (min-width: 1400px) {
    .archive-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

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

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-top {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-brand {
    max-width: 100%;
}

@media screen and (min-width: 769px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media screen and (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(3, 1fr);
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: auto;
        max-width: 300px;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

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

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

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

.footer-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

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

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

@media screen and (min-width: 769px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading State */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* ========================================
   SINGLE POST ADDITIONAL STYLES
   ======================================== */

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-tags {
    margin-bottom: 1.5rem;
}

.post-tags a {
    display: inline-block;
    background-color: var(--bg-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

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

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-share span {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.post-share a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.nav-previous,
.nav-next {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.nav-previous:hover,
.nav-next:hover {
    border-color: var(--primary);
}

.nav-next {
    text-align: left;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: var(--primary);
}

@media screen and (min-width: 641px) {
    .nav-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .nav-next {
        text-align: right;
    }
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.search-container {
    width: 100%;
    max-width: 700px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.search-close:hover {
    color: var(--text-primary);
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Page Links */
.page-links {
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-align: center;
}

.page-links > span {
    margin: 0 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
}

.page-links a {
    margin: 0 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

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

/* Selection */
::selection {
    background-color: var(--primary);
    color: white;
}

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