:root {
    /* Colors - Dark theme but not pure black */
    --bg-color: #16161a; /* Very dark gray/slate */
    --surface-color: #1e1e24; /* Slightly lighter surface for cards */
    --surface-hover: #26262d;
    --text-main: #d0d0d5;
    --text-muted: #94a1b2;
    --accent: #d1d1c4; /* Subtle elegant beige/gray for highlights */
    --border-color: #2c2c35;

    /* Typography */
    /* Typewriter font for headers, meta, UI elements */
    --font-mono: 'Courier Prime', monospace;
    /* Clean font for long reading */
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.01;
    pointer-events: none;
    z-index: 9998;
}

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

/* --- Typography --- */
h1, h2, h3, h4, .logo, .nav-links a, .mobile-menu a, .category, .date, .read-more, .petition-icon {
    font-family: var(--font-mono);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(22, 22, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--surface-color);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.5rem 0;
    border-radius: 4px;
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
}

.dropdown-content a::after {
    display: none; /* remove underline effect for dropdown items */
}

.dropdown-content a:hover {
    background-color: var(--surface-hover);
    color: var(--text-main);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* --- Mobile Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--surface-color);
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem;
    gap: 2rem;
    border-left: 1px solid var(--border-color);
    transition: right 0.4s ease-in-out;
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Dropdown */
.mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-btn {
    cursor: pointer;
}

.mobile-dropdown-btn .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-btn .arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    display: none;
    flex-direction: column;
    padding-left: 1.5rem;
    margin-top: 1rem;
    gap: 1rem;
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: flex;
}

.mobile-dropdown-content a {
    font-size: 1rem;
    border-bottom: none;
    padding-bottom: 0;
    color: var(--text-muted);
}

.mobile-dropdown-content a:hover {
    color: var(--accent);
}

/* --- Main Content Layout --- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem 3rem;
}

/* --- Hero Section --- */
.hero {
    margin-bottom: 3rem;
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
}

/* --- Articles Grid --- */
.articles {
    margin-bottom: 4rem;
}

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

.section-header h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.divider {
    height: 1px;
    width: 100%;
    background-color: var(--border-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 4px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color);
    border-bottom: 1px solid var(--accent);
    background-color: var(--surface-hover);
    box-shadow: 0 15px 30px -10px rgba(0, 229, 255, 0.25);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.category {
    color: var(--accent);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

.read-more {
    font-size: 0.9rem;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom: 1px solid transparent;
}

.card:hover .read-more {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

/* --- Petitions Board --- */
.petitions {
    margin-bottom: 4rem;
}

.petitions-box {
    border: 1px dashed var(--border-color);
    padding: 3rem;
    background: linear-gradient(135deg, rgba(30,30,36,0.5) 0%, rgba(22,22,26,0) 100%);
    border-radius: 4px;
}

.petitions-box h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.petitions-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.petition-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-left: 3px solid var(--accent);
    border-radius: 0 4px 4px 0;
}

.petition-icon {
    color: var(--accent);
    font-weight: bold;
    margin-top: 2px;
}

.petition-text {
    font-style: italic;
    color: var(--text-main);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    background-color: var(--surface-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    letter-spacing: 2px;
    font-size: 1rem;
}

.footer-section p, .footer-section a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .card {
        padding: 1.5rem;
    }

    .petitions-box {
        padding: 1.5rem;
    }
}

/* --- Smoke Click Effect --- */
.smoke-puff {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    /* Clean white smoke gradient */
    background: radial-gradient(circle, rgba(230,230,230,0.6) 0%, rgba(200,200,200,0.2) 50%, rgba(255,255,255,0) 80%);
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    z-index: 9999;
    filter: blur(6px);
    animation: smokeAnimation 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes smokeAnimation {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    100% {
        /* Move slightly up and right to mimic smoke */
        transform: translate(-30%, -150%) scale(3);
        opacity: 0;
    }
}

/* --- Article Cards with Images --- */
.card.has-image {
    padding: 0;
    overflow: hidden;
}

.card-image-box {
    width: 100%;
    height: 170px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card.has-image:hover .card-image {
    transform: scale(1.05);
}

.card-rating-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--bg-color);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    font-family: var(--font-mono);
    font-weight: bold;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-radius: 2px;
}

.card-content-box {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- Review Page Layout --- */
.review-main {
    max-width: 800px;
    margin: 0 auto;
}

.review-article {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 3rem 4rem;
    border-radius: 4px;
}

.review-header {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: center;
}

.review-poster-container {
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.review-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-meta-box {
    display: flex;
    flex-direction: column;
}

.review-title {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    color: var(--text-main);
    line-height: 1.1;
}

.review-director {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.rating-box {
    display: inline-flex;
    flex-direction: column;
    width: 150px;
}

.rating-number {
    font-size: 3rem;
    font-family: var(--font-mono);
    color: var(--accent);
    line-height: 1;
}

.rating-scale {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 5px;
}

.rating-bar-bg {
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    margin-top: 10px;
    border-radius: 2px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background-color: var(--accent);
}

.review-content {
    margin-top: 3rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.review-content p {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
}

.back-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .review-poster-container {
        width: 150px;
        height: 225px;
    }
    .review-article {
        padding: 2rem 1.5rem;
    }
}

/* --- Simple Pages (Contact & FAQs) --- */
.page-main {
    max-width: 800px;
    margin: 0 auto;
}

.page-container {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 3rem 4rem;
    border-radius: 4px;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: 1px;
}

/* Contact Styles */
.contact-box {
    margin-top: 3rem;
    text-align: center;
    padding: 3rem 0;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.5rem;
    font-family: var(--font-mono);
    color: var(--accent);
    padding: 1rem 2rem;
    border: 1px dashed var(--accent);
    transition: all 0.3s ease;
    background-color: var(--bg-color);
}

.contact-email:hover {
    background-color: var(--accent);
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.contact-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* FAQs Styles */
.faq-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.faq-item {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
}

.faq-question {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    font-family: var(--font-sans); /* Overriding default mono for questions for readability */
    font-weight: 600;
}

.faq-answer {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .page-container {
        padding: 2rem 1.5rem;
    }
    .contact-email {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        word-break: break-all;
    }
}

/* --- Petitions Form & Thread Styles --- */
.petition-form-container {
    background-color: var(--bg-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-submit {
    display: inline-block;
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.8rem 2rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--accent);
    color: var(--bg-color);
}

.form-success-message {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    text-align: left;
    animation: fadeIn 0.5s ease-out;
}

.form-success-message h3 {
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

.form-success-message p {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Thread Styles */
.approved-petitions-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: left;
}

.petition-thread {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px dashed var(--border-color);
}

.petition-thread:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.petition-user {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.petition-content, .director-content {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 4px;
    flex-grow: 1;
}

.petition-author {
    display: block;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.petition-text {
    font-style: italic;
    color: var(--text-main);
}

.petition-director {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-left: 2rem; /* Indented to look like a reply */
}

.director-icon {
    font-family: var(--font-mono);
    color: var(--bg-color);
    background-color: var(--accent);
    padding: 0.5rem;
    font-weight: bold;
    border-radius: 2px;
}

.director-title {
    display: block;
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.director-text {
    color: var(--text-main);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .petition-director {
        margin-left: 1rem;
    }
}

/* --- Manifesto Section --- */
.manifesto {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.manifesto-box {
    position: relative;
    padding: 3rem 2rem 2rem 2rem; /* Increased top padding to prevent quote icon overlapping */
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.manifesto-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: var(--accent);
    font-family: var(--font-serif);
    line-height: 1;
    background-color: var(--bg-color);
    padding: 0 1rem;
}

.manifesto-text {
    font-family: var(--font-sans);
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.manifesto-text:last-child {
    margin-bottom: 0;
}

/* --- Translation Disclaimer & Widget --- */
#translation-disclaimer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--accent);
    color: #16161a;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: var(--font-mono);
}

/* Display disclaimer when translated by Google Translate or GTranslate */
html[lang="en"] #translation-disclaimer,
html.translated-ltr #translation-disclaimer,
html.translated-rtl #translation-disclaimer {
    display: block !important;
}

/* Shift navbar down when disclaimer is visible */
html[lang="en"] .navbar,
html.translated-ltr .navbar,
html.translated-rtl .navbar {
    top: 36px;
}

/* Hide the Google Translate top bar */
.skiptranslate iframe {
    display: none !important;
}
body {
    top: 0 !important;
}

.gtranslate_wrapper {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}
