/* ---
   style.css
   Completely Remade Design for Revenge Tag
   --- */

:root {
    --primary-neon: #00f2ff;
    --secondary-neon: #7000ff;
    --accent-neon: #ff00d4;
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Sigmar', sans-serif; /* Updated to match Google Font link */
}

/* --- THEME OVERRIDES --- */
body.theme-cyber {
    --primary-neon: #00f2ff;
    --secondary-neon: #7000ff;
}

body.theme-midnight {
    --primary-neon: #7000ff;
    --secondary-neon: #ff00d4;
}

/* --- GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-neon), var(--secondary-neon));
    border-radius: 10px;
}

/* --- NAVIGATION --- */
.navigationHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.navigationHeader.scrolled {
    height: 70px;
    background: rgba(0, 0, 0, 0.9);
}

.hollowTagsImage {
    height: 55px;
    filter: drop-shadow(0 0 10px var(--primary-neon));
    transition: 0.3s;
}

.hollowTagsImage:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--primary-neon));
}

.headerButtons {
    display: flex;
    gap: 30px;
}

.header-button {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 10px 0;
    transition: 0.3s;
}

.header-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-neon);
    transition: 0.3s;
}

.header-button:hover::after, .header-button.active::after {
    width: 100%;
}

.headerSocialButtons {
    display: flex;
    gap: 15px;
}

.header-social-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.header-social-button:hover {
    background: var(--primary-neon);
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary-neon);
}

/* --- BUTTONS & CTAs --- */
.cta-button, .discord-join-button, .monke-button, .filter-button, .small-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button, .discord-join-button, .monke-button {
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    color: black;
    padding: 15px 35px;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.cta-button:hover, .discord-join-button:hover, .monke-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px var(--primary-neon);
}

.filter-button {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 10px 25px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.filter-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-neon);
}

.filter-button.active {
    background: var(--primary-neon);
    color: black;
    box-shadow: 0 0 15px var(--primary-neon);
}

.small-cta {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 20px;
    font-size: 0.85rem;
    border: 1px solid var(--glass-border);
}

.small-cta:hover {
    background: var(--primary-neon);
    color: black;
    box-shadow: 0 0 15px var(--primary-neon);
}

.meta-logo {
    height: 120px;
    width: auto;
    margin: 30px auto;
    display: block;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
    transition: 0.3s;
    cursor: pointer;
}

.meta-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px var(--primary-neon));
}

.showcase-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.leaderboard-table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th {
    padding: 15px;
    border-bottom: 2px solid var(--primary-neon);
    color: var(--primary-neon);
    font-size: 1.1rem;
}

.leaderboard-table td {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.leaderboard-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-filters {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.leaderboard-filters label {
    margin-right: 15px;
    font-weight: 600;
    color: var(--primary-neon);
}

.leaderboard-filters select {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.leaderboard-filters select:focus {
    outline: none;
    border-color: var(--primary-neon);
}

.discord-widget-container {
    width: 100%;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.discord-widget-container iframe {
    display: block;
}

/* --- HOME SECTION (REVISED FOR BACKGROUND IMAGE) --- */
.home {
    height: 100vh;
    background: radial-gradient(circle at center, #1a1a2e 0%, #050505 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 
   UPDATED: Centers the logo, makes it fully visible, 
   and ensures it scales nicely without disappearing or pixelating.
*/
.home::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; 
    height: 90%;
    max-width: 1200px; /* Prevents it from being too massive on ultrawide screens */
    
    background-image: url('../images/Logo.png'); /* Ensure this file exists! */
    background-size: contain; 
    background-position: center;
    background-repeat: no-repeat;
    
    opacity: 1; /* Fully visible */
    pointer-events: none;
    z-index: 1;
    
    animation: breathingLogo 6s ease-in-out infinite alternate;
}

@keyframes breathingLogo {
    0% { transform: translate(-50%, -50%) scale(0.95); }
    100% { transform: translate(-50%, -50%) scale(1.05); }
}

.home-header {
    font-family: var(--font-heading);
    font-size: clamp(60px, 10vw, 140px);
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* UPDATED: Adds shadow so text is readable over the image */
    filter: drop-shadow(0 0 20px black) drop-shadow(0 0 10px var(--primary-neon));
    
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-neon);
    margin-bottom: 20px;
    display: block;
}

.monke-button {
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    border: none;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    color: black;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.4s;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.monke-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--primary-neon);
}

/* --- SECTIONS --- */
section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.page-content {
    padding-top: 100px;
}

.section-header {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 80px);
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-neon);
    text-transform: uppercase;
}

/* --- GRID LAYOUTS --- */
.features-container, .blogs-container, .staff-grid, .showcase-grid, .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.showcase-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-card.large {
        grid-column: span 2;
    }
}

/* --- TEXT PAGES --- */
.text-page-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 150px 5% 100px;
}

.text-content-container h1 {
    color: var(--primary-neon);
    margin-bottom: 30px;
    font-size: 3rem;
}

.text-content-container h2 {
    color: var(--secondary-neon);
    margin: 40px 0 20px;
    font-size: 1.8rem;
}

.text-content-container p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.text-content-container a {
    color: var(--primary-neon);
    text-decoration: none;
}

.text-content-container a:hover {
    text-decoration: underline;
}

/* --- CARDS --- */
.feature-card, .blog-preview, .staff-card, .showcase-card, .faq-item, .contact-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover, .blog-preview:hover, .staff-card:hover, .showcase-card:hover, .contact-card:hover {
    border-color: var(--primary-neon);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-preview {
    cursor: pointer;
    position: relative;
}

.new-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-neon);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

/* --- STAFF --- */
.staff-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid var(--primary-neon);
    padding: 5px;
}

.staff-role {
    color: var(--primary-neon);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}

.staff-card h3 {
    text-align: center;
    margin-bottom: 10px;
}

.staff-description {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.staff-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.staff-social-links a {
    color: var(--primary-neon);
    font-size: 1.5rem;
    transition: 0.3s;
}

.staff-social-links a:hover {
    color: var(--secondary-neon);
    transform: scale(1.2);
}

/* --- CONTACT --- */
.contact-icon {
    font-size: 3rem;
    color: var(--primary-neon);
    margin-bottom: 20px;
    text-align: center;
}

.contact-details {
    text-align: center;
}

.contact-details h3 {
    margin-bottom: 15px;
}

.contact-details p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.contact-link {
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.contact-link:hover {
    text-decoration: underline;
}

/* --- FAQ --- */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    padding: 25px 35px;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-arrow {
    color: var(--primary-neon);
    transition: 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-dim);
}

.faq-item.open .faq-answer {
    max-height: 500px;
    margin-top: 20px;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

/* --- BLOG POPUP --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-overlay.closing {
    opacity: 0;
}

.popup-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: 0.3s;
}

.close-popup:hover {
    background: var(--primary-neon);
    color: black;
}

.popup-header-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
}

.popup-body {
    padding: 40px;
}

.popup-body h1 {
    color: var(--primary-neon);
    margin-bottom: 10px;
}

.popup-meta {
    color: var(--text-dim);
    margin-bottom: 30px;
}

.field {
    margin-bottom: 30px;
}

.field h2 {
    color: var(--secondary-neon);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.field p {
    color: var(--text-dim);
}

/* --- BLOG SPECIFIC --- */
.blog-preview .blog-image-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
}

.blog-preview .blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.blog-preview:hover .blog-image {
    transform: scale(1.1);
}

.blog-title {
    margin-bottom: 10px;
}

.blog-meta {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* --- SHOWCASE --- */
.showcase-image-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.showcase-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-info h3 {
    margin-bottom: 10px;
}

.showcase-info p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.showcase-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* --- FOOTER --- */
.site-footer {
    background: #000;
    padding: 100px 5% 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 80px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-tagline {
    color: var(--text-dim);
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-neon);
}

.footer-link {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.footer-social-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.footer-social-icon:hover {
    background: var(--primary-neon);
    color: black;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 40px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    color: var(--text-dim);
}

.footer-copyright, .footer-credit {
    margin: 10px 0;
}

/* --- UTILITIES --- */
.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

section, .card-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#back-to-top, #theme-switcher {
    position: fixed;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}

#back-to-top { bottom: 110px; opacity: 0; visibility: hidden; }
#theme-switcher { bottom: 30px; }

#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover, #theme-switcher:hover {
    background: var(--primary-neon);
    color: black;
    box-shadow: 0 0 20px var(--primary-neon);
}

.theme-switcher {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}

.theme-switcher:hover {
    background: var(--primary-neon);
    color: black;
    box-shadow: 0 0 20px var(--primary-neon);
}

/* --- MOBILE NAV --- */
.mobile-nav-button {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-neon);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-close-button {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--primary-neon);
    cursor: pointer;
}

.mobile-nav .header-button {
    font-size: 1.5rem;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .headerButtons, .headerSocialButtons { display: none; }
    .mobile-nav-button { display: block; }
    .navigationHeader { height: 70px; }
    .home-header { font-size: 80px; }
    .section-header { font-size: 50px; }
    
    .features-container, .blogs-container, .staff-grid, .showcase-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card.large {
        grid-column: span 1;
    }
}

.header-social-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.connect-with-us {
    text-align: center;
    padding: 80px 5%;
}