/* --- V2 Glitch Title Style --- */
.content-wrapper header h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-transform: uppercase;
    margin-bottom: 1rem;
    /* Resets to remove the old neon flicker effect */
    text-shadow: none;
    animation: none;
}

/* --- Page-Specific Content Wrapper --- */
.content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 20px 60px 20px;
    position: relative;
    z-index: 1;
}

/* --- Page-Specific Header & Title --- */
header {
    text-align: center;
    margin-bottom: 40px;
}
.subtitle {
    font-size: 1.2rem;
    color: var(--light-red);
    text-shadow: 0 0 5px var(--main-red);
    margin-top: 10px;
}

/* --- Page-Specific Filter Menu --- */
.filter-menu {
    text-align: center;
    margin-bottom: 40px;
}
.filter-btn {
    background: #1e1e1e;
    color: #eee;
    border: 1px solid var(--main-red);
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.filter-btn:hover {
    background-color: var(--main-red);
    color: #fff;
}
.filter-btn.active {
    background-color: var(--main-red);
    color: #fff;
    box-shadow: 0 0 15px var(--main-red);
}

/* --- Page-Specific Media Grid --- */
.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: #1e1e1e;
    border: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
}
.media-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}
.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease;
    opacity: 0;
}
.media-item img.loaded {
    opacity: 1;
}
.media-item:hover img {
    transform: scale(1.1);
}
.media-title {
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-medium);
    text-align: center;
    background-color: #1e1e1e;
    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;
    gap: 15px;
    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);
}

/* --- Page-Specific Responsive --- */
@media (max-width: 768px) {
    .content-wrapper { padding: 80px 10px 60px 10px; }
    h1 { font-size: 2.2rem; }
    .media-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* --- Shill Posts Section --- */
.shill-posts-container {
    display: none; /* Hidden by default */
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}
.shill-item {
    background: #1e1e1e;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}
.shill-item h3 {
    color: var(--main-red);
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.shill-item pre {
    background: #121212;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-dark);
    color: var(--text-medium);
    white-space: pre-line; 
    word-wrap: break-word;
    font-family: 'Inter', sans-serif;
    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);
}

/* --- Spacing for Shill Variants --- */
.shill-item .copy-btn {
    margin-bottom: 25px; /* Adds space below each copy button */
}

.shill-item .copy-btn:last-of-type {
    margin-bottom: 0; /* Removes space from the very last button in a group */
}

/* --- V2 Glitch Effect & 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); }
}

/* --- MOBILE NAVIGATION STYLES --- */

/* The 'Buy $DEBT' button for mobile */
.buy-btn-mobile {
    display: none; /* Hidden by default */
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1100;
    background-color: var(--main-red);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}
.buy-btn-mobile:hover {
    background-color: var(--hover-red);
}

/* The hamburger icon */
.hamburger {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    cursor: pointer;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    padding: 5px;
    background-color: rgba(13, 13, 13, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 5px;
}
.hamburger div {
    width: 20px;
    height: 2px;
    background-color: #eee;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active div:nth-child(2) {
    opacity: 0;
}
.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* The slide-out menu panel */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 15px;
    width: 180px;
    background-color: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    z-index: 1099;
    padding: 10px 0;
    max-height: 80vh;
    overflow-y: auto;
}
.mobile-menu a {
    display: block;
    color: var(--text-primary);
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s, background-color 0.3s;
}
.mobile-menu a:hover {
    color: var(--main-red);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Media query to activate the mobile navigation */
@media (max-width: 768px) {
    .hamburger,
    .buy-btn-mobile {
        display: flex; /* Show the hamburger and mobile buy button */
        align-items: center;
    }

    /* This keeps the logo centered between the two fixed buttons */
    .navbar {
        justify-content: center;
    }
}
