/* style.css */
:root {
    --primary-color: #00ffcc;
    --bg-color: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.9);
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: #fff;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 30px 15px;
}

header h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    margin-bottom: 20px;
}

#search {
    width: 90%;
    max-width: 400px;
    padding: 12px;
    margin: 0 auto 20px;
    display: block;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
}

#search::placeholder {
    color: #ccc;
}

.nav-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 15px 20px;
}

.nav-categories a {
    text-decoration: none;
    color: inherit;
}

.category {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    width: 150px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
}

.category:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 15px var(--primary-color);
}

.category i {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.category h2 {
    margin: 0;
    font-size: 1.3em;
}

.latency-info {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.7em;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 5px;
    border-radius: 4px;
}

.latency-good {
    color: #4ade80;
}

.latency-warning {
    color: #ff6b6b;
}

.latency-neutral {
    color: #aaa;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 0 15px 20px;
}

.card {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 12px var(--primary-color);
}

.card img {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
}

.card h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.card p {
    margin: 0 0 12px 0;
    font-size: 0.85em;
    color: #ccc;
    line-height: 1.4;
}

.game-access-button {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9em;
    min-width: 60px;
}

.game-access-button:hover {
    background: #00e6b8;
}

.game-access-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.game-access-button:hover::after {
    left: 100%;
}

.language-switcher {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

.language-switcher button {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
    margin-left: 5px;
    box-sizing: border-box;
}

.language-switcher button:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.browser-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.browser-prompt-modal {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 30px;
    width: 85%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 30px var(--primary-color);
}

.browser-prompt-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.browser-prompt-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--primary-color);
}

.browser-prompt-message {
    color: #fff;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.browser-action-button {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.browser-action-button:hover {
    background: #00e6b8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.browser-action-button.copy {
    background: #2c3e50;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .category {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px 15px;
    }
    
    .card {
        padding: 12px;
    }
    
    .card img {
        width: 40px;
        height: 40px;
    }
    
    .card h3 {
        font-size: 1em;
    }
    
    .card p {
        font-size: 0.8em;
    }
    
    .game-access-button {
        padding: 10px 18px;
        font-size: 0.9em;
        min-width: 50px;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .language-switcher button {
        padding: 6px 10px;
        font-size: 0.8em;
        margin-left: 3px;
    }

    .latency-info {
        font-size: 0.6em;
        padding: 1px 3px;
    }
    
    .browser-prompt-modal {
        padding: 20px;
        width: 90%;
    }
    .browser-prompt-title {
        font-size: 1.5em;
    }
    .browser-prompt-message {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 10px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    #search {
        width: 95%;
        padding: 10px;
        font-size: 0.9em;
    }
    
    .nav-categories {
        gap: 10px;
        padding: 0 10px 15px;
    }
    
    .category {
        padding: 12px;
        width: 100%;
        max-width: 280px;
    }
    
    .category i {
        font-size: 1.6em;
    }
    
    .category h2 {
        font-size: 1.2em;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 8px 12px;
    }
    
    .card {
        padding: 10px;
    }
    
    .card img {
        width: 35px;
        height: 35px;
        margin-bottom: 6px;
    }
    
    .card h3 {
        font-size: 0.95em;
        margin-bottom: 6px;
    }
    
    .card p {
        font-size: 0.78em;
        margin-bottom: 10px;
    }
    
    .game-access-button {
        padding: 9px 16px;
        font-size: 0.85em;
    }

    .latency-info {
        top: 6px;
        right: 6px;
        font-size: 0.55em;
    }
}