/* AngrySloth.io - Crypto Community Hub Styles */

:root {
    --primary: #ff6b35;
    --secondary: #4ecdc4;
    --accent: #ffe66d;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #eaeaea;
    --success: #2ecc71;
    --danger: #e74c3c;
    --purple: #9b59b6;
    --gold: #f39c12;
    --silver: #bdc3c7;
    --bronze: #cd6133;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--darker) 0%, #1a1a3e 50%, var(--dark) 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--secondary), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--primary), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--accent), transparent),
        radial-gradient(2px 2px at 160px 120px, var(--secondary), transparent),
        radial-gradient(1px 1px at 230px 80px, var(--primary), transparent);
    background-size: 250px 250px;
    animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
}

.logo-icon {
    font-size: 2rem;
    animation: slothBounce 2s ease-in-out infinite;
}

@keyframes slothBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.io {
    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: rgba(255, 230, 109, 0.1);
}

.connect-wallet {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.connect-wallet:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5rem 4rem;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.glitch {
    font-family: 'Press Start 2P', cursive;
    font-size: 3.5rem;
    color: var(--primary);
    text-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary);
    animation: glitch 1s linear infinite;
    position: relative;
}

@keyframes glitch {
    2%, 64% { transform: translate(2px, 0) skew(0deg); }
    4%, 60% { transform: translate(-2px, 0) skew(0deg); }
    62% { transform: translate(0, 0) skew(5deg); }
}

.tagline {
    font-size: 1.3rem;
    color: var(--accent);
    margin: 1.5rem 0 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--light);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ff8c5a);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.stats-bar {
    display: flex;
    gap: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--light);
    opacity: 0.7;
}

/* Hero Sloth Character */
.hero-sloth {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sloth-character {
    position: relative;
    font-size: 10rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.anger-effects {
    position: absolute;
    top: -20px;
    right: -20px;
}

.anger-mark {
    font-size: 2rem;
    animation: shake 0.5s infinite;
}

.fire {
    font-size: 1.5rem;
    position: absolute;
    top: 30px;
    right: -10px;
    animation: flicker 0.3s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Game Section */
.game-section {
    padding: 6rem 3rem;
    background: linear-gradient(180deg, transparent, rgba(78, 205, 196, 0.05));
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    text-align: center;
    color: var(--light);
    opacity: 0.8;
    margin-bottom: 3rem;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(78, 205, 196, 0.3);
    box-shadow: 0 0 50px rgba(78, 205, 196, 0.1);
}

.battle-arena {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(78, 205, 196, 0.1));
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.player-side,
.enemy-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.player-info,
.enemy-info {
    text-align: center;
}

.player-name,
.enemy-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.health-bar,
.energy-bar,
.rage-bar {
    width: 200px;
    height: 25px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin: 0.3rem 0;
}

.rage-bar {
    height: 20px;
    border: 2px solid transparent;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #58d68d);
    transition: width 0.5s ease;
    border-radius: 15px;
}

.energy-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), #76d7c4);
    transition: width 0.5s ease;
    border-radius: 15px;
}

.rage-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ff0000);
    transition: width 0.5s ease;
    border-radius: 15px;
}

.rage-fill.ultimate-ready {
    background: linear-gradient(90deg, #ff4444, #ff0000, #ff6600);
    animation: rageGlow 0.5s ease-in-out infinite;
    box-shadow: 0 0 15px #ff4444;
}

@keyframes rageGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.health-bar.enemy .health-fill {
    background: linear-gradient(90deg, var(--danger), #ec7063);
}

.health-text,
.energy-text,
.rage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.rage-text {
    font-size: 0.6rem;
}

.sloth-fighter {
    font-size: 5rem;
    position: relative;
}

.player-sloth {
    transform: scaleX(1);
}

.enemy-sloth {
    transform: scaleX(-1);
}

.vs-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.vs-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
    animation: vsPulse 1s infinite;
}

@keyframes vsPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.turn-indicator {
    background: var(--accent);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Battle Log */
.battle-log {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.log-entry {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    opacity: 0.9;
}

.log-entry:last-child {
    border-bottom: none;
}

/* Action Panel */
.action-panel {
    text-align: center;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(255, 230, 109, 0.1);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn.attack:hover:not(:disabled) { border-color: var(--danger); background: rgba(231, 76, 60, 0.2); }
.action-btn.special:hover:not(:disabled) { border-color: var(--purple); background: rgba(155, 89, 182, 0.2); }
.action-btn.defend:hover:not(:disabled) { border-color: var(--secondary); background: rgba(78, 205, 196, 0.2); }
.action-btn.heal:hover:not(:disabled) { border-color: var(--success); background: rgba(46, 204, 113, 0.2); }

/* Ultimate Button Styling */
.action-btn.ultimate {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.action-btn.ultimate:hover:not(:disabled) { 
    border-color: #ff0000; 
    background: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.action-btn.ultimate.ultimate-ready {
    animation: ultimatePulse 0.5s ease-in-out infinite;
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.3);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.7);
}

@keyframes ultimatePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 35px rgba(255, 0, 0, 0.9);
    }
}

/* Screen shake for ultimate */
.screen-shake {
    animation: screenShake 0.5s ease-in-out;
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.action-name {
    font-size: 0.8rem;
    font-weight: 700;
}

.action-cost {
    font-size: 0.7rem;
    color: var(--secondary);
    margin-top: 0.3rem;
}

.find-match-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 1rem 3rem;
    border-radius: 30px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.find-match-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

/* Leaderboard Section */
.leaderboard-section {
    padding: 6rem 3rem;
}

.leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--secondary);
    background: transparent;
    color: var(--secondary);
    border-radius: 25px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--secondary);
    color: var(--dark);
}

.leaderboard-table {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 1fr 100px 150px;
    padding: 1rem 1.5rem;
    background: rgba(78, 205, 196, 0.2);
    font-weight: 700;
    color: var(--accent);
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px 150px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-row.gold { background: rgba(243, 156, 18, 0.1); }
.leaderboard-row.silver { background: rgba(189, 195, 199, 0.1); }
.leaderboard-row.bronze { background: rgba(205, 97, 51, 0.1); }

.rank { font-weight: 700; }
.name { color: var(--light); }
.wins { color: var(--success); font-weight: 700; }
.earnings { color: var(--accent); font-weight: 700; }

/* Community Section */
.community-section {
    padding: 6rem 3rem;
    background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.05));
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 3rem;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
    min-width: 200px;
}

.social-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.social-card.twitter:hover { border-color: #1da1f2; box-shadow: 0 0 30px rgba(29, 161, 242, 0.3); }
.social-card.discord:hover { border-color: #7289da; box-shadow: 0 0 30px rgba(114, 137, 218, 0.3); }
.social-card.telegram:hover { border-color: #0088cc; box-shadow: 0 0 30px rgba(0, 136, 204, 0.3); }

.social-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.social-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.social-followers {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Tokenomics Section */
.tokenomics-section {
    padding: 6rem 3rem;
}

.token-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.token-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(78, 205, 196, 0.3);
    min-width: 180px;
    transition: all 0.3s ease;
}

.token-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(255, 230, 109, 0.1);
}

.token-card h3 {
    font-size: 0.9rem;
    color: var(--light);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.token-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    margin: 0.5rem 0;
}

.token-label {
    font-size: 0.75rem;
    color: var(--secondary);
}

/* Footer */
.footer {
    padding: 3rem;
    text-align: center;
    background: rgba(15, 15, 26, 0.9);
    border-top: 1px solid rgba(78, 205, 196, 0.2);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0.5rem 0;
}

.disclaimer {
    font-size: 0.7rem !important;
    color: var(--danger);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        text-align: center;
    }
    
    .glitch {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sloth-character {
        font-size: 6rem;
    }
    
    .battle-arena {
        flex-direction: column;
        gap: 2rem;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 60px 1fr 60px 80px;
        font-size: 0.8rem;
    }
}
