/* --- ROOT VARIABLES & GLOBAL STYLES --- */
:root {
    --dark-bg: #0d0d0d;
    --content-bg: #1a1a1a;
    --main-red: #ff3b3b;
    --hover-red: #ff5c5c;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    height: 70px;
}

.nav-logo img {
    height: 45px;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.1);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--main-red);
    transition: width 0.3s ease;
}

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

.cta-button {
    background-color: var(--main-red);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--hover-red);
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding-top: 120px;
    text-align: center;
    background: radial-gradient(circle, rgba(255,59,59,0.1) 0%, rgba(13,13,13,0) 60%);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.data-ticker {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background-color: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-weight: 700;
}

.ticker-item {
    font-size: 1.1rem;
}

.ticker-item span {
    color: var(--main-red);
}

/* --- GENERAL CONTENT BLOCKS --- */
.content-block {
    max-width: 960px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--content-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.content-block h2 {
    font-size: 2.5rem;
    color: var(--main-red);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* --- MANIFESTO SECTION --- */
.manifesto-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.us-debt-clock {
    width: 280px;
    height: 75px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.us-debt-clock iframe {
    width: 400px;
    height: 225px;
    border: none;
    margin-top: -150px;
    margin-left: -40px;
    pointer-events: none;
}

/* --- TOKENOMICS DASHBOARD --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-item {
    background-color: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.dashboard-item h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.dashboard-item p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--main-red);
}

.dashboard-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.info-button {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.info-button:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* --- JOIN THE REBELLION SECTION --- */
.join-rebellion p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.community-button {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.community-button:hover {
    transform: scale(1.05);
}

.community-button.telegram {
    background-color: #2AABEE;
    color: white;
}

.community-button.twitter {
    background-color: #f0f0f0;
    color: #0d0d0d;
}

.spaces-schedule h3 {
    margin-bottom: 0.5rem;
}

/* --- FOOTER --- */
.main-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-contract {
    margin-bottom: 1rem;
}
.footer-contract p {
    background: #000;
    padding: 0.5rem;
    border-radius: 5px;
    display: inline-block;
    font-family: monospace;
}
.footer-contract p:hover {
    cursor: copy;
}

.footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--main-red);
}

.copyright {
    font-size: 0.9rem;
}

/* --- EFFECTS & ANIMATIONS --- */
.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    overflow: hidden;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--main-red);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #2AABEE, 2px 2px var(--main-red);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 60px, 0); }
    10% { clip: rect(40px, 9999px, 40px, 0); }
    15% { clip: rect(30px, 9999px, 50px, 0); }
    20% { clip: rect(50px, 9999px, 20px, 0); }
    25% { clip: rect(35px, 9999px, 55px, 0); }
    30% { clip: rect(45px, 9999px, 45px, 0); }
    35% { clip: rect(55px, 9999px, 35px, 0); }
    40% { clip: rect(45px, 9999px, 65px, 0); }
    45% { clip: rect(65px, 9999px, 45px, 0); }
    50% { clip: rect(25px, 9999px, 55px, 0); }
    55% { clip: rect(60px, 9999px, 30px, 0); }
    60% { clip: rect(30px, 9999px, 70px, 0); }
    65% { clip: rect(70px, 9999px, 50px, 0); }
    70% { clip: rect(50px, 9999px, 80px, 0); }
    75% { clip: rect(80px, 9999px, 60px, 0); }
    80% { clip: rect(60px, 9999px, 90px, 0); }
    85% { clip: rect(90px, 9999px, 70px, 0); }
    90% { clip: rect(70px, 9999px, 100px, 0); }
    95% { clip: rect(100px, 9999px, 80px, 0); }
    100% { clip: rect(80px, 9999px, 120px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(85px, 9999px, 90px, 0); }
    5% { clip: rect(35px, 9999px, 95px, 0); }
    10% { clip: rect(90px, 9999px, 25px, 0); }
    15% { clip: rect(25px, 9999px, 65px, 0); }
    20% { clip: rect(65px, 9999px, 15px, 0); }
    25% { clip: rect(15px, 9999px, 75px, 0); }
    30% { clip: rect(75px, 9999px, 5px, 0); }
    35% { clip: rect(5px, 9999px, 85px, 0); }
    40% { clip: rect(85px, 9999px, 25px, 0); }
    45% { clip: rect(25px, 9999px, 95px, 0); }
    50% { clip: rect(95px, 9999px, 35px, 0); }
    55% { clip: rect(35px, 9999px, 105px, 0); }
    60% { clip: rect(105px, 9999px, 45px, 0); }
    65% { clip: rect(45px, 9999px, 115px, 0); }
    70% { clip: rect(115px, 9999px, 55px, 0); }
    75% { clip: rect(55px, 9999px, 125px, 0); }
    80% { clip: rect(125px, 9999px, 65px, 0); }
    85% { clip: rect(65px, 9999px, 135px, 0); }
    90% { clip: rect(135px, 9999px, 75px, 0); }
    95% { clip: rect(75px, 9999px, 145px, 0); }
    100% { clip: rect(145px, 9999px, 85px, 0); }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .nav-links, .nav-actions .cta-button {
        display: none; /* Hide for a future mobile menu */
    }
    .navbar {
        justify-content: center; /* Center the logo on mobile */
    }
    .hero {
        min-height: 50vh;
        padding-top: 100px;
    }
    .data-ticker {
        flex-direction: column;
        gap: 0.5rem;
    }
    .content-block {
        margin: 2rem auto;
        padding: 1.5rem;
    }
}

/* --- MISSION & FAQ PAGE STYLES --- */
.mission-section h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.mission-section p {
    text-align: left;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--dark-bg);
}

.accordion-header {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--main-red);
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding: 0 1rem 1rem 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* --- DASHBOARD PAGE STYLES --- */
.chart-section {
    padding: 0;
    overflow: hidden; /* Ensures the iframe corners are rounded */
}

.chart-container {
    position: relative;
    width: 100%;
    height: 65vh; /* Makes the chart nice and tall */
}

.chart-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.calculator-section {
    max-width: 600px; /* Make calculator narrower */
}

.calculator {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
}

.calc-input-group label {
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.calc-input-group input {
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-family: var(--font-main);
}

.calc-output {
    text-align: center;
    margin-top: 1rem;
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.calc-output h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
}

.calc-output p {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--main-red);
    margin-top: 0.5rem;
}

.detailed-tokenomics-section .dashboard-item {
    text-align: left; /* Align text left for more detail */
}

/* --- COMMUNITY PAGE STYLES --- */
.hof-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hof-arrow {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hof-arrow:hover {
    background-color: var(--main-red);
    color: var(--text-primary);
    border-color: var(--main-red);
}

.trading-card {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    width: 250px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    color: var(--text-primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main-red);
}

.card-pfp-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    margin-bottom: 10px;
}

.card-pfp-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info h4 {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 32px;
}

.badge {
    width: 30px;
    height: 30px;
    background-size: cover;
    position: relative;
}
.badge-spaces { background-image: url('YOUR_SPACES_BADGE_ICON_URL'); }
.badge-burn { background-image: url('YOUR_BURN_BADGE_ICON_URL'); }
/* Add URLs for other badge icons as needed */


.hof-selector-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.hof-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hof-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hof-bubble.active, .hof-bubble:hover {
    border-color: var(--main-red);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--main-red);
}

.community-hub-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
}

.hub-card {
    margin: 0;
}

.disabled-button {
    background-color: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
}
.disabled-button:hover {
    transform: none;
    background-color: var(--border-color);
}


@media (max-width: 768px) {
    .community-hub-links {
        grid-template-columns: 1fr;
    }
}

/* --- ARSENAL PAGE STYLES --- */
.filter-menu {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-btn {
    background: var(--content-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    background-color: var(--main-red);
    color: #fff;
    border-color: var(--main-red);
}
.filter-btn.active {
    background-color: var(--main-red);
    color: #fff;
    border-color: var(--main-red);
    box-shadow: 0 0 15px var(--main-red);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.media-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--content-bg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.media-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--dark-bg);
}
.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.media-item:hover img, .media-item:hover video {
    transform: scale(1.1);
}
.media-title {
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    flex-shrink: 0;
}
.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.media-item:hover .media-overlay {
    opacity: 1;
}
.overlay-btn {
    background: var(--main-red);
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.overlay-btn:hover {
    transform: scale(1.2);
}

/* Shill Post Styles */
.shill-posts-container { display: none; max-width: 800px; margin: 40px auto; text-align: left; }
.shill-item { background: var(--content-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; margin-bottom: 30px; }
.shill-item h3 { color: var(--main-red); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 15px; }
.shill-item pre { background: var(--dark-bg); padding: 15px; border-radius: 5px; border: 1px solid var(--border-color); color: var(--text-secondary); white-space: pre-line; word-wrap: break-word; font-family: var(--font-main); font-size: 1rem; line-height: 1.6; }
.copy-btn { background: var(--main-red); color: #fff; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-weight: 700; margin-top: 15px; transition: background-color 0.3s; }
.copy-btn:hover { background-color: var(--hover-red); }
.shill-item .copy-btn { margin-bottom: 25px; }
.shill-item .copy-btn:last-of-type { margin-bottom: 0; }
