:root {
    --primary-neon: #00d2ff; /* Change neon green to a premium blue to match logo */
    --primary-hover: #0099cc;
    --bg-dark: #0f172a;
    --bg-deep: #020617;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: radial-gradient(circle at top, #1e293b 0%, var(--bg-deep) 100%);
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Pill Header */
.pill-header {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.pill-nav {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-neon);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    padding-top: 8rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.edition-text {
    color: var(--primary-neon);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.app-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.5); /* Blue glow for the logo */
    border: 3px solid rgba(0, 191, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    animation: floatLogo 3s ease-in-out infinite, glowLogo 2s ease-in-out infinite alternate;
}

.app-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(0, 191, 255, 0.8);
}

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes glowLogo {
    from { filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.4)); }
    to { filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.8)); }
}

.main-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline-main {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.highlight {
    color: var(--primary-neon);
}

.sub-heading {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
}

/* Diamond Frames */
.comparison-container {
    width: 100%;
    max-width: 1000px;
}

.vs-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 320px;
}

.profile-frame {
    width: 320px !important;
    height: 320px !important;
    background: #0f172a;
    border-radius: 50% !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}

/* Premium Rotating Border Effect */
.profile-frame::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--primary-neon), transparent 50%);
    z-index: -1;
    opacity: 0.3;
    transition: var(--transition);
}

.profile-frame:hover {
    transform: scale(1.05) translateY(-10px);
}

.profile-frame:hover::before {
    opacity: 1;
    animation: rotateRing 2s linear infinite;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Ensure image itself is round */
    border: 6px solid #0f172a; /* Inner gap effect */
    display: block;
    z-index: 2;
}

.profile-frame.winner::before {
    opacity: 1;
    background: var(--primary-neon);
    box-shadow: 0 0 60px var(--primary-neon);
    animation: winnerGlow 1s ease-in-out infinite alternate;
}

@keyframes winnerGlow {
    from { transform: scale(1); box-shadow: 0 0 40px var(--primary-neon); }
    to { transform: scale(1.05); box-shadow: 0 0 80px var(--primary-neon); }
}

.profile-handle {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-white);
}

.vs-text {
    font-size: 4rem;
    font-weight: 900;
    color: white;
}

/* Stats */
.stats-section {
    margin-bottom: 2rem;
}

.total-mashes-label {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.total-mashes-count {
    font-size: 2.5rem;
    font-weight: 900;
}

.solana-link-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 4rem;
}

.solana-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.sol-icon {
    width: 24px;
    height: 24px;
}

/* Leaderboard */
.leaderboard-section {
    padding: 6rem 0;
}

.table-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-align: left;
}

.table-wrapper.glass {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow-x: auto;
}

.elo-table {
    width: 100%;
    border-collapse: collapse;
}

.elo-table th {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-weight: 800;
    border-bottom: 1px solid var(--border-color);
}

.elo-table td {
    padding: 1.5rem;
    text-align: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.elo-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.elo-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-pfp {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
}

/* Scroll Indicator */
.scroll-indicator {
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator p {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.about-content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    border-radius: 32px;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.view-section {
    transition: var(--transition);
}

.view-section.hidden {
    display: none;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-neon);
    color: black;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .vs-row {
        flex-direction: column;
        gap: 3rem;
    }
    
    .profile-frame {
        width: 220px;
        height: 220px;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .table-title {
        font-size: 2rem;
    }
}
