/* Hacker Dashboard Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --hacker-green: #00ff41;
    --hacker-cyan: #00ffff;
    --hacker-dark: #0a0a0a;
    --hacker-darker: #000000;
    --hacker-border: #1a1a1a;
    --hacker-glow: rgba(0, 255, 65, 0.5);
    --hacker-cyan-glow: rgba(0, 255, 255, 0.5);
}

body {
    font-family: 'Courier New', 'Consolas', monospace;
    background: var(--hacker-darker);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    color: var(--hacker-green);
    position: relative;
}

/* Matrix rain effect background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.03) 2px,
        rgba(0, 255, 65, 0.03) 4px
    );
    pointer-events: none;
    z-index: 0;
    animation: matrixMove 20s linear infinite;
}

@keyframes matrixMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hacker-green), transparent);
    box-shadow: 0 0 10px var(--hacker-green);
    animation: pulseLine 2s ease-in-out infinite;
}

@keyframes pulseLine {
    0%, 100% { opacity: 0.5; width: 200px; }
    50% { opacity: 1; width: 300px; }
}

.header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 
        0 0 10px var(--hacker-green),
        0 0 20px var(--hacker-green),
        0 0 30px var(--hacker-green);
    color: var(--hacker-green);
    animation: glitch 3s infinite;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--hacker-green),
            0 0 20px var(--hacker-green),
            0 0 30px var(--hacker-green);
    }
    25% {
        text-shadow: 
            -2px 0 var(--hacker-cyan),
            2px 0 var(--hacker-green),
            0 0 10px var(--hacker-green);
    }
    50% {
        text-shadow: 
            2px 0 var(--hacker-cyan),
            -2px 0 var(--hacker-green),
            0 0 10px var(--hacker-green);
    }
    75% {
        text-shadow: 
            0 0 10px var(--hacker-green),
            0 0 20px var(--hacker-green),
            0 0 30px var(--hacker-green);
    }
}

.header p {
    font-size: 1.2em;
    color: var(--hacker-cyan);
    animation: fadeIn 1.5s ease-out;
    letter-spacing: 2px;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--hacker-green);
    border-radius: 10px;
    padding: 15px 25px;
    text-align: center;
    flex: 1;
    min-width: 150px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.4);
    border-color: var(--hacker-cyan);
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: var(--hacker-green);
    text-shadow: 0 0 10px var(--hacker-green);
}

.stat-label {
    font-size: 0.9em;
    color: var(--hacker-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Podium Container */
.podium-container {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid var(--hacker-green);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
}

.podium-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 255, 65, 0.1),
        transparent
    );
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.podium-title {
    text-align: center;
    font-size: 2em;
    color: var(--hacker-green);
    margin-bottom: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--hacker-green);
    animation: fadeIn 1s ease-out 0.4s both;
    position: relative;
    z-index: 1;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
    min-height: 300px;
    position: relative;
    z-index: 1;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0;
    animation: slideUpFadeIn 0.8s ease-out forwards;
    flex: 0 0 auto;
}

/* Ensure proper Olympic podium order: 2nd (left), 1st (center), 3rd (right) */
.podium-place.second {
    order: 1;
    animation-delay: 0.6s;
}

.podium-place.first {
    order: 2;
    animation-delay: 0.8s;
    z-index: 10;
}

.podium-place.third {
    order: 3;
    animation-delay: 1s;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.player-info {
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid var(--hacker-green);
    color: var(--hacker-green);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 10px;
    min-width: 200px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    z-index: 10;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.player-info:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    border-color: var(--hacker-cyan);
}

.player-info.first {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    color: #ffd700;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: bounceIn 1s ease-out 1.2s both, float 3s ease-in-out infinite 2.2s;
}

.player-info.second {
    background: rgba(192, 192, 192, 0.1);
    border-color: #c0c0c0;
    color: #c0c0c0;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.3);
}

.player-info.third {
    background: rgba(205, 127, 50, 0.1);
    border-color: #cd7f32;
    color: #cd7f32;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.3);
}

.player-name {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
    animation: fadeIn 0.8s ease-out 1.8s both;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-score {
    font-size: 1.1em;
    opacity: 0.9;
    animation: fadeIn 0.8s ease-out 2s both;
    font-family: 'Courier New', monospace;
}

.player-breakdown {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
    font-size: 0.85em;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.breakdown-label {
    color: var(--hacker-cyan);
    opacity: 0.8;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breakdown-value {
    color: var(--hacker-green);
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 0 0 5px var(--hacker-green);
}

.medal {
    font-size: 3em;
    margin-bottom: 10px;
    display: inline-block;
    animation: rotateIn 1s ease-out 1.5s both, spin 2s linear infinite 2.5s;
    filter: drop-shadow(0 0 10px currentColor);
}

.podium-stand {
    width: 200px;
    background: rgba(0, 255, 65, 0.2);
    border: 2px solid var(--hacker-green);
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hacker-green);
    font-size: 2em;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    transform-origin: bottom;
    animation: growUp 0.8s ease-out forwards;
    opacity: 0;
    font-family: 'Courier New', monospace;
}

.podium-stand.second {
    height: 150px;
    animation-delay: 0.7s;
    background: rgba(192, 192, 192, 0.2);
    border-color: #c0c0c0;
    color: #c0c0c0;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.3);
}

.podium-stand.first {
    height: 200px;
    animation-delay: 0.9s;
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.podium-stand.third {
    height: 120px;
    animation-delay: 1.1s;
    background: rgba(205, 127, 50, 0.2);
    border-color: #cd7f32;
    color: #cd7f32;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
}

/* Search and Filter */
.search-container {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid var(--hacker-green);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--hacker-green);
    border-radius: 5px;
    padding: 12px 15px;
    color: var(--hacker-green);
    font-family: 'Courier New', monospace;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    border-color: var(--hacker-cyan);
}

.search-input::placeholder {
    color: rgba(0, 255, 65, 0.5);
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-group-label {
    color: var(--hacker-cyan);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
    min-width: 100px;
}

.filter-btn {
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid var(--hacker-green);
    color: var(--hacker-green);
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--hacker-green);
    color: var(--hacker-darker);
    box-shadow: 0 0 20px var(--hacker-green);
    font-weight: bold;
}

/* Other Players */
.other-players {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid var(--hacker-green);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.other-players-title {
    text-align: center;
    font-size: 2em;
    color: var(--hacker-green);
    margin-bottom: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--hacker-green);
    animation: fadeIn 1s ease-out 1.4s both;
}

.players-list {
    display: grid;
    gap: 15px;
}

.player-card {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--hacker-green);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInRight 0.6s ease-out forwards;
    backdrop-filter: blur(5px);
}

.player-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.4);
    border-color: var(--hacker-cyan);
    background: rgba(0, 255, 65, 0.1);
}

.player-card-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rank-number {
    font-size: 2em;
    font-weight: bold;
    color: var(--hacker-green);
    min-width: 50px;
    text-align: center;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px var(--hacker-green);
    transition: all 0.3s ease;
}

.player-card:hover .rank-number {
    transform: scale(1.2) rotate(5deg);
    color: var(--hacker-cyan);
    text-shadow: 0 0 15px var(--hacker-cyan);
}

.player-details h3 {
    font-size: 1.3em;
    color: var(--hacker-green);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-details p {
    color: var(--hacker-cyan);
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.player-score-badge {
    background: rgba(0, 255, 65, 0.2);
    border: 2px solid var(--hacker-green);
    color: var(--hacker-green);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--hacker-green);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.score-formula {
    font-size: 0.7em;
    opacity: 0.8;
    color: var(--hacker-cyan);
    font-weight: normal;
    margin-top: 5px;
}

.player-card:hover .player-score-badge {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    border-color: var(--hacker-cyan);
    color: var(--hacker-cyan);
}

.player-stats-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.stat-badge {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--hacker-green);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    color: var(--hacker-green);
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.stat-badge.first-blood {
    border-color: #ff4444;
    color: #ff6666;
    background: rgba(255, 68, 68, 0.1);
}

.stat-badge.machines {
    border-color: var(--hacker-cyan);
    color: var(--hacker-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.stat-badge.writeups {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.player-card:hover .stat-badge {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 255, 65, 0.3);
}

.player-card:hover .stat-badge.first-blood {
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}

.player-card:hover .stat-badge.machines {
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.4);
}

.player-card:hover .stat-badge.writeups {
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1.1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes spin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(5deg) scale(1.1);
    }
    75% {
        transform: rotate(-5deg) scale(1.1);
    }
}

@keyframes growUp {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Credit Text */
.credit {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: var(--hacker-cyan);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    opacity: 0.7;
    z-index: 1000;
    text-shadow: 0 0 10px var(--hacker-cyan);
    animation: fadeIn 2s ease-out 1s both;
    transition: all 0.3s ease;
}

.credit:hover {
    opacity: 1;
    transform: scale(1.05);
    text-shadow: 0 0 15px var(--hacker-cyan);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .podium {
        flex-direction: column;
        align-items: center;
    }

    .podium-place.second {
        order: 1;
    }

    .podium-place.first {
        order: 2;
    }

    .podium-place.third {
        order: 3;
    }

    .player-info.first {
        transform: scale(1);
    }

    .podium-stand {
        width: 150px;
    }

    .player-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .search-box {
        flex-direction: column;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }

    .credit {
        font-size: 0.8em;
        bottom: 10px;
        left: 10px;
    }
}

