/* ==========================================================================
   YOYO Theme - Modern Cyberpunk Tech Blog Style
   A sleek, dark, animated theme for security researchers & hackers
   ========================================================================== */

@import url(normalize.css);

/* ==========================================================================
   0. CSS Variables & Root
   ========================================================================== */

:root {
    /* Core Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --bg-glass: rgba(26, 26, 46, 0.7);

    /* Accent Colors */
    --accent-primary: #00f0ff;
    --accent-secondary: #7b2ff7;
    --accent-tertiary: #ff2d75;
    --accent-gradient: linear-gradient(135deg, #00f0ff 0%, #7b2ff7 50%, #ff2d75 100%);

    /* Text Colors */
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #555570;

    /* Border */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 240, 255, 0.15);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.1);

    /* Typography */
    --font-heading: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

    /* Spacing */
    --container-width: 900px;
    --post-width: 800px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   1. Icons Font
   ========================================================================== */

@font-face {
    font-family: 'icons';
    src:url('../fonts/icons.eot');
    src:url('../fonts/icons.eot?#iefix') format('embedded-opentype'),
        url('../fonts/icons.woff') format('woff'),
        url('../fonts/icons.ttf') format('truetype'),
        url('../fonts/icons.svg#icons') format('svg');
    font-weight: normal;
    font-style: normal;
}

.icon-ghost:before,
.icon-feed:before,
.icon-twitter:before,
.icon-google-plus:before,
.icon-facebook:before {
    font-family: 'icons';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    text-decoration: none;
}

.icon-ghost:before { content: "\e000"; }
.icon-feed:before { content: "\e001"; }
.icon-twitter:before { content: "\e002"; font-size: 1.1em; }
.icon-google-plus:before { content: "\e003"; }
.icon-facebook:before { content: "\e004"; }

/* ==========================================================================
   2. Base / Reset / Global Styles
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 62.5%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100%;
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* Animated background grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Gradient orbs in background */
body::after {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 20s ease-in-out infinite alternate;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-100px, 100px) scale(1.1); }
    100% { transform: translate(-50px, 50px) scale(0.95); }
}

::-moz-selection {
    color: var(--bg-primary);
    background: var(--accent-primary);
    text-shadow: none;
}

::selection {
    color: var(--bg-primary);
    background: var(--accent-primary);
    text-shadow: none;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
    line-height: 1.2;
    margin-top: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

h1 {
    font-size: 3.6rem;
    line-height: 1.15;
    letter-spacing: -0.04em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.6rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

h3 {
    font-size: 2rem;
    color: var(--text-primary);
}

h4 { font-size: 1.8rem; }
h5 { font-size: 1.6rem; }
h6 { font-size: 1.4rem; }

p, ul, ol, dl {
    margin: 1.4em 0;
    color: var(--text-secondary);
}

ol ol, ul ul,
ul ol, ol ul {
    margin: 0.4em 0;
}

dl dt {
    float: left;
    width: 160px;
    overflow: hidden;
    clear: left;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    margin-bottom: 1em;
    color: var(--accent-primary);
}

dl dd {
    margin-left: 180px;
    margin-bottom: 1em;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 12px rgba(123, 47, 247, 0.5);
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 3em auto;
    padding: 0;
    max-width: 200px;
    opacity: 0.5;
}

blockquote {
    box-sizing: border-box;
    margin: 1.6em 0;
    padding: 1.2em 1.6em;
    border-left: 3px solid var(--accent-primary);
    background: var(--bg-card);
    border-radius: 0 8px 8px 0;
    position: relative;
}

blockquote p {
    margin: 0.6em 0;
    font-style: italic;
    color: var(--text-secondary);
}

blockquote small {
    display: inline-block;
    margin: 0.8em 0 0 0;
    font-size: 0.85em;
    color: var(--text-muted);
}
blockquote small:before { content: '\2014 \00A0'; }

mark {
    background-color: rgba(0, 240, 255, 0.2);
    color: var(--accent-primary);
    padding: 0.1em 0.3em;
    border-radius: 3px;
}

code, tt {
    padding: 0.2em 0.5em;
    font-family: var(--font-mono);
    font-size: 0.88em;
    white-space: pre-wrap;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--accent-primary);
}

pre {
    box-sizing: border-box;
    margin: 1.6em 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.4em;
    font-family: var(--font-mono);
    font-size: 0.88em;
    white-space: pre;
    overflow-x: auto;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md), inset 0 0 30px rgba(0, 240, 255, 0.02);
    position: relative;
}

pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    border-radius: 10px 10px 0 0;
    pointer-events: none;
}

pre code, tt {
    font-size: inherit;
    white-space: pre-wrap;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-secondary);
}

kbd {
    display: inline-block;
    margin-bottom: 0.4em;
    padding: 0.2em 0.7em;
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.85em;
    font-weight: 500;
    background: var(--bg-card);
    border-radius: 5px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

table {
    box-sizing: border-box;
    margin: 1.6em 0;
    width: 100%;
    max-width: 100%;
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

table th, table td {
    padding: 10px 14px;
    line-height: 1.6;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid var(--border-color);
}

table th {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-secondary);
}

table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
    background-color: rgba(255, 255, 255, 0.01);
}

table tbody > tr:hover > td {
    background-color: rgba(0, 240, 255, 0.03);
}

iframe, .fluid-width-video-wrapper {
    display: block;
    margin: 1.6em 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.fluid-width-video-wrapper iframe {
    margin: 0;
}

/* ==========================================================================
   4. Utilities
   ========================================================================== */

.hidden {
    text-indent: -9999px;
    visibility: hidden;
    display: none;
}

.inner {
    position: relative;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.vertical {
    display: table-cell;
    vertical-align: middle;
}

/* ==========================================================================
   5. Site Header / Hero Section
   ========================================================================== */

.site-head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 6rem 2rem 4rem;
    text-align: center;
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
    z-index: 1;
}

.site-head::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateX(-50%) scale(1.3); opacity: 0.8; }
}

.blog-logo {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.blog-logo img {
    display: block;
    max-height: 90px;
    width: auto;
    margin: 0 auto;
    border-radius: 16px;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.15));
}

.blog-logo img:hover {
    transform: scale(1.05) translateY(-4px);
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.3));
}

.blog-title {
    margin: 0.8rem 0 0.8rem 0;
    font-size: 4.2rem;
    letter-spacing: -0.05em;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite alternate;
    text-shadow: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.blog-description {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.6em;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: none;
}

/* Social links row */
.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    font-size: 1.3rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.35s var(--ease-out-expo);
    cursor: pointer;
}

.social-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    text-shadow: none;
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Decorative scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    animation: bounceDown 2s ease-in-out infinite;
}

.scroll-indicator .mouse {
    width: 22px;
    height: 34px;
    border: 2px solid var(--text-muted);
    border-radius: 11px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 3px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ==========================================================================
   6. Post List Items (Home Page)
   ========================================================================== */

.post {
    position: relative;
    width: 100%;
    max-width: var(--post-width);
    margin: 0 auto 3rem;
    padding: 2.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    word-break: break-word;
    hyphens: auto;
    transition: all 0.4s var(--ease-out-expo);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.post:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: var(--bg-card-hover);
}

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

.post:after {
    display: none;
}

.post-title {
    margin: 0 0 0.8rem 0;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

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

.post-title a:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    transform: translateX(4px);
}

.post-excerpt p {
    margin: 0.8rem 0 0 0;
    font-size: 1.45rem;
    line-height: 1.65em;
    color: var(--text-secondary);
}

.post-meta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem 0;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.post-meta a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.post-meta a:hover {
    color: var(--accent-primary);
    text-decoration: none;
}

/* Tag badge style for post meta */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2em 0.7em;
    font-size: 1.1rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.3s var(--ease-out-expo);
}

.tag-badge:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.user-meta {
    position: relative;
    padding: 0.3rem 40px 0 90px;
    min-height: 68px;
}

.user-image {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.user-name {
    display: block;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.user-bio {
    display: block;
    max-width: 420px;
    font-size: 1.25rem;
    line-height: 1.5em;
    color: var(--text-secondary);
}

.publish-meta {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4rem 0 3.5rem 0;
    text-align: right;
}

.publish-heading {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.publish-date {
    display: block;
    font-size: 1.3rem;
    line-height: 1.5em;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.comments-area {
    width: 90%;
    max-width: var(--container-width);
    margin: 4rem auto;
}

#comment h1 a {
    text-decoration: none;
}

/* ==========================================================================
   7. Single Post Template
   ========================================================================== */

.post-template .site-head {
    min-height: auto;
    padding: 4rem 2rem 3rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary) !important;
}

.post-template .site-head::before {
    display: none;
}

.post-template .site-head:after {
    display: none;
}

.post-template .blog-title {
    font-size: 2.8rem;
}

.post-template .blog-description {
    display: none;
}

.post-template .post-header {
    padding: 3rem 0 2rem;
    text-align: center;
}

.post-content {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.6rem;
    line-height: 1.8em;
}

.post-content img {
    display: block;
    max-width: 100%;
    margin: 2rem auto;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.post-content a {
    color: var(--accent-primary);
    border-bottom: 1px dashed var(--accent-primary);
    transition: all 0.3s;
}

.post-content a:hover {
    color: var(--accent-secondary);
    border-bottom-style: solid;
    text-shadow: 0 0 10px rgba(123, 47, 247, 0.4);
}

.post-footer {
    position: relative;
    margin: 4rem 0 0 0;
    padding: 3rem 0 0 0;
    border-top: 1px solid var(--border-color);
}

.post-footer h4 {
    font-size: 1.6rem;
    margin: 0;
    color: var(--text-primary);
}

.post-footer p {
    margin: 0.8rem 0;
    font-size: 1.3rem;
    line-height: 1.6em;
    color: var(--text-secondary);
}

.post-footer .author {
    margin-right: 140px;
}

.post-footer .share {
    position: absolute;
    top: 3rem;
    right: 0;
    width: 120px;
}

.post-footer .share a {
    font-size: 1.6rem;
    display: inline-block;
    margin: 1rem 1.2rem 1.2rem 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
}

.post-footer .share a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   8. Third Party Elements
   ========================================================================== */

.video-container {
    position: relative;
    padding-top: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-top: 0;
}

figure.highlight {
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    line-height: 1.55em;
    font-size: 0.9em;
    margin-bottom: 2em;
    color: var(--text-secondary);
    overflow: auto;
    white-space: pre;
    word-wrap: normal;
    box-shadow: var(--shadow-md);
}

figure.highlight figcaption {
    padding: 8px 14px;
    font-size: 0.85em;
    color: var(--text-muted);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    border-radius: 10px 10px 0 0;
    font-family: var(--font-mono);
}

figure.highlight table {
    margin: 0;
    background: transparent;
    border: none;
}

figure.highlight table > tbody > tr > td {
    padding: 0;
    background: transparent !important;
    border: none;
}

figure.highlight table > tbody > tr > td.gutter {
    max-width: 40px;
    text-align: right;
    padding-right: 1em !important;
    color: var(--text-muted);
    user-select: none;
    border-right: 1px solid var(--border-color);
}

figure.highlight pre {
    border: none;
    margin: 0;
    padding: 1.2em;
    background: transparent;
    box-shadow: none;
}

figure.highlight pre::before {
    display: none;
}

/* Syntax Highlighting Theme - Dark Neon */
pre .comment,
pre .template_comment,
.diff pre .header,
pre .javadoc {
    color: #5c6370;
    font-style: italic;
}

pre .keyword,
.css .rule pre .keyword,
pre .winutils,
.javascript pre .title,
.nginx pre .title,
pre .subst,
pre .request,
pre .status {
    color: #c678dd;
    font-weight: normal;
}

pre .number,
pre .hexcolor,
.ruby pre .constant {
    color: #d19a66;
}

pre .string,
pre .tag pre .value,
pre .phpdoc,
.tex pre .formula {
    color: #98c379;
}

pre .title,
pre .id,
.coffeescript pre .params,
.scss pre .preprocessor {
    color: #61afef;
    font-weight: bold;
}

.javascript pre .title,
.lisp pre .title,
.clojure pre .title,
pre .subst {
    font-weight: normal;
}

pre .class pre .title,
.haskell pre .type,
.vhdl pre .literal,
.tex pre .command {
    color: #e5c07b;
    font-weight: bold;
}

pre .tag,
pre .tag pre .title,
pre .rules pre .property,
.django pre .tag pre .keyword {
    color: #e06c75;
    font-weight: normal;
}

pre .attribute,
pre .variable,
.lisp pre .body {
    color: #d19a66;
}

pre .regexp {
    color: #56b6c2;
}

pre .symbol,
.ruby pre .symbol pre .string,
.lisp pre .keyword,
.tex pre .special,
pre .prompt {
    color: #56b6c2;
}

pre .built_in,
.lisp pre .title,
.clojure pre .built_in {
    color: #61afef;
}

pre .preprocessor,
pre .pragma,
pre .pi,
pre .doctype,
pre .shebang,
pre .cdata {
    color: #5c6370;
    font-weight: bold;
}

pre .deletion {
    background: rgba(232, 148, 128, 0.15);
    color: #e06c75;
}

pre .addition {
    background: rgba(94, 193, 129, 0.15);
    color: #98c379;
}

.diff pre .change {
    color: #61afef;
}

pre .chunk {
    color: #5c6370;
}

.gist table {
    margin: 0;
    font-size: 1.3rem;
}

.gist .line-number {
    min-width: 25px;
    font-size: 1.1rem;
}

/* ==========================================================================
   9. Pagination
   ========================================================================== */

.pagination {
    position: relative;
    width: 90%;
    max-width: var(--container-width);
    margin: 4rem auto;
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: var(--text-muted);
    text-align: center;
}

.pagination a {
    color: var(--text-muted);
}

.older-posts,
.newer-posts {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: all 0.35s var(--ease-out-expo);
    backdrop-filter: blur(10px);
}

.older-posts {
    right: 0;
}

.page-number {
    display: inline-block;
    padding: 0.5rem 0;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.newer-posts {
    left: 0;
}

.older-posts:hover,
.newer-posts:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-footer {
    position: relative;
    margin: 6rem 0 0 0;
    padding: 3.5rem 0;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.7em;
    color: var(--text-muted);
    text-align: center;
    background: var(--bg-secondary);
    z-index: 1;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.poweredby .icon-ghost {
    font-weight: 700;
    text-decoration: none;
}

.poweredby .icon-ghost:hover {
    text-decoration: none;
}

.poweredby .icon-ghost:before {
    font-size: 1rem;
    margin-right: 0.2em;
}

.subscribe {
    width: 28px;
    height: 28px;
    position: absolute;
    top: -14px;
    left: 50%;
    margin-left: -15px;
    border: 1px solid var(--border-color);
    text-align: center;
    line-height: 2.4rem;
    border-radius: 50px;
    background: var(--bg-secondary);
    transition: all 0.4s var(--ease-out-expo);
}

.subscribe:before {
    color: var(--text-muted);
    font-size: 10px;
    position: absolute;
    top: 9px;
    left: 9px;
    font-weight: bold;
    transition: color 0.4s ease;
}

.subscribe:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    transform: rotate(360deg);
}

.subscribe:hover:before {
    color: var(--accent-primary);
}

.tooltip {
    opacity: 0;
    display: inline-block;
    padding: 4px 10px 5px 10px;
    position: absolute;
    top: -23px;
    left: -21px;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1em;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: opacity 0.3s ease, top 0.3s ease;
}

.tooltip:after {
    content: "";
    border-width: 5px 5px 0 5px;
    border-style: solid;
    border-color: var(--bg-card) transparent;
    display: block;
    position: absolute;
    bottom: -4px;
    left: 50%;
    margin-left: -5px;
    z-index: 220;
    width: 0;
}

.subscribe:hover .tooltip {
    opacity: 1;
    top: -33px;
}

/* Footer heart animation */
.footer-heart {
    display: inline-block;
    color: var(--accent-tertiary);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

/* ==========================================================================
   11. Media Queries - Tablet (< 900px)
   ========================================================================== */

@media only screen and (max-width: 900px) {

    blockquote {
        margin-left: 0;
        margin-right: 0;
    }

    .site-head {
        min-height: auto;
        padding: 5rem 2rem 3rem;
    }

    .blog-title {
        font-size: 3.2rem;
    }

    .blog-description {
        font-size: 1.4rem;
    }

    .post {
        font-size: 0.96em;
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .post-template .post {
        padding-bottom: 1rem;
    }

    .post-template .post-header {
        padding: 3rem 0 2rem;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.3rem; }
    h3 { font-size: 1.9rem; }
    h4 { font-size: 1.7rem; }

    .scroll-indicator {
        display: none;
    }
}

/* ==========================================================================
   12. Media Queries - Mobile (< 500px)
   ========================================================================== */

@media only screen and (max-width: 500px) {

    .blog-logo img {
        max-height: 70px;
    }

    .inner,
    .pagination {
        width: auto;
        margin-left: 16px;
        margin-right: 16px;
    }

    .post {
        width: auto;
        margin: 0 12px 1.5rem;
        padding: 1.6rem;
        font-size: 0.92em;
        border-radius: 12px;
    }

    .site-head {
        padding: 4rem 1.5rem 2.5rem;
        min-height: auto;
    }

    .blog-title {
        font-size: 2.6rem;
    }

    .blog-description {
        font-size: 1.3rem;
    }

    .social-links {
        gap: 0.6rem;
    }

    .social-link {
        padding: 0.5rem 1rem;
        font-size: 1.15rem;
    }

    h1, h2 {
        font-size: 2.2rem;
        line-height: 1.2em;
        letter-spacing: -0.02em;
    }

    h3 { font-size: 1.8rem; }
    h4 { font-size: 1.6rem; }

    .post-template .post-header {
        padding: 2.5rem 0 1.5rem;
    }

    .post-meta {
        font-size: 1.1rem;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-footer {
        padding: 2.5rem 0;
        text-align: center;
    }

    .post-footer .author {
        margin: 0 0 2rem 0;
        padding: 0 0 1.5rem 0;
        border-bottom: 1px dashed var(--border-color);
    }

    .post-footer .share {
        position: static;
        width: auto;
    }

    .post-footer .share a {
        margin: 1rem 0.8rem 0 0.8rem;
    }

    .older-posts,
    .newer-posts {
        position: static;
        margin: 8px 0;
        display: inline-flex;
    }

    .page-number {
        display: block;
        margin: 1rem 0;
    }

    .site-footer {
        margin-top: 4rem;
        padding: 2.5rem 0;
        font-size: 1.1rem;
    }

    code, tt {
        font-size: 0.82em;
    }

    pre {
        font-size: 0.82em;
        padding: 1em;
        border-radius: 8px;
    }
}

/* ==========================================================================
   13. Particle Canvas & Avatar Effects
   ========================================================================== */

#particle-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  display: block !important;
  background: transparent !important;
}

/* Avatar with AI glow effect */
.blog-logo {
  position: relative;
}

.blog-logo img {
  display: block;
  max-height: 90px;
  width: auto;
  margin: 0 auto;
  border-radius: 50%;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.15));
  position: relative;
  z-index: 2;
}

.blog-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, rgba(123, 47, 247, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  animation: avatarPulse 3s ease-in-out infinite;
  z-index: 1;
}

.blog-logo::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 50%;
  animation: avatarRing 8s linear infinite;
  z-index: 0;
}

@keyframes avatarPulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.6; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.15); 
    opacity: 1; 
  }
}

@keyframes avatarRing {
  0% { 
    transform: translate(-50%, -50%) rotate(0deg); 
    opacity: 0.3;
  }
  25% { 
    opacity: 0.6;
    border-color: rgba(123, 47, 247, 0.3);
  }
  50% { 
    opacity: 0.3;
    border-color: rgba(255, 45, 117, 0.3);
  }
  75% { 
    opacity: 0.6;
    border-color: rgba(0, 240, 255, 0.3);
  }
  100% { 
    transform: translate(-50%, -50%) rotate(360deg); 
    opacity: 0.3;
  }
}

.blog-logo img:hover {
  transform: scale(1.08) translateY(-4px);
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.35));
}

/* Ensure content sits above particles */
.site-head,
.content,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Neural network lines decoration for header */
.site-head .inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(0, 240, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(123, 47, 247, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   14. Animations & Transitions (Global)
   ========================================================================== */

/* Fade-in on load for posts */
.content {
    animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.content .post:nth-child(1) { animation-delay: 0.05s; }
.content .post:nth-child(2) { animation-delay: 0.1s; }
.content .post:nth-child(3) { animation-delay: 0.15s; }
.content .post:nth-child(4) { animation-delay: 0.2s; }
.content .post:nth-child(5) { animation-delay: 0.25s; }
.content .post:nth-child(6) { animation-delay: 0.3s; }

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

/* Smooth hover glow effect for interactive elements */
a, button, .post, .social-link {
    transition-timing-function: var(--ease-out-expo);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Loading shimmer effect placeholder */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================================================
   End of YOYO Theme
   ========================================================================== */
