/* ========================================
   CATE Token - Styles
   The most purrfect meme coin on Solana
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 35, 0.8);
    --bg-card-hover: rgba(30, 30, 50, 0.9);
    
    --neon-pink: #ff2d95;
    --neon-cyan: #00f5ff;
    --neon-purple: #b24bff;
    --neon-gold: #ffd700;
    --neon-green: #39ff14;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    --gradient-secondary: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    --gradient-gold: linear-gradient(135deg, var(--neon-gold), #ff8c00);
    
    /* Typography */
    --font-display: 'Bungee', cursive;
    --font-body: 'Fredoka', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 20px;
    --container-max: 1200px;
    
    /* Effects */
    --glow-pink: 0 0 20px rgba(255, 45, 149, 0.5), 0 0 40px rgba(255, 45, 149, 0.3);
    --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.5), 0 0 40px rgba(0, 245, 255, 0.3);
    --glow-purple: 0 0 20px rgba(178, 75, 255, 0.5), 0 0 40px rgba(178, 75, 255, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Floating Cats Background */
.floating-cats {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-cat {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(10deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
    75% { transform: translateY(-40px) rotate(5deg); }
}

/* Particles Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.nav-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--glow-pink);
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 45, 149, 0.7);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--glow-pink);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 40px rgba(255, 45, 149, 0.8);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.btn-secondary:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.3rem;
}

.btn-icon {
    font-size: 1.3em;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
}

.hero-cat {
    position: relative;
    margin-bottom: 30px;
}

.cat-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

.cat-emoji {
    font-size: 8rem;
    position: relative;
    z-index: 1;
    animation: catBounce 3s infinite ease-in-out;
    filter: drop-shadow(0 0 30px rgba(255, 45, 149, 0.8));
}

@keyframes catBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.sparkles span {
    position: absolute;
    font-size: 1.5rem;
    animation: sparkle 2s infinite;
}

.sparkles span:nth-child(1) { top: 0; left: 20%; animation-delay: 0s; }
.sparkles span:nth-child(2) { top: 20%; right: 10%; animation-delay: 0.5s; }
.sparkles span:nth-child(3) { bottom: 20%; left: 10%; animation-delay: 1s; }
.sparkles span:nth-child(4) { bottom: 0; right: 20%; animation-delay: 1.5s; }

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

.hero-title {
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-family: var(--font-display);
    font-size: 5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(255, 45, 149, 0.5));
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(255, 45, 149, 0.5)); }
    to { filter: drop-shadow(0 0 40px rgba(178, 75, 255, 0.8)); }
}

.title-sub {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    letter-spacing: 3px;
    margin-top: 10px;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contract-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 30px;
    backdrop-filter: blur(10px);
}

.contract-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.contract-address {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.address-text {
    font-family: monospace;
    font-size: 1rem;
    color: var(--neon-gold);
    word-break: break-all;
}

.copy-btn {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.copy-btn:hover {
    transform: scale(1.2);
}

.copy-btn.copied {
    animation: copyPulse 0.5s ease;
}

@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: fadeInUp 1s ease 1s both;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Section Titles */
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-emoji {
    font-size: 1.2em;
}

/* About Section */
.about {
    padding: var(--section-padding);
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: var(--neon-pink);
    box-shadow: var(--glow-pink);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--neon-cyan);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Game Section */
.game-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, transparent, rgba(178, 75, 255, 0.1), transparent);
    position: relative;
    z-index: 10;
}

.game-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.game-container {
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--neon-purple);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--glow-purple);
}

.game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.score-display, .high-score-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.score-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--neon-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
}

.game-overlay, .game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 100;
}

.game-over-overlay {
    display: none;
}

.overlay-content {
    text-align: center;
    padding: 40px;
}

.overlay-cat {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: catBounce 2s infinite;
}

.overlay-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay-text {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.start-btn, .game-cta {
    margin-top: 10px;
}

.game-controls-mobile {
    display: none;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.control-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--neon-cyan);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:active {
    transform: scale(0.95);
    background: var(--neon-cyan);
}

/* Tokenomics Section */
.tokenomics {
    padding: var(--section-padding);
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.tokenomics-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.token-chart {
    position: relative;
}

.chart-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: conic-gradient(
        var(--neon-pink) 0deg,
        var(--neon-purple) 120deg,
        var(--neon-cyan) 240deg,
        var(--neon-pink) 360deg
    );
    padding: 15px;
    animation: rotate 10s linear infinite;
    box-shadow: var(--glow-purple);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chart-inner {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: rotate 10s linear infinite reverse;
}

.chart-percent {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--neon-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.chart-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.token-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.token-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 30px;
    transition: all 0.3s ease;
}

.token-item:hover {
    border-color: var(--neon-cyan);
    transform: translateX(10px);
}

.token-icon {
    font-size: 2rem;
}

.token-info h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--neon-cyan);
    margin-bottom: 5px;
}

.token-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Community Section */
.community {
    padding: var(--section-padding);
    text-align: center;
    position: relative;
    z-index: 10;
}

.community-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.social-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--neon-pink);
    box-shadow: var(--glow-pink);
}

.social-icon {
    font-size: 3rem;
}

.social-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.final-cta {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: rgba(5, 5, 10, 0.9);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 2.5rem;
}

.footer-logo .logo-text {
    font-size: 2rem;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 100px 15px 40px;
    }
    
    .cat-emoji {
        font-size: 5rem;
    }
    
    .title-line {
        font-size: 3rem;
    }
    
    .title-sub {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .game-controls-mobile {
        display: flex;
    }
    
    .tokenomics-content {
        gap: 40px;
    }
    
    .chart-circle {
        width: 220px;
        height: 220px;
    }
    
    .chart-percent {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .contract-box {
        padding: 15px 20px;
    }
    
    .address-text {
        font-size: 0.85rem;
    }
    
    .about-card {
        padding: 30px 20px;
    }
    
    .social-card {
        padding: 25px 40px;
    }
}
