
:root {
    --azp-bg: linear-gradient(135deg, #d1f2e1 0%, #e1f5fe 100%);
    --azp-accent: #00b894;
    --azp-text: #2d3436;
    --azp-glass: rgba(255, 255, 255, 0.8);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--azp-bg);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--azp-text);
}

/* --- Navbar --- */
.azp-navbar {
    position: sticky; top: 0; z-index: 1000;
    background: var(--azp-glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 10px 15px;
    display: flex; align-items: center; gap: 12px;
}

.azp-logo {
    font-size: 18px; font-weight: 900; color: var(--azp-accent);
    text-decoration: none; white-space: nowrap;
    letter-spacing: -0.5px;
}

.azp-search-box {
    flex-grow: 1; background: white; border-radius: 50px;
    display: flex; align-items: center; padding: 6px 12px;
    border: 1px solid rgba(0,0,0,0.05);
}
.azp-search-box input {
    border: none; outline: none; width: 100%; padding-left: 8px; font-size: 14px;
}

.azp-cat-btn {
    background: var(--azp-accent); color: white; border: none;
    padding: 8px 12px; border-radius: 50px; cursor: pointer;
    font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 5px;
}

/* --- Hero Section --- */
.azp-hero {
    max-width: 1200px; margin: 25px auto 0; padding: 0 20px; text-align: center;
}
.azp-hero h1 { font-size: 28px; color: var(--azp-accent); margin-bottom: 10px; font-weight: 900; }
.azp-hero p { font-size: 15px; line-height: 1.6; color: #636e72;  margin: 0 auto; }

/* --- Main Content Grid --- */
.azp-main-container { max-width: 1200px; margin: 30px auto; padding: 0 15px; }

.azp-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.azp-game-card {
    background: white; border-radius: 18px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}
.azp-game-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.azp-game-card a { text-decoration: none; color: inherit; }

.azp-game-thumb { position: relative; width: 100%; aspect-ratio: 1/1; }
.azp-game-thumb img { width: 100%; height: 100%; object-fit: cover; }

.azp-tag {
    position: absolute; top: 8px; left: 8px; color: white;
    padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 800;
}
.azp-tag-new { background: #ff7675; }
.azp-tag-hot { background: #fdcb6e; }

.azp-game-info { padding: 12px; }
.azp-game-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.azp-game-meta { display: flex; justify-content: space-between; font-size: 11px; color: #999; }

/* --- Mobile Category Drawer --- */
.azp-drawer-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 2000; display: none;
}
.azp-drawer-content {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background: white; z-index: 2001; transition: 0.3s ease-in-out;
    padding: 60px 25px;
}
.azp-drawer-content.azp-open { right: 0; }
.azp-drawer-mask.azp-open { display: block; }
.azp-drawer-item { padding: 18px 0; border-bottom: 1px solid #f0f0f0; font-weight: 600; cursor: pointer; color: var(--azp-text); }
.azp-drawer-item:hover { color: var(--azp-accent); }

/* --- Footer --- */
.azp-footer {
    margin-top: 60px; padding: 50px 20px; text-align: center; border-top: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.3);
}
.azp-footer-nav { margin-bottom: 20px; }
.azp-footer-nav a { margin: 0 15px; font-size: 14px; color: var(--azp-text); text-decoration: none; font-weight: 600; transition: 0.2s; }
.azp-footer-nav a:hover { color: var(--azp-accent); }
.azp-copyright { font-size: 12px; color: #999; line-height: 1.8; max-width: 600px; margin: 0 auto; }

/* --- Back to Top --- */
.azp-btn-top {
    position: fixed; bottom: 25px; right: 20px; width: 45px; height: 45px;
    background: var(--azp-accent); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 500;
    cursor: pointer;
}
.azp-btn-top.azp-show { opacity: 1; visibility: visible; }

@media (min-width: 768px) {
    .azp-navbar { padding: 15px 5%; }
    .azp-logo { font-size: 24px; }
    .azp-game-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .azp-hero h1 { font-size: 36px; }
}
a {
    text-decoration: none;
}
