
:root {
    --primary-color: #00ff00; /* Neon Green */
    --secondary-color: #00cc00;
    --accent-color: #ff00ff;
    --bg-color: #000000; /* Amoled Black */
    --card-bg: #111111;
    --text-color: #ffffff;
    --text-light: #cccccc;
    --white: #111111; /* Used for card backgrounds originally */
    --border-color: #333333;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

@keyframes rgb-text {
    0% { color: #ff0000; text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
    16% { color: #ff7f00; text-shadow: 0 0 10px #ff7f00, 0 0 20px #ff7f00; }
    33% { color: #ffff00; text-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00; }
    50% { color: #00ff00; text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }
    66% { color: #0000ff; text-shadow: 0 0 10px #0000ff, 0 0 20px #0000ff; }
    83% { color: #4b0082; text-shadow: 0 0 10px #4b0082, 0 0 20px #4b0082; }
    100% { color: #9400d3; text-shadow: 0 0 10px #9400d3, 0 0 20px #9400d3; }
}

.rgb-counter {
    background: rgba(17, 17, 17, 0.95);
    padding: 6px 10px;
    border-radius: 6px;
    border: 2px solid;
    animation: rgb-border 2s linear infinite, rgb-text 2s linear infinite;
    backdrop-filter: blur(10px);
    font-family: var(--font-heading);
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.rgb-counter .number {
    font-size: 1rem;
    display: block;
    animation: rgb-text 2s linear infinite;
    font-weight: 900;
    text-align: center;
    line-height: 1;
}

.rgb-counter .label {
    font-size: 0.65rem;
    color: var(--text-light);
    text-align: center;
    display: block;
    line-height: 1;
}

@media (max-width: 900px) {
    .rgb-counter {
        padding: 4px 8px;
    }
    .rgb-counter .number {
        font-size: 0.9rem;
    }
    .rgb-counter .label {
        font-size: 0.55rem;
    }
}

@media (max-width: 600px) {
    .rgb-counter {
        padding: 3px 6px;
    }
    .rgb-counter .number {
        font-size: 0.8rem;
    }
    .rgb-counter .label {
        font-size: 0.5rem;
    }
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: #050505;
    box-shadow: 0 2px 15px rgba(0, 255, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--primary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 10px var(--primary-color);
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .logo {
        font-size: 1.3rem;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 1.1rem;
        gap: 6px;
    }
}

.logo i {
    color: var(--primary-color);
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

/* Article */
.post-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.category-badge {
    display: inline-block;
    background-color: rgba(0, 255, 0, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid var(--primary-color);
}

.post-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.post-hero-image {
    margin-bottom: 40px;
}

.post-hero-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.post-hero-image figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 10px;
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin: 40px 0 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.post-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.post-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
    list-style: none;
}

.post-content ul li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: var(--text-light);
}

.post-content ul li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary-color);
}

/* FAQ */
.faq-section {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color) !important;
}
.faq-section h3 {
    color: var(--text-color) !important;
}
.faq-item h4 {
    color: var(--primary-color) !important;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

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

.related-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--primary-color);
    border-color: var(--primary-color);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card-content {
    padding: 15px;
}

.related-card h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Footer */
.main-footer {
    background-color: #050505;
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: auto;
    border-top: 1px solid var(--primary-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-brand p {
    color: var(--text-light);
}

.footer-links p {
    color: var(--text-light);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .post-title { font-size: 2rem; }
    .post-content h2 { font-size: 1.5rem; }
    .post-container { padding: 20px; }
}

@keyframes rgb-screen-border {
    0% { border-color: #ff0000; box-shadow: inset 0 0 20px #ff0000, 0 0 20px #ff0000; }
    16% { border-color: #ff7f00; box-shadow: inset 0 0 20px #ff7f00, 0 0 20px #ff7f00; }
    33% { border-color: #ffff00; box-shadow: inset 0 0 20px #ffff00, 0 0 20px #ffff00; }
    50% { border-color: #00ff00; box-shadow: inset 0 0 20px #00ff00, 0 0 20px #00ff00; }
    66% { border-color: #0000ff; box-shadow: inset 0 0 20px #0000ff, 0 0 20px #0000ff; }
    83% { border-color: #4b0082; box-shadow: inset 0 0 20px #4b0082, 0 0 20px #4b0082; }
    100% { border-color: #9400d3; box-shadow: inset 0 0 20px #9400d3, 0 0 20px #9400d3; }
}

.rgb-screen-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 99999;
    border: 4px solid transparent;
    animation: rgb-screen-border 4s linear infinite;
}

/* RGB Margin / Border Glow Effect */
@keyframes rgb-border {
    0% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000; }
    16% { border-color: #ff7f00; box-shadow: 0 0 10px #ff7f00; }
    33% { border-color: #ffff00; box-shadow: 0 0 10px #ffff00; }
    50% { border-color: #00ff00; box-shadow: 0 0 10px #00ff00; }
    66% { border-color: #0000ff; box-shadow: 0 0 10px #0000ff; }
    83% { border-color: #4b0082; box-shadow: 0 0 10px #4b0082; }
    100% { border-color: #9400d3; box-shadow: 0 0 10px #9400d3; }
}

.index-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 2px solid var(--border-color);
    position: relative;
}

.index-card:hover {
    transform: translateY(-5px);
    animation: rgb-border 2s linear infinite;
    z-index: 10;
}

.index-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.index-card-content {
    padding: 20px;
}

.index-card .badge {
    background: rgba(0, 255, 0, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
    border: 1px solid var(--primary-color);
}

.index-card h3 a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.index-card h3 a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 15px;
}

@media (max-width: 900px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    .main-nav {
        justify-content: center;
    }
}
