/*
Theme Name: Tech Blog
Theme URI: https://dev.yoursitehulp.nl/press/wp/
Description: A modern, responsive WordPress theme designed for tech blogs. Features clean typography, fast loading, and mobile-first design.
Author: YourSiteHulp
Author URI: https://yoursitehulp.nl
Version: 1.0.2
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tech-blog
Tags: blog, tech, modern, responsive, accessibility-ready, custom-header, custom-menu, featured-images, threaded-comments, translation-ready

Tech Blog is a modern WordPress theme designed specifically for technology blogs.
*/

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

:root {
    --primary-color: #3C74A7;
    --primary-dark: #2d5a7d;
    --secondary-color: #4a8bb8;
    --tertiary-color: #5ea3d1;
    --text-color: #0f172a;
    --text-muted: #475569;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #1e293b;
    --border-color: #e5e7eb;
    --accent-color: #10b981;
    --accent-bright: #22c55e;
    --error-color: #ef4444;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    --max-width: 1200px;
    --spacing: 1rem;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(60, 116, 167, 0.15);
    --shadow-lg: 0 8px 24px rgba(60, 116, 167, 0.2);
    --shadow-xl: 0 12px 40px rgba(60, 116, 167, 0.25);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Animated tech pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(60, 116, 167, 0.08) 1.5px, transparent 0),
        linear-gradient(90deg, transparent 0%, rgba(74, 139, 184, 0.03) 50%, transparent 100%);
    background-size: 24px 24px, 200% 200%;
    background-position: 0 0, 0% 0%;
    animation: techPattern 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes techPattern {
    0% {
        background-position: 0 0, 0% 0%;
    }
    100% {
        background-position: 24px 24px, 100% 100%;
    }
}

/* Subtle gradient overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(60, 116, 167, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(74, 139, 184, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Layout */
.site-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Force header container to start at 0 */
.site-header {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Header container - no left padding, only right padding for TechBubbles */
.site-header .site-container {
    padding-left: 0 !important; /* No left padding - logo has its own padding */
    padding-right: 10px !important;
    max-width: 100% !important;
    margin-left: 0 !important; /* Force to left edge */
    margin-right: 0 !important;
}

/* Hero Banner with Champagne Bubbles */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #3C74A7 50%, #5ea3d1 100%);
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 3rem;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(60, 116, 167, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

/* Hero Recent Posts */
.hero-recent-posts {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: left !important;
}

.hero-recent-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left !important;
}

.hero-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left !important;
}

.hero-post-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left !important;
}

.hero-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hero-post-link {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    margin: -0.5rem;
    text-align: left !important;
}

.hero-post-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(5px);
}

.hero-post-date {
    font-size: 0.85rem;
    opacity: 0.8;
    white-space: nowrap;
    min-width: auto;
    flex-shrink: 0;
    padding-right: 0.5rem;
    text-align: left !important;
}

.hero-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    text-align: left !important;
}

@media (max-width: 768px) {
    .hero-recent-posts {
        padding: 1.25rem;
    }
    
    .hero-recent-title {
        font-size: 1rem;
    }
    
    .hero-post-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .hero-post-date {
        min-width: auto;
        font-size: 0.8rem;
    }
    
    .hero-post-title {
        font-size: 0.9rem;
    }
}

/* Champagne Bubbles - inspired by businesshub.php */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-dot {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255,255,255,0.15);
}

/* Bubble animations - inspired by businesshub.php */
@keyframes bubble1 {
    0% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.8; }
    25% { transform: translateY(-150px) translateX(8px) scale(1.1); opacity: 0.6; }
    50% { transform: translateY(-300px) translateX(-5px) scale(1.2); opacity: 0.4; }
    75% { transform: translateY(-450px) translateX(12px) scale(1.3); opacity: 0.2; }
    100% { transform: translateY(-600px) translateX(-3px) scale(1.4); opacity: 0; }
}

@keyframes bubble2 {
    0% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.7; }
    20% { transform: translateY(-120px) translateX(-10px) scale(1.05); opacity: 0.6; }
    40% { transform: translateY(-240px) translateX(15px) scale(1.15); opacity: 0.5; }
    60% { transform: translateY(-360px) translateX(-8px) scale(1.25); opacity: 0.3; }
    80% { transform: translateY(-480px) translateX(6px) scale(1.35); opacity: 0.15; }
    100% { transform: translateY(-600px) translateX(-4px) scale(1.4); opacity: 0; }
}

@keyframes bubble3 {
    0% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.9; }
    30% { transform: translateY(-180px) translateX(-12px) scale(1.1); opacity: 0.7; }
    60% { transform: translateY(-360px) translateX(18px) scale(1.2); opacity: 0.4; }
    90% { transform: translateY(-540px) translateX(-7px) scale(1.3); opacity: 0.1; }
    100% { transform: translateY(-600px) translateX(2px) scale(1.35); opacity: 0; }
}

@keyframes bubble4 {
    0% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.6; }
    35% { transform: translateY(-210px) translateX(20px) scale(1.08); opacity: 0.5; }
    70% { transform: translateY(-420px) translateX(-15px) scale(1.18); opacity: 0.25; }
    100% { transform: translateY(-600px) translateX(8px) scale(1.25); opacity: 0; }
}

@keyframes bubble5 {
    0% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.8; }
    40% { transform: translateY(-240px) translateX(-18px) scale(1.12); opacity: 0.6; }
    80% { transform: translateY(-480px) translateX(10px) scale(1.22); opacity: 0.2; }
    100% { transform: translateY(-600px) translateX(-5px) scale(1.3); opacity: 0; }
}

/* Responsive hero banner */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 300px;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .floating-dot {
        box-shadow: 0 0 20px rgba(255,255,255,0.12);
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-description {
        font-size: 1.5rem;
    }
}

/* Header */
.site-header {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0 !important;
    padding-left: 0 !important; /* No left padding on header */
    padding-right: 0 !important;
    margin-left: 0 !important; /* No left margin on header */
    margin-right: 0 !important;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 4px 20px rgba(60, 116, 167, 0.08);
    position: relative;
    width: 100% !important;
    box-sizing: border-box;
    left: 0 !important;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), var(--primary-color), transparent);
    opacity: 0.6;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: 100%;
    padding: 0 !important;
    padding-left: 0 !important; /* No left padding - logo has its own padding */
    margin-left: 0 !important; /* Force to left edge */
    max-width: 100% !important; /* Allow full width */
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
}

.site-branding {
    display: flex !important;
    align-items: center;
    gap: 0 !important;
    min-width: 0;
    flex: 0 0 auto !important;
    margin-left: 0 !important; /* Force to absolute left edge */
    margin-right: auto !important;
    padding-left: 10px !important; /* Exactly 10px padding from left edge */
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    position: relative;
    left: 0 !important;
}

/* Hide any site title that WordPress might add automatically */
.site-branding .site-title,
.site-branding h1:not(.site-title-right-text),
.site-branding .site-description,
.site-branding .custom-logo-link + .site-title-wrapper,
.site-branding .site-title-wrapper {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .site-branding {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

.site-logo-wrapper {
    display: flex !important;
    align-items: center;
    gap: 0;
    min-width: 0;
    flex: 0 1 auto;
    width: auto;
}

.site-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    margin-right: 0.5rem;
}

.site-logo-link:hover {
    transform: scale(1.05);
}

.site-logo {
    width: auto !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    max-width: 200px !important;
    display: block !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 4px 12px rgba(60, 116, 167, 0.4));
    vertical-align: middle;
    transition: all 0.3s ease;
    object-fit: contain;
}

.site-logo-link:hover .site-logo {
    filter: drop-shadow(0 6px 20px rgba(60, 116, 167, 0.6));
    transform: scale(1.05);
}

.site-logo svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

@media (min-width: 768px) {
    .site-logo {
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
    }
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    justify-content: center;
}

.site-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    letter-spacing: -0.02em;
}

.site-title a {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

@media (min-width: 768px) {
    .site-title {
        font-size: 1.5rem;
    }
}

.site-title a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* TechBubbles Rechts */
.site-title-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 0;
}

.site-title-right-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.site-title-right-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-title-right-text a:hover {
    opacity: 0.8;
    text-decoration: none;
}

@media (max-width: 768px) {
    .site-title-right-text {
        font-size: 1.25rem;
    }
}

.site-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: none; /* Hide description in header to keep it clean */
}

@media (min-width: 768px) {
    .site-description {
        display: block;
    }
}

/* Navigation */
.main-navigation {
    flex: 0 0 auto;
    min-width: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    align-items: center;
}

@media (max-width: 768px) {
    .main-navigation ul {
        flex-wrap: wrap;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    text-decoration: none;
}

/* Main Content */
.site-main {
    padding: 0;
    padding-bottom: 3rem;
    min-height: calc(100vh - 300px);
}

.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

/* Posts */
.post {
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(60, 116, 167, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
}

.post:hover::before {
    opacity: 1;
}

.post:last-child {
    border-bottom: none;
}

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

.post-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.post-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(60, 116, 167, 0.4);
}

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

.post-title a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transform: translateX(2px);
}

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

.post-featured-image {
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-color));
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(60, 116, 167, 0.15), rgba(74, 139, 184, 0.15), rgba(94, 163, 209, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.post:hover .post-featured-image::before {
    opacity: 1;
}

.post:hover .post-featured-image {
    box-shadow: var(--shadow-lg);
    border-color: rgba(60, 116, 167, 0.3);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
}

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

.post-content {
    line-height: 1.8;
    font-size: 1rem !important; /* Ensure readable font size */
    color: var(--text-color) !important;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem !important;
}

.post-content h1 {
    font-size: 2.5rem !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h2,
.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: inherit; /* Use default h2/h3 sizes */
}

.post-content h2 {
    font-size: 2rem !important;
}

.post-content h3 {
    font-size: 1.75rem !important;
}

.post-content h4 {
    font-size: 1.5rem !important;
}

.post-content h5 {
    font-size: 1.25rem !important;
}

.post-content h6 {
    font-size: 1rem !important;
}

.post-content code {
    background: linear-gradient(135deg, rgba(60, 116, 167, 0.08), rgba(74, 139, 184, 0.08));
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--primary-color);
    border: 1px solid rgba(60, 116, 167, 0.15);
    font-weight: 500;
}

.post-content pre {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(60, 116, 167, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.post-content pre::before {
    content: '</>';
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.9em;
    border: none;
}

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

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

.post-content a {
    font-weight: 500;
}

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

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

.category-link {
    background: linear-gradient(135deg, rgba(60, 116, 167, 0.1), rgba(74, 139, 184, 0.1));
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(60, 116, 167, 0.2);
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.category-link:hover::before {
    width: 300px;
    height: 300px;
}

.category-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
    color: white;
    text-decoration: none;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(60, 116, 167, 0.4), 0 0 20px rgba(60, 116, 167, 0.2);
    border-color: transparent;
}

/* Sidebar */
.sidebar {
    order: 1;
}

@media (min-width: 768px) {
    .sidebar {
        order: 0;
    }
}

.widget {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    padding: 1.75rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.widget::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(60, 116, 167, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.widget:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(60, 116, 167, 0.25);
    transform: translateY(-2px);
}

.widget:hover::after {
    opacity: 1;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.widget:hover .widget-title::after {
    width: 60px;
}

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

.widget ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
    padding-left: 1rem;
}

.widget ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    font-weight: 700;
}

.widget ul li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.widget ul li:hover {
    padding-left: 1.25rem;
    background: linear-gradient(90deg, rgba(60, 116, 167, 0.05), transparent);
    border-left: 2px solid var(--primary-color);
    margin-left: -0.25rem;
    padding-left: calc(1rem + 0.25rem);
}

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

.widget ul li a {
    color: var(--text-color);
    transition: all 0.2s ease;
    font-weight: 500;
    display: block;
}

.widget ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(2px);
}

/* Hide comments widget - EXTREMELY AGGRESSIVE with all possible selectors */
.widget_recent_comments,
.widget_recent_comments_control,
.widget.widget_recent_comments,
[id*="recent-comments"],
[id*="recent_comments"],
[class*="recent-comments"],
[class*="recent_comments"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    max-height: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

/* Hide navigation menu */
.main-navigation,
#site-navigation,
.site-header nav {
    display: none !important;
}

/* Search Form Styling */
.wp-block-search,
.widget_search form,
.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    position: relative;
}

.wp-block-search__inside-wrapper,
.widget_search form > div {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    flex: 1;
}

.wp-block-search__input,
.widget_search input[type="search"],
.widget_search input[name="s"],
.search-form input[type="search"],
.search-form input[name="s"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wp-block-search__input:focus,
.widget_search input:focus,
.search-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(60, 116, 167, 0.15), 0 0 0 3px rgba(60, 116, 167, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.wp-block-search__input::placeholder,
.widget_search input::placeholder,
.search-form input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.wp-block-search__button,
.widget_search input[type="submit"],
.widget_search button[type="submit"],
.search-form input[type="submit"],
.search-form button[type="submit"] {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(60, 116, 167, 0.25);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 100px;
    text-transform: none;
    letter-spacing: 0;
}

.wp-block-search__button::before,
.widget_search input[type="submit"]::before,
.widget_search button[type="submit"]::before,
.search-form input[type="submit"]::before,
.search-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.wp-block-search__button:hover,
.widget_search input[type="submit"]:hover,
.widget_search button[type="submit"]:hover,
.search-form input[type="submit"]:hover,
.search-form button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    box-shadow: 0 4px 16px rgba(60, 116, 167, 0.4);
    transform: translateY(-2px);
}

.wp-block-search__button:hover::before,
.widget_search input[type="submit"]:hover::before,
.widget_search button[type="submit"]:hover::before,
.search-form input[type="submit"]:hover::before,
.search-form button[type="submit"]:hover::before {
    left: 100%;
}

.wp-block-search__button:active,
.widget_search input[type="submit"]:active,
.widget_search button[type="submit"]:active,
.search-form input[type="submit"]:active,
.search-form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(60, 116, 167, 0.3);
}

.wp-block-search__label,
.widget_search label {
    display: none;
}

/* Image of the Week Widget */
.image-of-the-week-widget {
    margin-top: 1.5rem;
}

.image-of-the-week-wrap {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(60, 116, 167, 0.05), rgba(74, 139, 184, 0.05));
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-of-the-week-wrap:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(60, 116, 167, 0.2);
    transform: translateY(-2px);
}

.image-of-the-week {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.image-of-the-week-wrap:hover .image-of-the-week {
    transform: scale(1.02);
}

.image-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(60, 116, 167, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.image-spinner[aria-hidden="true"][style*="display: none"] {
    display: none !important;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--bg-dark), #1e1e2e);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(60, 116, 167, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), var(--primary-color), transparent);
    opacity: 0.8;
}

.site-footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.site-footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.site-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.site-footer a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(60, 116, 167, 0.35), 0 0 20px rgba(60, 116, 167, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover::after {
    width: 400px;
    height: 400px;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(60, 116, 167, 0.5), 0 0 30px rgba(60, 116, 167, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .site-header {
        padding: 1rem 0;
    }
    
    .main-navigation ul {
        gap: 1rem;
    }
    
    .site-main {
        padding: 2rem 0;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
}

/* WordPress Block Editor Styles - Fix tiny text issue */
.post-content .wp-block,
.post-content [class*="wp-block-"],
.post-content .has-,
.post-content .is- {
    font-size: inherit !important;
}

.post-content .wp-block-paragraph,
.post-content .wp-block-paragraph p {
    font-size: 1rem !important;
    line-height: 1.8 !important;
}

.post-content .wp-block-heading h1,
.post-content h1.wp-block-heading {
    font-size: 2.5rem !important;
}

.post-content .wp-block-heading h2,
.post-content h2.wp-block-heading {
    font-size: 2rem !important;
}

.post-content .wp-block-heading h3,
.post-content h3.wp-block-heading {
    font-size: 1.75rem !important;
}

.post-content .wp-block-heading h4,
.post-content h4.wp-block-heading {
    font-size: 1.5rem !important;
}

.post-content .wp-block-heading h5,
.post-content h5.wp-block-heading {
    font-size: 1.25rem !important;
}

.post-content .wp-block-heading h6,
.post-content h6.wp-block-heading {
    font-size: 1rem !important;
}

/* Ensure all text elements in post content are readable */
.post-content p,
.post-content li,
.post-content td,
.post-content th,
.post-content div:not(.wp-block-code):not(.wp-block-preformatted):not([class*="wp-block-heading"]) {
    font-size: 1rem !important;
    min-font-size: 14px !important;
}

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

/* Print Styles */
@media print {
    .site-header,
    .sidebar,
    .site-footer {
        display: none;
    }
    
    .site-main {
        padding: 0;
    }
}

