:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #8A2BE2;
    /* Electric Violet */
    --accent-hover: #9d4ced;
    --secondary-color: #00FFFF;
    /* Bright Cyan */
    --surface-color: #111111;
    --border-color: #222;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 18px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

/* Layout */
.viewport-frame {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-left: 4px;
    box-shadow: 0 0 10px var(--accent-color);
}

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

.nav-link {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
}

.nav-link:hover {
    color: #fff;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.arrow {
    font-size: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--surface-color);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-content a {
    color: #aaa;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--secondary-color);
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-sep {
    width: 1px;
    height: 20px;
    background-color: var(--border-color);
}

.header-actions a {
    font-size: 18px;
    color: #aaa;
}

.header-actions a:hover {
    color: var(--accent-color);
}

/* Main Content */
#main-content {
    flex: 1;
    padding-top: var(--header-height);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section.empty {
    height: 50vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero-section:hover .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.3), rgba(5, 5, 5, 0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

.hero-cat {
    font-weight: 700;
    padding: 4px 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 80px);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.hero-summary {
    font-size: clamp(18px, 2vw, 24px);
    color: #ccc;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--accent-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
    color: #fff;
}

/* Feed Section */
.feed-section {
    max-width: var(--container-width);
    margin: 80px auto;
    padding: 0 20px;
}

.feed-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.feed-header h2 {
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.feed-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-link {
    display: block;
    height: 100%;
}

.card-image {
    height: 190px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.card-cat {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.card-content {
    padding: 24px;
}

.card-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card-title {
    font-size: 22px;
    margin-bottom: 0;
    line-height: 1.3;
}

.page-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-size: 20px;
    line-height: 1.8;
}

/* Post Article */
.post-article {
    width: 100%;
}

.post-header {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.post-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.post-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.2), var(--bg-color));
}

.post-header-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.post-cat-pill {
    background-color: var(--accent-color);
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.post-date {
    color: #ccc;
    font-size: 14px;
}

.post-title {
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 20px;
}

.post-meta-bottom {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #888;
}

.post-tags {
    display: flex;
    gap: 10px;
}

.post-tags span {
    color: var(--secondary-color);
}

.post-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-size: 20px;
    line-height: 1.8;
}

.content-wrapper img {
    max-width: 100%;
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.content-wrapper h2 {
    font-size: 32px;
    margin-top: 60px;
    margin-bottom: 24px;
    color: var(--secondary-color);
}

.content-wrapper p {
    margin-bottom: 24px;
    color: #ddd;
}

.content-wrapper blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 24px;
    margin: 40px 0;
    font-style: italic;
    color: #fff;
    font-size: 24px;
}

/* Modules */
.qa-module,
.faq-module,
.related-module {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.module-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.question-block {
    background-color: var(--surface-color);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.question-text {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.asker-meta {
    font-size: 14px;
    color: #888;
}

.answer-item {
    padding: 24px;
    border-left: 2px solid var(--border-color);
    margin-left: 20px;
    margin-bottom: 20px;
}

.answer-item.accepted {
    border-left-color: var(--secondary-color);
    background: linear-gradient(to right, rgba(0, 255, 255, 0.05), transparent);
}

.answer-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #aaa;
}

.badge-accepted {
    color: var(--secondary-color);
    font-size: 12px;
    border: 1px solid var(--secondary-color);
    padding: 2px 6px;
    border-radius: 4px;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 20px;
    background-color: var(--surface-color);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: #ccc;
}

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

.related-card {
    display: block;
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
}

.related-thumb {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.related-info {
    padding: 16px;
}

.related-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.related-info span {
    font-size: 12px;
    color: #888;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
}

.page-btn {
    padding: 10px 24px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.page-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Footer */
.site-footer {
    background-color: #000;
    padding: 80px 0 40px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-brand h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.footer-brand p {
    color: #888;
    margin-bottom: 40px;
}

.footer-links {
    margin-bottom: 40px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--surface-color);
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-copy {
    color: #555;
    font-size: 14px;
}

/* Archive Header */
.archive-header {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(138, 43, 226, 0.1), transparent);
}

.archive-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}

.archive-title {
    font-size: 48px;
}

.faq-list {
    padding-top: 8px;
}

/* Page Template */
.page-header {
    padding: 120px 0 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 56px;
    margin-bottom: 20px;
}

.page-summary {
    font-size: 24px;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .site-nav {
        display: none;
        /* Mobile menu not implemented for brevity, assume desktop first for "biggest" */
    }

    .hero-title {
        font-size: 40px;
    }

    .post-title {
        font-size: 32px;
    }
}