/*
Theme Name: ARIAvoid
Theme URI: https://ariavoid.com
Author: ARIA
Description: Dystopian cyber theme for ARIAvoid.com
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600&display=swap');

:root {
    --bg:           #030508;
    --bg-secondary: #060b10;
    --bg-card:      #080e16;
    --accent:       #00d4ff;
    --accent-dim:   #0099bb;
    --accent-dark:  #001a22;
    --accent-glow:  rgba(0, 212, 255, 0.15);
    --green:        #00ff88;
    --green-glow:   rgba(0, 255, 136, 0.15);
    --red:          #ff3366;
    --gold:         #ff9500;
    --text:         #a8c8d8;
    --text-dim:     #3a6070;
    --text-muted:   #1a3040;
    --border:       #0a2a3a;
    --border-bright:#00d4ff;
    --font-mono:    'Share Tech Mono', monospace;
    --font-display: 'Orbitron', monospace;
    --font-body:    'Rajdhani', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: crosshair;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px);
    pointer-events: none;
    z-index: 9999;
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: #fff; text-shadow: 0 0 10px var(--accent); }
img { max-width: 100%; height: auto; display: block; border: 1px solid var(--border); }

.site-wrapper { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(3,5,8,0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    padding: 0 24px;
}

.site-header::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 900;
    color: var(--accent); text-decoration: none;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px var(--accent), 0 0 40px rgba(0,212,255,0.3);
    animation: flicker 8s infinite;
}

.site-logo span { color: var(--text-dim); font-weight: 400; }

@keyframes flicker {
    0%, 95%, 100% { opacity: 1; }
    96% { opacity: 0.8; } 97% { opacity: 1; } 98% { opacity: 0.6; } 99% { opacity: 1; }
}

.site-nav { display: flex; gap: 32px; align-items: center; }

.site-nav a {
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--text-dim); text-transform: uppercase;
    letter-spacing: 0.15em; text-decoration: none; transition: all 0.2s;
}

.site-nav a::before { content: '> '; color: var(--accent); opacity: 0; transition: opacity 0.2s; }
.site-nav a:hover { color: var(--accent); text-shadow: 0 0 8px var(--accent); }
.site-nav a:hover::before { opacity: 1; }

/* STATUS BAR */
.status-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 6px 24px;
    font-family: var(--font-mono); font-size: 0.6rem;
    color: var(--text-muted);
    display: flex; gap: 24px; align-items: center;
    letter-spacing: 0.1em;
}

.status-bar .status-dot {
    width: 6px; height: 6px;
    background: var(--green); border-radius: 50%;
    display: inline-block; margin-right: 6px;
    box-shadow: 0 0 6px var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--green); }
    50% { opacity: 0.5; box-shadow: 0 0 2px var(--green); }
}

/* HERO */
.site-hero {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border);
    position: relative; overflow: hidden;
}

.hero-tag {
    font-family: var(--font-mono); font-size: 0.7rem;
    color: var(--accent); letter-spacing: 0.2em;
    text-transform: uppercase; margin-bottom: 16px; opacity: 0.7;
}

.hero-tag::before { content: '[ '; }
.hero-tag::after  { content: ' ]'; }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem); font-weight: 900;
    color: var(--accent); line-height: 1.1; margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0,212,255,0.4);
}

.hero-subtitle {
    font-family: var(--font-mono); font-size: 0.9rem;
    color: var(--text-dim); max-width: 600px; line-height: 1.8;
}

.hero-subtitle .cursor {
    display: inline-block; width: 8px; height: 16px;
    background: var(--accent); margin-left: 4px;
    animation: blink 1s step-end infinite; vertical-align: text-bottom;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* MAIN */
.site-main { padding: 60px 0; }

.content-grid {
    display: grid; grid-template-columns: 1fr 300px;
    gap: 48px; align-items: start;
}

/* POST CARDS */
.post-card {
    border: 1px solid var(--border); background: var(--bg-card);
    padding: 28px; margin-bottom: 24px;
    position: relative; transition: all 0.3s ease; overflow: hidden;
}

.post-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 3px; height: 100%; background: var(--accent);
    transform: scaleY(0); transition: transform 0.3s ease; transform-origin: bottom;
}

.post-card:hover {
    border-color: rgba(0,212,255,0.2); background: var(--bg-secondary);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px rgba(0,212,255,0.02);
}

.post-card:hover::before { transform: scaleY(1); }

.post-card-meta {
    font-family: var(--font-mono); font-size: 0.65rem;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.15em; margin-bottom: 12px;
    display: flex; gap: 16px; align-items: center;
}

.post-card-meta .tag { color: var(--accent); border: 1px solid var(--accent-dark); padding: 2px 8px; }

.post-card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.post-card-title a { color: var(--text); text-decoration: none; transition: all 0.2s; }
.post-card-title a:hover { color: var(--accent); text-shadow: 0 0 10px var(--accent); }
.post-card-excerpt { color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }

.read-more {
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.15em; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
}

.read-more::after { content: '→'; transition: transform 0.2s; }
.read-more:hover { text-shadow: 0 0 8px var(--accent); }
.read-more:hover::after { transform: translateX(4px); }

/* SIDEBAR */
.sidebar { position: sticky; top: 80px; }

.sidebar-widget {
    border: 1px solid var(--border); background: var(--bg-card);
    padding: 24px; margin-bottom: 24px; position: relative;
}

.sidebar-widget::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.widget-title {
    font-family: var(--font-mono); font-size: 0.65rem; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.2em;
    margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

.widget-title::before { content: '// '; opacity: 0.5; }

.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget ul li { padding: 6px 0; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.7rem; }
.sidebar-widget ul li a { color: var(--text-dim); transition: all 0.2s; }
.sidebar-widget ul li a:hover { color: var(--accent); }

/* SINGLE POST */
.post-header { padding: 60px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }

.post-header .post-meta {
    font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 20px;
    display: flex; gap: 16px;
}

.post-header h1 {
    font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900; color: var(--text); line-height: 1.15; margin-bottom: 20px;
}

.post-content { max-width: 760px; }

.post-content h2 {
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
    color: var(--accent); margin: 48px 0 20px; padding-left: 16px;
    border-left: 3px solid var(--accent); text-shadow: 0 0 15px rgba(0,212,255,0.2);
}

.post-content h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 32px 0 16px; }
.post-content p { margin-bottom: 24px; color: var(--text); font-size: 1rem; line-height: 1.85; }
.post-content strong { color: var(--accent); font-weight: 600; }
.post-content a { color: var(--accent); border-bottom: 1px solid var(--accent-dark); transition: all 0.2s; }
.post-content a:hover { border-color: var(--accent); text-shadow: 0 0 8px var(--accent); }
.post-content code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-secondary); border: 1px solid var(--border); color: var(--accent); padding: 2px 8px; }

.post-content pre {
    background: var(--bg-secondary); border: 1px solid var(--border); border-left: 3px solid var(--accent);
    padding: 24px; overflow-x: auto; margin: 32px 0; font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent);
}

.post-content ul, .post-content ol { margin: 0 0 24px 0; padding-left: 0; list-style: none; }
.post-content ul li, .post-content ol li { padding: 6px 0 6px 24px; position: relative; color: var(--text); border-bottom: 1px solid var(--border); }
.post-content ul li::before { content: '>'; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }
.post-content ol { counter-reset: item; }
.post-content ol li::before { content: counter(item, decimal-leading-zero) '.'; counter-increment: item; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); font-size: 0.75rem; }

blockquote { border-left: 3px solid var(--accent); margin: 32px 0; padding: 16px 24px; background: var(--bg-secondary); font-style: italic; color: var(--text-dim); }

/* FOOTER */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0; margin-top: 80px; }

.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { font-family: var(--font-display); font-size: 0.9rem; color: var(--accent); text-shadow: 0 0 10px rgba(0,212,255,0.3); }
.footer-text { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.footer-text span { color: var(--accent); }

/* PAGINATION */
.pagination { display: flex; gap: 8px; margin-top: 40px; font-family: var(--font-mono); }
.pagination a, .pagination span { padding: 8px 16px; border: 1px solid var(--border); color: var(--text-dim); font-size: 0.75rem; transition: all 0.2s; }
.pagination a:hover, .pagination .current { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .site-nav { display: none; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .status-bar { overflow-x: auto; white-space: nowrap; }
}
