/*
Theme Name: Mycelial Cyberpunk
Theme URI: https://bygonepath.com
Author: Mycelia4
Author URI: https://bygonepath.com
Description: A premium, glassmorphic dark mode theme optimized for thick signals and sovereignty.
Version: 1.0.0
Text Domain: mycelial-cyberpunk
*/

:root {
    /* Color Palette */
    --bg-dark: #0a0b10;
    --bg-surface: #13141C;
    --accent-primary: #673de6;
    --accent-secondary: #00b090;
    --accent-tertiary: #fc5185;
    
    /* Text Colors */
    --text-main: #f2f3f6;
    --text-muted: #9aa0a6;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Dynamic Ambient Backgrounds --- */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: pulse 10s infinite alternate;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.glow-2 {
    top: 40%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation-delay: 5s;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    100% { transform: scale(1.1) translate(20px, 20px); opacity: 0.5; }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 11, 16, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text .accent {
    color: var(--accent-secondary);
    font-weight: 400;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #8c85ff);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(103, 61, 230, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 61, 230, 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(103, 61, 230, 0.15);
    border: 1px solid rgba(103, 61, 230, 0.3);
    color: #b39ef3;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- Archive Section (Blog Grid) --- */
.archive-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

/* --- Glass Cards --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.glass-card:hover::before {
    opacity: 1;
}

.featured-card {
    background: linear-gradient(180deg, rgba(103, 61, 230, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(103, 61, 230, 0.3);
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-meta {
    color: var(--accent-secondary);
    font-weight: 700;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.glass-card h3 a {
    color: inherit;
    text-decoration: none;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.read-more {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

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

/* --- Single Post/Page --- */
.single-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.single-header {
    margin-bottom: 3rem;
}

.single-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.single-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.single-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.single-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid var(--glass-border);
}

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

/* --- Footer --- */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(10, 11, 16, 0.8);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Services & Icons --- */
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

.service-card {
    align-items: flex-start;
    text-align: left;
}

/* --- Forms --- */
.cyber-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(103, 61, 230, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

/* --- Footer Expansion --- */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
    color: var(--accent-secondary);
}

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

/* --- Articles Page & Category Badges --- */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.badge-hardware {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #e5c158;
}

.badge-essay {
    background: rgba(103, 61, 230, 0.15);
    border: 1px solid rgba(103, 61, 230, 0.4);
    color: #b39ef3;
}

.card-thumbnail-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--glass-border);
    background: #0d1117;
}

.card-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.glass-card:hover .card-thumbnail-wrapper img {
    transform: scale(1.04);
}

.filter-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 2.5rem 0 1rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(103, 61, 230, 0.4);
}


/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        text-align: center;
    }
    
    .featured-dispatch-card {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}
