@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #00ff00;
    font-family: 'Press Start 2P', cursive;
    line-height: 1.6;
    overflow-x: hidden;
    background-attachment: fixed;
}

/* Pixel grid background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,0,0.02) 2px, rgba(0,255,0,0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,255,0,0.02) 2px, rgba(0,255,0,0.02) 4px);
    pointer-events: none;
    z-index: -1;
}

/* Header */
header {
    text-align: center;
    padding: 2rem;
    background: rgba(22, 33, 62, 0.95);
    border-bottom: 4px solid #00ff00;
    box-shadow: 0 8px 0 rgba(0, 255, 0, 0.3);
    position: relative;
}

.server-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: blink 1s infinite;
}

.status-dot.offline {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

header .logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px #00ff00);
}

header .logo-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00, 0 4px 0 rgba(0, 0, 0, 0.5);
    margin: 10px 0;
}

header .tagline {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #ffff00;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

/* Banner */
.banner {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.8) 100%);
    border: 3px solid #00ff00;
    margin: 20px;
    box-shadow: 5px 5px 0 rgba(0, 255, 0, 0.2), 10px 10px 0 rgba(0, 0, 0, 0.3);
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, transparent 30%, rgba(0,255,0,0.1) 50%, transparent 70%);
    pointer-events: none;
}

.banner h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00, 0 3px 0 rgba(0, 0, 0, 0.5);
    word-spacing: 0.2em;
}

.banner p {
    font-size: 0.85rem;
    margin-bottom: 2rem;
    color: #ffff00;
}

.cta-button {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    border: 3px solid #00ff00;
    padding: 12px 30px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 3px 3px 0 rgba(0, 255, 0, 0.3), 6px 6px 0 rgba(0, 0, 0, 0.5);
    margin: 10px;
}

.cta-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(0, 255, 0, 0.5), 8px 8px 0 rgba(0, 0, 0, 0.5);
}

.cta-button:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 rgba(0, 255, 0, 0.3);
}

/* Features Section */
.features {
    padding: 3rem 2rem;
    margin: 20px;
}

.features h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    background: rgba(0, 255, 0, 0.08);
    border: 3px solid #00ff00;
    padding: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 3px 3px 0 rgba(0, 255, 0, 0.2);
}

.feature:hover {
    background: rgba(0, 255, 0, 0.15);
    transform: translate(-4px, -4px);
    box-shadow: 6px 6px 0 rgba(0, 255, 0, 0.3), 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.feature h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #00ff00;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.feature p {
    font-size: 0.7rem;
    color: #ffff00;
}

.tooltip {
    font-size: 0.65rem;
    color: #00ff00;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    padding: 8px;
    margin-top: 12px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.feature:hover .tooltip {
    opacity: 1;
    max-height: 100px;
}

/* Leaderboard Section */
.leaderboard-section {
    padding: 3rem 2rem;
    margin: 20px;
    background: rgba(22, 33, 62, 0.7);
    border: 3px solid #00ff00;
    box-shadow: 5px 5px 0 rgba(0, 255, 0, 0.2);
}

.leaderboard-section h2 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.leaderboard {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #00ff00;
    background: rgba(0, 255, 0, 0.05);
}

.leaderboard table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.leaderboard th {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 12px;
    border: 1px solid #00ff00;
    text-align: left;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.leaderboard td {
    padding: 10px 12px;
    border: 1px solid rgba(0, 255, 0, 0.5);
    color: #ffff00;
}

.leaderboard tr:nth-child(even) {
    background: rgba(0, 255, 0, 0.05);
}

.leaderboard tr:hover {
    background: rgba(0, 255, 0, 0.1);
}

/* Quiz Section */
.quiz-section {
    padding: 3rem 2rem;
    margin: 20px;
    background: rgba(22, 33, 62, 0.7);
    border: 3px solid #00ff00;
    box-shadow: 5px 5px 0 rgba(0, 255, 0, 0.2);
}

.quiz-section h2 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-question {
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: #ffff00;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.quiz-option {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.quiz-option:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: scale(1.05);
    box-shadow: 3px 3px 0 rgba(0, 255, 0, 0.3);
}

.quiz-option.selected {
    background: #00ff00;
    color: #000;
    font-weight: bold;
    box-shadow: 4px 4px 0 rgba(0, 255, 0, 0.5);
}

#quizResult {
    text-align: center;
    padding: 20px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    color: #ffff00;
    font-size: 0.8rem;
    display: none;
    margin-top: 15px;
}

/* Tips Section */
.tips-section {
    padding: 3rem 2rem;
    margin: 20px;
}

.tips-section h2 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.tip-card {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    padding: 20px;
    box-shadow: 3px 3px 0 rgba(0, 255, 0, 0.2);
    transition: all 0.3s;
}

.tip-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(0, 255, 0, 0.3);
}

.tip-card h4 {
    color: #00ff00;
    margin-bottom: 10px;
    font-size: 0.85rem;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.tip-card p {
    font-size: 0.7rem;
    color: #ffff00;
    line-height: 1.4;
}

/* Updates Section */
.updates {
    text-align: center;
    padding: 3rem 2rem;
    margin: 20px;
    background: rgba(22, 33, 62, 0.7);
    border: 3px solid #00ff00;
    box-shadow: 5px 5px 0 rgba(0, 255, 0, 0.2);
}

.updates h2 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.updates-content {
    font-size: 0.8rem;
    color: #ffff00;
}

.updates-content p {
    margin: 10px 0;
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 3rem 2rem;
    margin: 20px;
    background: rgba(22, 33, 62, 0.7);
    border: 3px solid #00ff00;
    box-shadow: 5px 5px 0 rgba(0, 255, 0, 0.2);
}

.contact h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.contact p {
    font-size: 0.85rem;
    color: #ffff00;
    margin-bottom: 1.5rem;
}

.discord-btn {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    border-color: #5865f2;
}

.discord-btn:hover {
    background: linear-gradient(135deg, #6b77f4, #5865f2);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #000;
    border-top: 4px solid #00ff00;
    font-size: 0.7rem;
    color: #00ff00;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .logo {
        font-size: 1.8rem;
    }
    
    .banner h1 {
        font-size: 1.3rem;
    }
    
    .banner p, header .tagline {
        font-size: 0.7rem;
    }
    
    .features-grid, .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .feature, .tip-card {
        padding: 15px;
    }
    
    .leaderboard table {
        font-size: 0.65rem;
    }
}
