/*
Theme Name: SigilStatic
Description: Main stylesheet for SigilStatic theme
Version: 0.1.0
*/

/* ================================
   CSS VARIABLES
   ================================ */
   :root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --text-primary: #e8e6e3;
    --accent-primary: #00ffff;
    --accent-secondary: #ff00ff;
    
    /* Typography - These are set by the customizer CSS */
    /* Fallback defaults only - will be overridden by customizer */
    --font-header: 'Orbitron', sans-serif;
    --font-body: 'Raleway', sans-serif;
}

/* ================================
   BASE STYLES
   ================================ */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
}

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

h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.container {
    /* max-width controlled by customizer - default 1200px removed to allow customizer control */
    margin: 0 auto;
    padding: 0 20px;
}

/* Note: Container width and padding can be overridden by customizer settings */

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

.site-header {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(232, 230, 227, 0.1);
    position: relative;
}

.site-header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

/* Header Branding */
.header-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-branding.header-branding-center {
    justify-content: center;
    flex: 1;
}

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

.site-logo img {
    max-height: 60px;
    width: auto;
    height: auto;
}

.site-branding-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.site-title a {
    color: var(--accent-primary);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #fff;
}

.site-description {
    color: #e8e6e3;
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

/* Header Main Row - for most arrangements */
.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Header Top Row - for menu beneath arrangement */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* Header Right Elements */
.header-right-elements {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Header Search */
.header-search {
    display: flex;
    align-items: center;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    margin: 0;
}

.header-search .search-form-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.header-search .search-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.header-search .search-form-wrapper:hover::before,
.header-search .search-form-wrapper:focus-within::before {
    left: 100%;
}

.header-search .search-form-wrapper:hover,
.header-search .search-form-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.header-search .search-field {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    min-width: 200px;
    outline: none;
    font-family: var(--font-body);
}

.header-search .search-field::placeholder {
    color: rgba(232, 230, 227, 0.5);
    opacity: 1;
}

.header-search .search-submit {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--accent-primary);
    padding: 0.625rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 100%;
}

.header-search .search-submit:hover,
.header-search .search-submit:focus {
    background: rgba(0, 255, 255, 0.15);
    color: #fff;
    outline: none;
}

.header-search .search-submit i {
    font-size: 1rem;
    line-height: 1;
}

/* Header Social */
.header-social {
    display: flex;
    align-items: center;
}

.header-social-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(232, 230, 227, 0.1);
}

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

.main-navigation-center {
    flex: 1;
    justify-content: center;
}

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

.main-navigation a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--accent-primary);
}

/* Arrangement-specific styles */
.header-arrangement-traditional .header-main-row {
    justify-content: space-between;
}

.header-arrangement-logo_next_title .header-branding {
    flex-wrap: nowrap;
}

.header-arrangement-logo_next_title .site-logo {
    margin-right: 1rem;
}

.header-arrangement-menu_middle .header-main-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.header-arrangement-logo_middle .header-main-row {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 2rem;
}

.header-arrangement-logo_middle .header-branding {
    justify-content: center;
}

.header-arrangement-menu_beneath .header-top-row {
    justify-content: space-between;
}

.header-arrangement-menu_beneath .main-navigation {
    width: 100%;
    justify-content: center;
}

.header-arrangement-menu_beneath .main-navigation ul {
    justify-content: center;
}

.header-arrangement-social_bottom .header-main-row {
    justify-content: space-between;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-main-row,
    .header-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-branding {
        width: 100%;
    }
    
    .header-right-elements {
        width: 100%;
        justify-content: space-between;
    }
    
    .header-arrangement-menu_middle .header-main-row,
    .header-arrangement-logo_middle .header-main-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .main-navigation-center {
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .header-search .search-field {
        min-width: 150px;
        width: 100%;
        flex: 1;
    }
    
    .header-search .search-form-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

/* ===========================================
   MAIN CONTENT
   =========================================== */

.site-main {
    padding: 4rem 0;
    min-height: 60vh;
}

article h1 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.entry-content {
    margin-top: 2rem;
}

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

/* Header areas should be full width, outside content-wrapper */
.entry-header,
.project-header {
    width: 100%;
    margin-bottom: 2rem;
}

/* Featured images are inside content-wrapper, so they align with sidebar */
.content-wrapper .post-thumbnail,
.content-wrapper .project-featured-image {
    margin-bottom: 2rem;
}

/* Content wrapper for sidebar layouts - starts below header, aligns with featured image */
.content-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2rem;
}

/* Main content area */
.site-main-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

/* When sidebar is present, adjust content width */
.has-sidebar .site-main-content {
    flex: 1 1 65%; /* Content takes ~65% of space */
}

/* Sidebar styles */
.site-sidebar {
    flex: 0 0 300px; /* Fixed width of 300px */
    max-width: 300px;
    padding: 0 1.5rem; /* Add horizontal padding for margin from edges */
}

/* Sidebar positioning */
.has-sidebar.sidebar-left .content-wrapper {
    flex-direction: row-reverse;
}

.has-sidebar.sidebar-right .content-wrapper {
    flex-direction: row;
}

/* Widget styles */
.site-sidebar .widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(232, 230, 227, 0.03);
    border: 1px solid rgba(232, 230, 227, 0.1);
    border-radius: 4px;
}

.site-sidebar .widget:last-child {
    margin-bottom: 0;
}

.site-sidebar .widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    border-bottom: 1px solid rgba(232, 230, 227, 0.1);
    padding-bottom: 0.5rem;
}

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

.site-sidebar .widget ul li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(232, 230, 227, 0.05);
}

.site-sidebar .widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.site-sidebar .widget a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

/* Sidebar image resizing */
.site-sidebar .widget img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
    border-radius: 4px;
}

.site-sidebar .widget figure {
    margin: 0 0 1rem;
}

.site-sidebar .widget figure img {
    width: 100%;
    height: auto;
}

/* ===========================================
   SLIDE-OUT SIDEBAR
   =========================================== */

/* Slide-out sidebar: hidden by default */
.sidebar-slideout .slideout-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--bg-primary);
    z-index: 9999;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    padding: 2rem 1.5rem;
}

/* Position based on left/right */
.sidebar-slideout.sidebar-left .slideout-sidebar {
    left: 0;
    transform: translateX(-100%);
}

.sidebar-slideout.sidebar-right .slideout-sidebar {
    right: 0;
    transform: translateX(100%);
}

/* Slide-in when open */
.sidebar-slideout .slideout-sidebar.is-open {
    transform: translateX(0);
}

/* Toggle button */
.sidebar-toggle {
    position: fixed;
    top: 50%;
    z-index: 10000;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sidebar-slideout.sidebar-left .sidebar-toggle {
    left: 20px;
    transform: translateY(-50%);
}

.sidebar-slideout.sidebar-right .sidebar-toggle {
    right: 20px;
    transform: translateY(-50%);
}

.sidebar-toggle:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.4);
}

.sidebar-toggle:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.sidebar-toggle .toggle-icon {
    display: block;
    font-size: 1.5rem;
}

/* Close button inside sidebar */
.sidebar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.sidebar-close:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

.sidebar-close:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.sidebar-close .close-icon {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.sidebar-slideout .slideout-sidebar.is-open ~ .sidebar-overlay,
.sidebar-slideout .slideout-sidebar.is-open + .sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

/* When sidebar is open, hide toggle button */
.sidebar-slideout.sidebar-open .sidebar-toggle {
    opacity: 0;
    pointer-events: none;
}

/* Adjust content when sidebar is slide-out (no flex layout needed) */
.sidebar-slideout .content-wrapper {
    display: block;
}

.sidebar-slideout .site-main-content {
    width: 100%;
    max-width: 100%;
}

/* Responsive: Stack sidebar on mobile */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column !important;
        gap: 2rem;
    }
    
    .site-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .has-sidebar .site-main-content {
        flex: 1 1 100%;
    }
    
    /* Slide-out sidebar on mobile */
    .sidebar-slideout .slideout-sidebar {
        width: 85vw;
        max-width: 85vw;
    }
    
    .sidebar-toggle {
        padding: 0.75rem 1rem;
        font-size: 1.25rem;
    }
    
    .sidebar-slideout.sidebar-left .sidebar-toggle {
        left: 10px;
    }
    
    .sidebar-slideout.sidebar-right .sidebar-toggle {
        right: 10px;
    }
}

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

.site-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(232, 230, 227, 0.1);
    text-align: center;
}

.site-info p {
    margin: 0.5rem 0;
    opacity: 0.7;
}

/* ===========================================
   LINKS
   =========================================== */

a {
    color: var(--accent-primary);
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

/* ===========================================
   PROJECT ARCHIVE
   =========================================== */

   .project-archive .page-header {
    /* Note: Alignment controlled by customizer */
    margin-bottom: 4rem;
}

.page-title {
    color: var(--accent-primary);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-description {
    opacity: 0.7;
    font-size: 1.1rem;
}

/* ===========================================
   ARCHIVE GRID BASE STYLES
   =========================================== */

.archive-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

/* Layout-specific display types (flex for list/zigzag) override this */

/* ===========================================
   LAYOUT: ASYMMETRICAL 1 (Original Projects)
   =========================================== */

.layout-asymmetrical-1,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Card size variations - repeating pattern */
.layout-asymmetrical-1 .project-card:nth-child(6n+1),
.layout-asymmetrical-1 .blog-card:nth-child(6n+1),
.projects-grid .project-card:nth-child(6n+1) {
    /* Large featured card */
    grid-column: span 7;
    grid-row: span 2;
}

.layout-asymmetrical-1 .project-card:nth-child(6n+2),
.layout-asymmetrical-1 .blog-card:nth-child(6n+2),
.projects-grid .project-card:nth-child(6n+2) {
    /* Medium card */
    grid-column: span 5;
}

.layout-asymmetrical-1 .project-card:nth-child(6n+3),
.layout-asymmetrical-1 .blog-card:nth-child(6n+3),
.projects-grid .project-card:nth-child(6n+3) {
    /* Medium card */
    grid-column: span 5;
}

.layout-asymmetrical-1 .project-card:nth-child(6n+4),
.layout-asymmetrical-1 .blog-card:nth-child(6n+4),
.projects-grid .project-card:nth-child(6n+4) {
    /* Wide card */
    grid-column: span 8;
}

.layout-asymmetrical-1 .project-card:nth-child(6n+5),
.layout-asymmetrical-1 .blog-card:nth-child(6n+5),
.projects-grid .project-card:nth-child(6n+5) {
    /* Small card */
    grid-column: span 4;
}

.layout-asymmetrical-1 .project-card:nth-child(6n),
.layout-asymmetrical-1 .blog-card:nth-child(6n),
.projects-grid .project-card:nth-child(6n) {
    /* Full width card */
    grid-column: span 12;
}

/* Tablet: Simplify grid */
@media (max-width: 1024px) {
    .layout-asymmetrical-1,
    .projects-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
    }
    
    .layout-asymmetrical-1 .project-card:nth-child(6n+1),
    .layout-asymmetrical-1 .blog-card:nth-child(6n+1),
    .layout-asymmetrical-1 .project-card:nth-child(6n+4),
    .layout-asymmetrical-1 .blog-card:nth-child(6n+4),
    .layout-asymmetrical-1 .project-card:nth-child(6n),
    .layout-asymmetrical-1 .blog-card:nth-child(6n),
    .projects-grid .project-card:nth-child(6n+1),
    .projects-grid .project-card:nth-child(6n+4),
    .projects-grid .project-card:nth-child(6n) {
        grid-column: span 6; /* Full width */
    }
    
    .layout-asymmetrical-1 .project-card:nth-child(6n+2),
    .layout-asymmetrical-1 .blog-card:nth-child(6n+2),
    .layout-asymmetrical-1 .project-card:nth-child(6n+3),
    .layout-asymmetrical-1 .blog-card:nth-child(6n+3),
    .layout-asymmetrical-1 .project-card:nth-child(6n+5),
    .layout-asymmetrical-1 .blog-card:nth-child(6n+5),
    .projects-grid .project-card:nth-child(6n+2),
    .projects-grid .project-card:nth-child(6n+3),
    .projects-grid .project-card:nth-child(6n+5) {
        grid-column: span 3; /* Half width */
    }
}

/* Mobile: Stack everything */
@media (max-width: 768px) {
    .layout-asymmetrical-1,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .layout-asymmetrical-1 .project-card,
    .layout-asymmetrical-1 .blog-card,
    .projects-grid .project-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* Project Card Base Styles */
.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease-out, filter 0.4s ease-out;
}

.project-card:hover {
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.4),
        0 0 30px rgba(0, 255, 255, 0.2),
        0 0 45px rgba(0, 255, 255, 0.1);
    animation: cyanPulse 0.2s ease-in-out infinite;
}

/* Pulsing animation */
@keyframes cyanPulse {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(0, 255, 255, 0.4),
            0 0 30px rgba(0, 255, 255, 0.2),
            0 0 45px rgba(0, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.6),
            0 0 40px rgba(0, 255, 255, 0.3),
            0 0 60px rgba(0, 255, 255, 0.15);
    }
}

.project-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 1.5rem;
}

.project-card .project-title {
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-meta {
    margin-bottom: 1rem;
}

.project-type {
    display: inline-block;
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.project-excerpt {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* ===========================================
   SINGLE PROJECT
   =========================================== */

.single-project .project-header {
    /* Note: Width and alignment are controlled by customizer settings */
    margin-bottom: 2rem;
}

.single-project .project-title {
    color: var(--accent-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-project .project-featured-image {
    margin: 2rem 0;
}

.single-project .project-featured-image img {
    width: 100%;
    height: auto;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.single-project .project-content {
    /* max-width removed - controlled by customizer */
    margin: 3rem auto;
    line-height: 1.8;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(232, 230, 227, 0.1);
}

.project-navigation a {
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.project-navigation a:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

/* ===========================================
   PROJECT METADATA
   =========================================== */

   .project-metadata {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.project-metadata h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-full-width {
    grid-column: 1 / -1;
}

.meta-label {
    color: var(--accent-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.meta-value {
    color: #e8e6e3;
    line-height: 1.6;
}

.meta-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.project-external-link:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.project-external-link .link-icon {
    font-size: 1.1rem;
    opacity: 0.7;
}

.project-external-link .link-text {
    flex: 1;
}

.project-external-link .link-arrow {
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.project-external-link:hover .link-arrow {
    transform: translateX(3px);
    opacity: 1;
}

@media (max-width: 768px) {
    .project-external-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

.external-link:hover {
    opacity: 0.8;
}

/* ===========================================
   OBSCURA VEIL BADGE
   =========================================== */

.obscura-veil-badge {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(0, 255, 255, 0.1));
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
}

.badge-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.badge-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.badge-text strong {
    color: var(--accent-primary);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.badge-text p {
    color: #e8e6e3;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .metadata-grid {
        grid-template-columns: 1fr;
    }
    
    .badge-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Card link badges */
.card-links {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Card link badges - INFO TAGS, not clickable */
.card-links {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-link-badge {
    display: inline-block;
    background: rgba(0, 255, 255, 0.08);
    color: rgba(0, 255, 255, 0.8);
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 255, 0.15);
    opacity: 0.9;
    /* NOT a button - just an info tag */
    cursor: default;
    pointer-events: none; /* Prevents accidental clicks */
}

/* Subtle pulse on parent card hover to show they're contextual */
.project-card:hover .card-link-badge {
    opacity: 1;
    border-color: rgba(0, 255, 255, 0.25);
}

/* ===========================================
   PROJECT CARD META TAGS
   =========================================== */

   .project-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.meta-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Project Type Tag (Film, Photography, etc.) */
.tag-type {
    background: rgba(0, 255, 255, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* Year Tag */
.tag-year {
    background: rgba(232, 230, 227, 0.1);
    color: #e8e6e3;
    border: 1px solid rgba(232, 230, 227, 0.2);
}

/* Role Tag */
.tag-role {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Hover effects on parent card */
.project-card:hover .tag-type {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
}

.project-card:hover .tag-year {
    background: rgba(232, 230, 227, 0.15);
    border-color: rgba(232, 230, 227, 0.3);
}

.project-card:hover .tag-role {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

/* ===========================================
   OBSCURA VEIL CARD BADGE
   =========================================== */

.card-obscura-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(0, 255, 255, 0.15));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.obscura-icon {
    font-size: 1rem;
}

.obscura-text {
    color: rgba(138, 43, 226, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card:hover .card-obscura-badge {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 255, 255, 0.2));
    border-color: rgba(138, 43, 226, 0.5);
}

.project-card:hover .obscura-text {
    color: rgba(138, 43, 226, 1);
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */

@media (max-width: 768px) {
    .project-meta-tags {
        gap: 0.4rem;
    }
    
    .meta-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .card-obscura-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
}

/* ==========================================================================
   BLOG STYLES
   ========================================================================== */

/* Archive Page Header */
/* Note: Width and alignment are controlled by customizer settings */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

/* Single Page/Post Headers */
/* Note: Width and alignment are controlled by customizer settings */
.static-page .page-header,
article .page-header {
    /* Default styles - customizer will override */
}

.page-title {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.archive-description {
    color: #e8e6e3;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* ===========================================
   LAYOUT: ASYMMETRICAL 2 (Original Blog)
   =========================================== */

.layout-asymmetrical-2,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Subtle size variations - repeating pattern every 5 cards */
.layout-asymmetrical-2 .blog-card:nth-child(5n+1),
.layout-asymmetrical-2 .project-card:nth-child(5n+1),
.blog-grid .blog-card:nth-child(5n+1) {
    /* Featured post - wider */
    grid-column: span 8;
}

.layout-asymmetrical-2 .blog-card:nth-child(5n+2),
.layout-asymmetrical-2 .project-card:nth-child(5n+2),
.blog-grid .blog-card:nth-child(5n+2) {
    /* Standard */
    grid-column: span 6;
}

.layout-asymmetrical-2 .blog-card:nth-child(5n+3),
.layout-asymmetrical-2 .project-card:nth-child(5n+3),
.blog-grid .blog-card:nth-child(5n+3) {
    /* Standard */
    grid-column: span 6;
}

.layout-asymmetrical-2 .blog-card:nth-child(5n+4),
.layout-asymmetrical-2 .project-card:nth-child(5n+4),
.blog-grid .blog-card:nth-child(5n+4) {
    /* Smaller */
    grid-column: span 4;
}

.layout-asymmetrical-2 .blog-card:nth-child(5n),
.layout-asymmetrical-2 .project-card:nth-child(5n),
.blog-grid .blog-card:nth-child(5n) {
    /* Full width for emphasis */
    grid-column: span 12;
}

/* Tablet: Even more subtle */
@media (max-width: 1024px) {
    .layout-asymmetrical-2,
    .blog-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
    }
    
    .layout-asymmetrical-2 .blog-card:nth-child(5n+1),
    .layout-asymmetrical-2 .project-card:nth-child(5n+1),
    .layout-asymmetrical-2 .blog-card:nth-child(5n),
    .layout-asymmetrical-2 .project-card:nth-child(5n),
    .blog-grid .blog-card:nth-child(5n+1),
    .blog-grid .blog-card:nth-child(5n) {
        grid-column: span 6; /* Full width */
    }
    
    .layout-asymmetrical-2 .blog-card:nth-child(5n+2),
    .layout-asymmetrical-2 .project-card:nth-child(5n+2),
    .layout-asymmetrical-2 .blog-card:nth-child(5n+3),
    .layout-asymmetrical-2 .project-card:nth-child(5n+3),
    .layout-asymmetrical-2 .blog-card:nth-child(5n+4),
    .layout-asymmetrical-2 .project-card:nth-child(5n+4),
    .blog-grid .blog-card:nth-child(5n+2),
    .blog-grid .blog-card:nth-child(5n+3),
    .blog-grid .blog-card:nth-child(5n+4) {
        grid-column: span 3; /* Half width */
    }
}

/* Mobile: Stack all */
@media (max-width: 768px) {
    .layout-asymmetrical-2,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .layout-asymmetrical-2 .blog-card,
    .layout-asymmetrical-2 .project-card,
    .blog-grid .blog-card {
        grid-column: span 1 !important;
    }
}

/* ===========================================
   LAYOUT: STANDARD CARDS
   =========================================== */

.layout-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 1200px) {
    .layout-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .layout-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .layout-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .layout-cards {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   LAYOUT: MASONRY
   =========================================== */

.layout-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 10px;
    gap: 2rem;
    margin-top: 3rem;
}

/* Fallback for browsers without masonry support */
@supports not (grid-template-rows: masonry) {
    .layout-masonry {
        grid-auto-rows: auto;
    }
    
    .layout-masonry .project-card,
    .layout-masonry .blog-card {
        height: auto;
    }
}

/* Modern browsers with masonry support */
@supports (grid-template-rows: masonry) {
    .layout-masonry {
        grid-template-rows: masonry;
    }
}

@media (min-width: 1200px) {
    .layout-masonry {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .layout-masonry {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .layout-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .layout-masonry {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   LAYOUT: LIST
   =========================================== */

.layout-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.layout-list .project-card,
.layout-list .blog-card {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease-out, filter 0.4s ease-out;
}

.layout-list .project-thumbnail,
.layout-list .post-thumbnail-link {
    flex: 0 0 300px;
    min-width: 0;
}

.layout-list .project-thumbnail img,
.layout-list .post-thumbnail-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-list .project-info,
.layout-list .post-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .layout-list .project-card,
    .layout-list .blog-card {
        flex-direction: column;
    }
    
    .layout-list .project-thumbnail,
    .layout-list .post-thumbnail-link {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .layout-list .project-thumbnail img,
    .layout-list .post-thumbnail-link img {
        height: 250px;
    }
}

/* ===========================================
   LAYOUT: MAGAZINE
   =========================================== */

.layout-magazine {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Hero card - first post */
.layout-magazine .project-card:first-child,
.layout-magazine .blog-card:first-child {
    grid-column: span 12;
    grid-row: span 2;
}

/* Remaining cards in grid */
.layout-magazine .project-card:not(:first-child),
.layout-magazine .blog-card:not(:first-child) {
    grid-column: span 4;
}

@media (max-width: 1024px) {
    .layout-magazine {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .layout-magazine .project-card:first-child,
    .layout-magazine .blog-card:first-child {
        grid-column: span 6;
        grid-row: span 1;
    }
    
    .layout-magazine .project-card:not(:first-child),
    .layout-magazine .blog-card:not(:first-child) {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .layout-magazine {
        grid-template-columns: 1fr;
    }
    
    .layout-magazine .project-card,
    .layout-magazine .blog-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* ===========================================
   LAYOUT: MAGNETIC GRID
   =========================================== */

.layout-magnetic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.layout-magnetic .project-card,
.layout-magnetic .blog-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Varying sizes with slight offsets */
.layout-magnetic .project-card:nth-child(4n+1),
.layout-magnetic .blog-card:nth-child(4n+1) {
    grid-column: span 5;
    transform: translate(2px, -3px) rotate(0.5deg);
}

.layout-magnetic .project-card:nth-child(4n+2),
.layout-magnetic .blog-card:nth-child(4n+2) {
    grid-column: span 4;
    transform: translate(-2px, 2px) rotate(-0.3deg);
}

.layout-magnetic .project-card:nth-child(4n+3),
.layout-magnetic .blog-card:nth-child(4n+3) {
    grid-column: span 6;
    transform: translate(1px, 1px) rotate(0.2deg);
}

.layout-magnetic .project-card:nth-child(4n),
.layout-magnetic .blog-card:nth-child(4n) {
    grid-column: span 3;
    transform: translate(-1px, -2px) rotate(-0.4deg);
}

.layout-magnetic .project-card:hover,
.layout-magnetic .blog-card:hover {
    transform: translate(0, 0) rotate(0deg) scale(1.02);
    z-index: 10;
}

@media (max-width: 1024px) {
    .layout-magnetic {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .layout-magnetic .project-card,
    .layout-magnetic .blog-card {
        grid-column: span 3;
        transform: none;
    }
    
    .layout-magnetic .project-card:hover,
    .layout-magnetic .blog-card:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 768px) {
    .layout-magnetic {
        grid-template-columns: 1fr;
    }
    
    .layout-magnetic .project-card,
    .layout-magnetic .blog-card {
        grid-column: span 1 !important;
        transform: none !important;
    }
}

/* ===========================================
   LAYOUT: ZIGZAG
   =========================================== */

.layout-zigzag {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.layout-zigzag .project-card,
.layout-zigzag .blog-card {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease-out;
}

/* Alternate left/right alignment */
.layout-zigzag .project-card:nth-child(odd),
.layout-zigzag .blog-card:nth-child(odd) {
    flex-direction: row;
    margin-right: 10%;
}

.layout-zigzag .project-card:nth-child(even),
.layout-zigzag .blog-card:nth-child(even) {
    flex-direction: row-reverse;
    margin-left: 10%;
}

.layout-zigzag .project-thumbnail,
.layout-zigzag .post-thumbnail-link {
    flex: 0 0 40%;
    min-width: 0;
}

.layout-zigzag .project-thumbnail img,
.layout-zigzag .post-thumbnail-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-zigzag .project-info,
.layout-zigzag .post-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .layout-zigzag .project-card,
    .layout-zigzag .blog-card {
        flex-direction: column !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .layout-zigzag .project-thumbnail,
    .layout-zigzag .post-thumbnail-link {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .layout-zigzag .project-thumbnail img,
    .layout-zigzag .post-thumbnail-link img {
        height: 250px;
    }
}

/* ===========================================
   LAYOUT: STAGGERED BRICK
   =========================================== */

.layout-staggered {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Staggered pattern - offset rows */
.layout-staggered .project-card:nth-child(odd),
.layout-staggered .blog-card:nth-child(odd) {
    grid-column: span 5;
}

.layout-staggered .project-card:nth-child(even),
.layout-staggered .blog-card:nth-child(even) {
    grid-column: span 5;
    grid-column-start: 5;
}

/* Every 4th card full width for rhythm */
.layout-staggered .project-card:nth-child(4n),
.layout-staggered .blog-card:nth-child(4n) {
    grid-column: span 12;
    grid-column-start: 1;
}

@media (max-width: 1024px) {
    .layout-staggered {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .layout-staggered .project-card:nth-child(odd),
    .layout-staggered .blog-card:nth-child(odd) {
        grid-column: span 3;
    }
    
    .layout-staggered .project-card:nth-child(even),
    .layout-staggered .blog-card:nth-child(even) {
        grid-column: span 3;
        grid-column-start: 4;
    }
    
    .layout-staggered .project-card:nth-child(4n),
    .layout-staggered .blog-card:nth-child(4n) {
        grid-column: span 6;
        grid-column-start: 1;
    }
}

@media (max-width: 768px) {
    .layout-staggered {
        grid-template-columns: 1fr;
    }
    
    .layout-staggered .project-card,
    .layout-staggered .blog-card {
        grid-column: span 1 !important;
        grid-column-start: 1 !important;
    }
}

/* ===========================================
   CARD STYLES (Shared across layouts)
   =========================================== */

/* Blog Card Styles */
.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease-out, filter 0.4s ease-out;
}

.blog-card:hover {
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.25),
        0 0 20px rgba(0, 255, 255, 0.12),
        0 0 30px rgba(0, 255, 255, 0.06);
    animation: cyanPulseSubtle 3s ease-in-out infinite;
}

/* Slower, more subtle pulse for blog cards */
@keyframes cyanPulseSubtle {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(0, 255, 255, 0.25),
            0 0 20px rgba(0, 255, 255, 0.12),
            0 0 30px rgba(0, 255, 255, 0.06);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(0, 255, 255, 0.35),
            0 0 25px rgba(0, 255, 255, 0.18),
            0 0 40px rgba(0, 255, 255, 0.09);
    }
}
/* Subtle chromatic entrance for blog cards */
.blog-card.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(2px) drop-shadow(2px 0 0 var(--accent-primary)) drop-shadow(-2px 0 0 var(--accent-secondary));
    transition: opacity 0.7s ease-out, transform 0.7s ease-out, filter 0.7s ease-out;
}

.blog-card.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    animation: glitchResolveSubtle 0.5s ease-out;
}

/* Subtle glitch animation for blog */
@keyframes glitchResolveSubtle {
    0% {
        filter: drop-shadow(3px 0 0 var(--accent-primary)) drop-shadow(-3px 0 0 var(--accent-secondary));
        transform: translateX(-2px);
    }
    25% {
        filter: drop-shadow(-2px 0 0 var(--accent-primary)) drop-shadow(2px 0 0 var(--accent-secondary));
        transform: translateX(2px);
    }
    50% {
        filter: drop-shadow(1px 0 0 var(--accent-primary)) drop-shadow(-1px 0 0 var(--accent-secondary));
        transform: translateX(-1px);
    }
    100% {
        filter: none;
        transform: translateX(0);
    }
}

/* Featured Image in Card */
.post-thumbnail-link {
    display: block;
    overflow: hidden;
}

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

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

/* Post Content Area */
.blog-card .post-content {
    padding: 1.5rem;
}

/* Meta Tags */
.post-meta-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.meta-date {
    background: rgba(128, 128, 128, 0.2);
    color: #999;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

.meta-category {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* Post Title */
.blog-card .entry-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card .entry-title a {
    color: #e8e6e3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card .entry-title a:hover {
    color: var(--accent-primary);
}

/* Excerpt */
.entry-excerpt {
    color: rgba(232, 230, 227, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.entry-excerpt p {
    margin: 0;
}

/* Read More Link */
.read-more {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.read-more:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Tag Badges */
.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tag-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(232, 230, 227, 0.6);
    font-size: 0.7rem;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid rgba(0, 255, 255, 0.2);
}

.pagination a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts h1 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.no-posts p {
    color: rgba(232, 230, 227, 0.6);
    font-size: 1.1rem;
}

/* ===========================================
   SEARCH RESULTS
   =========================================== */

/* Search Header */
.search-query {
    color: var(--accent-primary);
    font-weight: 700;
}

.search-results-count {
    color: rgba(232, 230, 227, 0.6);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Search Results List */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

/* Search Result Card */
.search-result-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-result-card:hover {
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.25),
        0 0 20px rgba(0, 255, 255, 0.12),
        0 0 30px rgba(0, 255, 255, 0.06);
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.search-result-link {
    display: flex;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Search Result Thumbnail */
.search-result-thumbnail {
    flex: 0 0 200px;
    overflow: hidden;
    border-radius: 4px;
}

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

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

/* Search Result Content */
.search-result-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Search Result Meta */
.search-result-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-result-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 255, 255, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
}

.search-result-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(128, 128, 128, 0.2);
    color: #999;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 4px;
}

/* Search Result Title */
.search-result-title {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.3;
    color: #e8e6e3;
    transition: color 0.3s ease;
}

.search-result-card:hover .search-result-title {
    color: var(--accent-primary);
}

/* Search Result Categories */
.search-result-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-result-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-result-category:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Search Result Excerpt */
.search-result-excerpt {
    color: rgba(232, 230, 227, 0.8);
    line-height: 1.6;
    margin: 0;
}

.search-result-excerpt p {
    margin: 0;
}

/* Search Result More */
.search-result-more {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.search-result-card:hover .search-result-more {
    transform: translateX(5px);
}

/* No Search Results */
.no-search-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-search-results .page-title {
    color: var(--accent-primary);
    margin-bottom: 2rem;
}

.search-suggestions {
    max-width: 600px;
    margin: 0 auto;
}

.search-suggestions p {
    color: rgba(232, 230, 227, 0.8);
    margin-bottom: 1rem;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.search-suggestions li {
    color: rgba(232, 230, 227, 0.7);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.search-suggestions li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.search-suggestions .search-form {
    margin-top: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive: Stack search results on mobile */
@media (max-width: 768px) {
    .search-result-link {
        flex-direction: column;
        gap: 0;
    }
    
    .search-result-thumbnail {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .search-result-thumbnail img {
        height: 200px;
    }
    
    .search-result-content {
        padding: 1.25rem;
    }
}

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

/* Single Post Container */
/* Note: Max-width is controlled by customizer settings */
article.post,
article[class*="post-"] {
    /* max-width removed - controlled by customizer */
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Post Header */
/* Note: Width and alignment are controlled by customizer settings */
.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.entry-title {
    font-size: 2.5rem;
    color: #e8e6e3;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Post Meta (Date, Categories) */
.entry-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(232, 230, 227, 0.6);
}

.entry-meta time {
    color: var(--accent-primary);
}

.cat-links a {
    color: var(--accent-primary);
    text-decoration: none;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.cat-links a:hover {
    color: #fff;
}

/* Featured Image (Single Post) */
.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.entry-content {
    color: #e8e6e3;
    line-height: 1.8;
    font-size: 1.1rem;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--accent-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h2 {
    font-size: 2rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

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

.entry-content a:hover {
    color: #fff;
}

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

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

.entry-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(232, 230, 227, 0.8);
}

/* Post Footer */
.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 255, 255, 0.2);
}

.tags-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.tags-links strong {
    color: var(--accent-primary);
}

.tags-links a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.tags-links a:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--accent-primary);
}

/* Post Navigation (Previous/Next) */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid rgba(0, 255, 255, 0.2);
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.post-navigation a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: #fff;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-next {
        text-align: left;
    }
}

/* ==========================================================================
   404 ERROR PAGE
   ========================================================================== */

   .error-404-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem;
    text-align: center;
}

/* Error Header */
.error-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.error-code {
    font-size: 8rem;
    color: var(--accent-primary);
    margin: 0;
    line-height: 1;
    font-weight: 900;
    text-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        0 0 40px rgba(0, 255, 255, 0.3);
    letter-spacing: 0.1em;
}

.error-title {
    font-size: 2.5rem;
    color: #e8e6e3;
    margin: 1rem 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.error-message {
    font-size: 1.2rem;
    color: rgba(232, 230, 227, 0.7);
    margin: 1rem 0;
    font-style: italic;
}

/* Search Section */
.error-search {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
}

.error-search h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.error-search .search-form {
    max-width: 500px;
    margin: 0 auto;
}

.error-search input[type="search"] {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    color: #e8e6e3;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.error-search input[type="search"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.error-search input[type="submit"] {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--accent-primary);
    border-radius: 4px;
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-search input[type="submit"]:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Helpful Links */
.error-links {
    margin: 3rem 0;
    text-align: left;
}

.error-links h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.error-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.error-links li {
    margin: 0;
}

.error-links a {
    display: block;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    color: #e8e6e3;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

.error-links a:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
}

/* Recent Posts */
.error-recent-posts {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
}

.error-recent-posts h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.error-recent-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-recent-posts li {
    margin-bottom: 1rem;
}

.error-recent-posts a {
    color: #e8e6e3;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.5rem 0;
}

.error-recent-posts a:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.error-recent-posts a::before {
    content: "→ ";
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .error-code {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 1.8rem;
    }
    
    .error-links ul {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   STATIC PAGES (page.php)
   ========================================================================== */

   .static-page {
    /* max-width removed - controlled by customizer */
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* Page Header */
.static-page .page-header {
    /* Note: Width and alignment are controlled by customizer settings */
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.static-page .page-title {
    font-size: 3rem;
    color: var(--accent-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* Page Content */
.page-content {
    color: #e8e6e3;
    line-height: 1.8;
    font-size: 1.1rem;
}

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

.page-content h2 {
    color: var(--accent-primary);
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-content h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.page-content h4 {
    color: rgba(0, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: #fff;
}

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

.page-content li {
    margin-bottom: 0.75rem;
}

.page-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    background: rgba(0, 255, 255, 0.05);
    font-style: italic;
    color: rgba(232, 230, 227, 0.9);
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Page Links (for multi-page content) */
.page-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 255, 255, 0.2);
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    color: var(--accent-primary);
    text-decoration: none;
    transition: all;
}

/* ================================
   BACKGROUND SIGIL ANIMATIONS
   ================================ */

/* Very slow vertical float */
/* ================================
   SCROLL-TRIGGERED ANIMATIONS
   ================================ */

/* Elements with scroll animations start hidden */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px) translateX(-5px) rotate(2deg);
    filter: blur(5px) drop-shadow(4px 0 0 var(--accent-primary)) drop-shadow(-4px 0 0 var(--accent-secondary));
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0deg);
    filter: blur(0);
    animation: glitchResolveArcane 1.5s ease-out;
}

@keyframes glitchResolveArcane {
    0% {
        filter: drop-shadow(6px 0 0 var(--accent-primary)) drop-shadow(-6px 0 0 var(--accent-secondary)) hue-rotate(180deg);
        transform: translateX(-4px);
    }
    15% {
        filter: drop-shadow(-5px 0 0 var(--accent-primary)) drop-shadow(5px 0 0 var(--accent-secondary)) hue-rotate(90deg);
        transform: translateX(4px);
    }
    30% {
        filter: drop-shadow(3px 0 0 var(--accent-primary)) drop-shadow(-3px 0 0 var(--accent-secondary)) hue-rotate(45deg);
        transform: translateX(-2px);
    }
    50% {
        filter: drop-shadow(-2px 0 0 var(--accent-primary)) drop-shadow(2px 0 0 var(--accent-secondary)) hue-rotate(0deg);
        transform: translateX(2px);
    }
    75% {
        filter: drop-shadow(1px 0 0 var(--accent-primary)) drop-shadow(-1px 0 0 var(--accent-secondary));
        transform: translateX(-1px);
    }
    100% {
        filter: none;
        transform: translateX(0);
    }
}

/* Blur resolution effect */
.scroll-resolve {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: opacity 1s ease-out, filter 1s ease-out, transform 1s ease-out;
}

.scroll-resolve.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Glitch entrance effect */
.scroll-glitch {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-glitch.visible {
    opacity: 1;
    transform: translateX(0);
    animation: glitchOnce 0.3s ease-out;
}

@keyframes glitchOnce {
    0% {
        filter: drop-shadow(2px 0 0 var(--accent-primary)) drop-shadow(-2px 0 0 var(--accent-secondary));
        transform: translateX(-3px);
    }
    25% {
        filter: drop-shadow(-2px 0 0 var(--accent-primary)) drop-shadow(2px 0 0 var(--accent-secondary));
        transform: translateX(3px);
    }
    50% {
        filter: drop-shadow(1px 0 0 var(--accent-primary)) drop-shadow(-1px 0 0 var(--accent-secondary));
        transform: translateX(-1px);
    }
    100% {
        filter: none;
        transform: translateX(0);
    }
}

/* Stagger delay for multiple elements */
.scroll-animate:nth-child(1) { transition-delay: 0s; }
.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.scroll-animate:nth-child(4) { transition-delay: 0.3s; }
.scroll-animate:nth-child(5) { transition-delay: 0.4s; }

/**
 * Contact Form Styles - Arcanotech Aesthetic
 * Add this to your main.css file
 */

/* ===================================
   CONTACT PAGE & FORM
   =================================== */

   .contact-page {
    /* max-width removed - controlled by customizer */
    margin: 0 auto;
    padding: 2rem 1rem;
}

.contact-page .entry-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-page .entry-title {
    font-size: 3rem;
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.contact-form-wrapper {
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid var(--accent-primary);
    padding: 3rem;
    position: relative;
    box-shadow: 
        inset 0 0 50px rgba(0, 255, 255, 0.05),
        0 0 20px rgba(0, 255, 255, 0.2);
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    opacity: 0.1;
    z-index: -1;
    filter: blur(10px);
}

/* Form Fields */
.form-field {
    margin-bottom: 2rem;
    position: relative;
}

.form-field label {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #e8e6e3;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.field-label {
    color: var(--accent-primary);
    font-weight: bold;
}

.field-required {
    color: var(--accent-secondary);
}

.field-code {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: rgba(0, 255, 255, 0.6);
    display: block;
    margin-top: 0.5rem;
    margin-left: 0.25rem;
    font-style: italic;
}

/* Input & Textarea Styles */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="number"],
.form-field textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(20, 20, 20, 0.9); /* Darker, more opaque */
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #e8e6e3; /* Cream text */
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Prevent browser autofill white background */
.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus,
.form-field textarea:-webkit-autofill,
.form-field textarea:-webkit-autofill:hover,
.form-field textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #e8e6e3;
    -webkit-box-shadow: 0 0 0px 1000px rgba(20, 20, 20, 0.9) inset;
    transition: background-color 5000s ease-in-out 0s;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(232, 230, 227, 0.3);
    font-style: italic;
}

/* Focus States - Chromatic Aberration */
.form-field input:focus,
.form-field input[type="number"]:focus,
.form-field textarea:focus {
    outline: none;
    background: rgba(10, 10, 10, 0.95); /* Even darker on focus */
    border-color: var(--accent-primary);
    box-shadow: 
        2px 0 0 rgba(0, 255, 255, 0.5),
        -2px 0 0 rgba(255, 0, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3);
}

/* Textarea specific */
.form-field textarea {
    resize: vertical;
    min-height: 150px;
}

/* Honeypot - Hidden from users, visible to bots */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Captcha Field */
.captcha-field {
    background: rgba(0, 255, 255, 0.05);
    border: 1px dashed rgba(0, 255, 255, 0.3);
    padding: 1.5rem;
    border-radius: 4px;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.captcha-question {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--accent-primary);
    padding: 0.75rem 1.25rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    min-width: 80px;
    text-align: center;
    letter-spacing: 2px;
}

.captcha-equals {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: bold;
}

.captcha-field input[type="number"] {
    width: auto;
    min-width: 80px;
    max-width: 120px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0.75rem 1rem;
}

.captcha-refresh {
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: var(--accent-primary);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
    min-width: 40px;
    height: 40px;
}

.captcha-refresh:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transform: rotate(90deg);
}

.captcha-refresh:active {
    transform: rotate(90deg) scale(0.95);
}

.captcha-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.captcha-refresh svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Submit Button */
.form-submit {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.submit-button {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    min-width: 280px;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-button:hover::before {
    width: 300px;
    height: 300px;
}

.submit-button:hover {
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.6),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-text,
.button-code {
    position: relative;
    z-index: 1;
    display: block;
}

.button-code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* Loading Indicator */
.submit-loading {
    display: none;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.loading-sigil {
    width: 30px;
    height: 30px;
    color: var(--accent-primary);
    animation: sigilSpin 2s linear infinite;
}

@keyframes sigilSpin {
    0% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
    }
    100% {
        transform: rotate(360deg);
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
    }
}

/* Form Messages */
.form-messages {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    border: 2px solid;
    font-family: 'Courier New', monospace;
    position: relative;
    animation: messageSlideIn 0.4s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-messages.success {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
}

.form-messages.error {
    background: rgba(255, 0, 100, 0.1);
    border-color: #ff0064;
    color: #ff0064;
}

.message-content {
    line-height: 1.6;
}

/* Glitch Effect on Error Messages */
.form-messages.error {
    animation: messageGlitch 0.3s ease-in-out 3;
}

@keyframes messageGlitch {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-2px);
    }
    40% {
        transform: translateX(2px);
    }
    60% {
        transform: translateX(-2px);
    }
    80% {
        transform: translateX(2px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-page .entry-title {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .submit-button {
        width: 100%;
        min-width: auto;
        padding: 1rem 2rem;
    }

    .form-submit {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .submit-loading {
        justify-content: center;
    }
    
    .field-code {
        font-size: 0.65rem;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .submit-button::before,
    .loading-sigil,
    .form-messages {
        animation: none !important;
    }
    
    .submit-button:hover {
        transform: none;
    }
}

/* ===========================================
   COMMENTS STYLES
   =========================================== */

/* Comments Area */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(0, 255, 255, 0.2);
}

/* Comments Title */
.comments-title {
    font-family: var(--font-header);
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    counter-reset: none;
}

.comment-list .comment-list {
    margin-left: 3rem;
    margin-top: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.comment-list li {
    list-style: none;
    counter-increment: none;
}

/* Individual Comment */
.comment-item {
    margin-bottom: 2rem;
    padding: 0;
}

.comment-body {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.comment-body:hover {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

/* Nested Comments */
.comment-list .comment-item .comment-item {
    margin-left: 2rem;
    border-left: 2px solid rgba(0, 255, 255, 0.2);
    padding-left: 1.5rem;
}

/* Comment Meta */
.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

/* Comment Author */
.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-avatar {
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 255, 0.3);
    padding: 2px;
}

.comment-author-name {
    font-family: var(--font-header);
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-style: normal;
}

.comment-author-name a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-author-name a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.comment-author-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 3px;
    margin-left: 0.5rem;
}

/* Comment Metadata */
.comment-metadata {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(0, 255, 255, 0.7);
}

.comment-time {
    color: rgba(0, 255, 255, 0.7);
    text-decoration: none;
}

.comment-time:hover {
    color: var(--accent-primary);
}

.edit-link {
    margin-left: 0.5rem;
}

.edit-link a {
    color: rgba(0, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.edit-link a:hover {
    color: var(--accent-primary);
}

/* Comment Content */
.comment-content {
    color: #e8e6e3;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

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

.comment-content a:hover {
    color: #fff;
}

/* Comment Actions */
.comment-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.comment-actions .reply a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--accent-primary);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.comment-actions .reply a:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* No Comments Message */
.no-comments {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(0, 255, 255, 0.7);
    font-family: 'Courier New', monospace;
    text-align: center;
}

/* Comment Reply Title */
.comment-reply-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.cancel-reply {
    margin-left: 1rem;
}

.cancel-reply a {
    color: rgba(0, 255, 255, 0.6);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.cancel-reply a:hover {
    color: var(--accent-primary);
}

/* Comment Form Wrapper */
.comment-form-wrapper {
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid var(--accent-primary);
    padding: 3rem;
    position: relative;
    box-shadow: 
        inset 0 0 50px rgba(0, 255, 255, 0.05),
        0 0 20px rgba(0, 255, 255, 0.2);
    margin-top: 2rem;
}

.comment-form-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    opacity: 0.1;
    z-index: -1;
    filter: blur(10px);
}

/* Logged-in User Display */
.comment-form-logged-in {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
}

.logged-in-user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logged-in-avatar {
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 255, 0.3);
    padding: 2px;
    flex-shrink: 0;
}

.logged-in-user-details {
    flex: 1;
    min-width: 0;
}

.logged-in-user-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.logged-in-user-name .field-code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(0, 255, 255, 0.6);
    font-style: italic;
    display: inline;
    margin: 0;
}

.logged-in-user-name .user-name {
    font-family: var(--font-header);
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logged-in-user-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: rgba(0, 255, 255, 0.7);
    white-space: nowrap;
    flex-wrap: nowrap;
}

.logged-in-user-email .field-code {
    margin-right: 0.25rem;
}

.logged-in-user-email .field-code {
    font-size: 0.75rem;
    color: rgba(0, 255, 255, 0.6);
    font-style: italic;
    display: inline;
    margin: 0;
}

.logged-in-user-email .user-email {
    color: rgba(0, 255, 255, 0.8);
}

/* Logged-in User Action Buttons */
.logged-in-user-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
}

.user-action-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--accent-primary);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.user-action-button:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.user-action-button .button-text {
    color: var(--accent-primary);
}

/* Required Fields Notice */
.comment-notes {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 4px;
}

.comment-notes .field-code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(0, 255, 255, 0.7);
    font-style: italic;
    display: inline;
    margin: 0;
}

/* Comment Form Fields */
.comment-form-wrapper .form-field {
    margin-bottom: 2rem;
    position: relative;
}

.comment-form-wrapper .form-field label {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #e8e6e3;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comment-form-wrapper .field-label {
    color: var(--accent-primary);
    font-weight: bold;
}

.comment-form-wrapper .field-required {
    color: var(--accent-secondary);
}

.comment-form-wrapper .field-code {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: rgba(0, 255, 255, 0.6);
    display: block;
    margin-top: 0.5rem;
    margin-left: 0.25rem;
    font-style: italic;
}

/* Comment Form Inputs */
.comment-form-wrapper input[type="text"],
.comment-form-wrapper input[type="email"],
.comment-form-wrapper input[type="url"],
.comment-form-wrapper textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #e8e6e3;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Prevent browser autofill white background */
.comment-form-wrapper input:-webkit-autofill,
.comment-form-wrapper input:-webkit-autofill:hover,
.comment-form-wrapper input:-webkit-autofill:focus,
.comment-form-wrapper textarea:-webkit-autofill,
.comment-form-wrapper textarea:-webkit-autofill:hover,
.comment-form-wrapper textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #e8e6e3;
    -webkit-box-shadow: 0 0 0px 1000px rgba(20, 20, 20, 0.9) inset;
    transition: background-color 5000s ease-in-out 0s;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.comment-form-wrapper input::placeholder,
.comment-form-wrapper textarea::placeholder {
    color: rgba(232, 230, 227, 0.3);
    font-style: italic;
}

/* Focus States - Chromatic Aberration */
.comment-form-wrapper input:focus,
.comment-form-wrapper textarea:focus {
    outline: none;
    background: rgba(10, 10, 10, 0.95);
    border-color: var(--accent-primary);
    box-shadow: 
        2px 0 0 rgba(0, 255, 255, 0.5),
        -2px 0 0 rgba(255, 0, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3);
}

/* Textarea specific */
.comment-form-wrapper textarea {
    resize: vertical;
    min-height: 150px;
}

/* Comment Form Captcha */
.comment-form-captcha {
    margin-bottom: 2rem;
    position: relative;
}

.captcha-challenge {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 4px;
}

.captcha-challenge .field-code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(0, 255, 255, 0.8);
    font-style: normal;
    display: block;
    margin: 0;
    font-weight: 600;
}

.comment-form-captcha input[type="text"] {
    width: 150px;
    padding: 1rem 1.25rem;
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #e8e6e3;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.comment-form-captcha input[type="text"]:focus {
    outline: none;
    background: rgba(10, 10, 10, 0.95);
    border-color: var(--accent-primary);
    box-shadow: 
        2px 0 0 rgba(0, 255, 255, 0.5),
        -2px 0 0 rgba(255, 0, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3);
}

.comment-form-captcha input[type="text"]::placeholder {
    color: rgba(232, 230, 227, 0.3);
    font-style: italic;
}

/* Comment Form Submit Button */
.comment-form-wrapper .form-submit {
    margin-top: 2.5rem;
}

.comment-form-wrapper .submit-button {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    min-width: 280px;
}

.comment-form-wrapper .submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.comment-form-wrapper .submit-button:hover::before {
    width: 300px;
    height: 300px;
}

.comment-form-wrapper .submit-button:hover {
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.6),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.comment-form-wrapper .submit-button:active {
    transform: translateY(0);
}

.comment-form-wrapper .button-text,
.comment-form-wrapper .button-code {
    position: relative;
    z-index: 1;
    display: block;
}

.comment-form-wrapper .button-code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.comment-navigation a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.comment-navigation a:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comments-title {
        font-size: 1.5rem;
    }

    .comment-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .comment-form-wrapper .submit-button {
        width: 100%;
        min-width: auto;
        padding: 1rem 2rem;
    }

    .comment-form-wrapper .field-code {
        font-size: 0.65rem;
    }

    .comment-list .comment-item .comment-item {
        margin-left: 1rem;
        padding-left: 1rem;
    }

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .comment-navigation a {
        width: 100%;
        text-align: center;
    }

    .comment-form-logged-in {
        padding: 1rem;
    }

    .logged-in-user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .logged-in-avatar {
        align-self: center;
    }

    .logged-in-user-name {
        flex-wrap: wrap;
    }

    .logged-in-user-email {
        flex-wrap: wrap;
    }

    .logged-in-user-actions {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }

    .user-action-button {
        width: 100%;
        text-align: center;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .comment-body,
    .comment-form-wrapper .submit-button,
    .comment-actions .reply a {
        transition: none;
    }
    
    .comment-form-wrapper .submit-button::before {
        transition: none;
    }
    
    .comment-form-wrapper .submit-button:hover {
        transform: none;
    }

    .comment-actions .reply a:hover {
        transform: none;
    }
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
    position: fixed;
}

/* Keyboard Navigation Focus Styles */
.keyboard-navigation *:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.keyboard-navigation a:focus,
.keyboard-navigation button:focus,
.keyboard-navigation input:focus,
.keyboard-navigation textarea:focus,
.keyboard-navigation select:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ===========================================
   FEATURED PROJECTS
   =========================================== */

.featured-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    animation: featuredPulse 2s ease-in-out infinite;
}

@keyframes featuredPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }
}

.card-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.project-card.featured {
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    .featured-badge {
        animation: none;
    }
}

/* ===========================================
   LAZY LOADING IMAGES
   =========================================== */

img.lazy-load {
    opacity: 0.3;
    filter: blur(5px);
    transition: opacity 0.3s ease, filter 0.3s ease;
    background: var(--bg-primary);
}

img.lazy-loading {
    opacity: 0.5;
    filter: blur(3px);
}

img.lazy-loaded {
    opacity: 1;
    filter: blur(0);
}

img.lazy-error {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    img.lazy-load,
    img.lazy-loading,
    img.lazy-loaded {
        transition: none;
    }
}

/* ===========================================
   PROJECT RELATIONSHIPS
   =========================================== */

.related-projects {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(0, 255, 255, 0.2);
}

.related-projects-title {
    color: var(--accent-primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.related-project-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-project-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

.related-project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-project-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-primary);
}

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

.related-project-card:hover .related-project-thumbnail img {
    transform: scale(1.1);
}

.related-project-info {
    padding: 1.5rem;
}

.related-project-title {
    color: var(--accent-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.related-project-types {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.related-project-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-primary);
    font-size: 0.75rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* WP Project Related Section */
.wp-project-related {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(0, 255, 255, 0.2);
}

.wp-project-related .related-title {
    color: var(--accent-primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wp-project-related .related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.wp-project-related .related-project-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wp-project-related .related-project-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

.wp-project-related .related-project-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wp-project-related .related-project-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-primary);
    font-size: 0.75rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* ===========================================
   WP PROJECT BREADCRUMB
   =========================================== */

.wp-project-breadcrumb {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.breadcrumb-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: rgba(232, 230, 227, 0.5);
    font-size: 0.9rem;
}

.breadcrumb-current {
    color: rgba(232, 230, 227, 0.7);
    font-size: 0.9rem;
}

/* ===========================================
   WP PROJECT EXTERNAL LINKS
   =========================================== */

.wp-project-external-links {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.wp-project-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wp-project-link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.wp-project-link-button:hover::before {
    left: 100%;
}

.wp-project-link-button:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.wp-project-link-button .link-icon {
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.wp-project-link-button .link-text {
    position: relative;
    z-index: 1;
}

.wp-project-link-button .link-arrow {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.wp-project-link-button:hover .link-arrow {
    transform: translateX(5px);
}

/* Light mode adjustments */
body.light-mode .wp-project-breadcrumb {
    border-bottom-color: rgba(0, 102, 204, 0.2);
}

body.light-mode .breadcrumb-link {
    color: var(--accent-primary);
}

body.light-mode .breadcrumb-separator {
    color: rgba(10, 10, 10, 0.5);
}

body.light-mode .breadcrumb-current {
    color: rgba(10, 10, 10, 0.7);
}

body.light-mode .wp-project-link-button {
    background: rgba(0, 102, 204, 0.05);
    border-color: rgba(0, 102, 204, 0.2);
    color: var(--accent-primary);
}

body.light-mode .wp-project-link-button:hover {
    background: rgba(0, 102, 204, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .related-project-card,
    .related-project-thumbnail img {
        transition: none;
    }
    
    .related-project-card:hover {
        transform: none;
    }
}

/* ===========================================
   PROJECT FILTERS
   =========================================== */

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 3rem;
    justify-content: center;
}

.filter-button {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: var(--accent-primary);
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.filter-button:hover::before {
    left: 100%;
}

.filter-button:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.filter-button.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.filter-button:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.archive-grid.filtering {
    opacity: 0.7;
    pointer-events: none;
}

.project-card.filter-show {
    animation: filterFadeIn 0.3s ease-out;
}

.project-card.filter-hide {
    animation: filterFadeOut 0.3s ease-out;
}

@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes filterFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .filter-button,
    .project-card.filter-show,
    .project-card.filter-hide {
        transition: none;
        animation: none;
    }
    
    .filter-button:hover {
        transform: none;
    }
}

/* ===========================================
   WP PROJECT VOTING
   =========================================== */

/* Single WP Project Layout - 80% width, left-aligned */
.single-wp-project {
    position: relative;
    width: 100%;
}

.single-wp-project .site-main {
    width: 100%;
    max-width: 100%;
}

/* Override container width for single WP projects */
.single-wp-project .container {
    max-width: 80% !important;
    width: 80% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* WP Project Hero */
/* Note: Width and alignment are controlled by customizer settings */
.single-wp-project .wp-project-hero .container {
    width: 100% !important;
    /* Default styles - customizer will override max-width and margins */
}

.single-wp-project .wp-project-hero-content {
    /* Alignment controlled by customizer */
}

.single-wp-project .wp-project-title {
    /* Alignment controlled by customizer */
}

/* Ensure content sections also respect the 80% width */
.single-wp-project .wp-project-content-section .container,
.single-wp-project .wp-project-comments-section .container {
    max-width: 80% !important;
    width: 80% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Override any article max-width constraints */
.single-wp-project article.wp-project-landing {
    max-width: 100% !important;
    width: 100% !important;
}

/* Floating Voting Buttons */
.wp-project-voting-floating {
    position: fixed;
    top: 120px;
    right: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease;
}

/* Adjust button position when content is 80% width */
@media (min-width: 769px) {
    .wp-project-voting-floating {
        right: calc(10% + 1rem);
    }
}

/* Hide on mobile, show on larger screens */
@media (max-width: 768px) {
    .wp-project-voting-floating {
        display: none;
    }
    
    /* On mobile, restore full width */
    .single-wp-project .container,
    .single-wp-project .wp-project-hero .container,
    .single-wp-project .wp-project-content-section .container,
    .single-wp-project .wp-project-comments-section .container {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* On mobile, ensure headers are still centered */
    .static-page .page-header,
    article .page-header,
    .entry-header,
    .single-project .project-header {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Adjust position on scroll if needed */
.wp-project-voting-floating.scrolled {
    top: 80px;
}

.vote-button {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: var(--accent-primary);
    padding: 1rem 1.5rem;
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 120px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.vote-button:hover::before {
    left: 100%;
}

.vote-button.vote-up {
    border-color: rgba(0, 255, 255, 0.4);
}

.vote-button.vote-up:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.vote-button.vote-up.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.vote-button.vote-down {
    border-color: rgba(255, 0, 255, 0.4);
    color: var(--accent-secondary);
}

.vote-button.vote-down:hover {
    background: rgba(255, 0, 255, 0.1);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
    transform: translateY(-2px);
}

.vote-button.vote-down.active {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.vote-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: block;
    position: relative;
    z-index: 1;
}

.vote-label {
    font-size: 0.7rem;
    position: relative;
    z-index: 1;
}

.vote-count {
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    min-width: 2ch;
    display: inline-block;
}

.vote-button.loading {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

.vote-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: voteSpin 0.6s linear infinite;
}

@keyframes voteSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Floating buttons hover effect */
.wp-project-voting-floating .vote-button:hover {
    transform: translateX(-5px) translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Light mode adjustments */
body.light-mode .wp-project-voting {
    background: rgba(0, 102, 204, 0.05);
    border-color: rgba(0, 102, 204, 0.2);
}

body.light-mode .vote-button.vote-up {
    border-color: rgba(0, 102, 204, 0.4);
    color: var(--accent-primary);
}

body.light-mode .vote-button.vote-up:hover {
    background: rgba(0, 102, 204, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.3);
}

body.light-mode .vote-button.vote-up.active {
    background: var(--accent-primary);
    color: #ffffff;
}

body.light-mode .vote-button.vote-down {
    border-color: rgba(204, 0, 102, 0.4);
    color: var(--accent-secondary);
}

body.light-mode .vote-button.vote-down:hover {
    background: rgba(204, 0, 102, 0.1);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(204, 0, 102, 0.3);
}

body.light-mode .vote-button.vote-down.active {
    background: var(--accent-secondary);
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .vote-button,
    .vote-button::before {
        transition: none;
        animation: none;
    }
    
    .vote-button:hover {
        transform: none;
    }
    
    .vote-button.loading::after {
        animation: none;
    }
}