/* 1. Pengaturan Dasar & Latar Belakang Gradasi */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* Gradien biru gelap modern */
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 2. Desain Header ala Glassmorphism (Kaca Buram) */
.glass-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Untuk browser Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.glass-header h1 {
    margin: 0;
    font-size: 34px;
    /* Efek teks gradasi warna */
    background: -webkit-linear-gradient(#00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sapaan-teks {
    color: #00ff88;
    font-weight: 600;
    margin-top: 10px;
}

/* 3. Tombol-Tombol di Atas */
.btn-keluar {
    display: none;
    margin: 10px auto;
    background-color: transparent;
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-keluar:hover {
    background-color: #ff4d4d;
    color: white;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5); /* Efek cahaya merah */
}

.nav-menu {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-nav {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-game {
    background: linear-gradient(45deg, #f09819, #edde5d);
    color: #121212;
}

.btn-game:hover {
    transform: translateY(-3px); /* Tombol sedikit melayang naik */
    box-shadow: 0 8px 20px rgba(240, 152, 25, 0.4);
}
/* Desain Baru Tombol Daftar Akun yang Serasi */
.btn-daftar {
    background: rgba(0, 242, 254, 0.1); /* Latar belakang biru transparan */
    color: #00f2fe; /* Warna teks neon cyan */
    border: 1px solid #00f2fe; /* Garis pinggir menyala */
    backdrop-filter: blur(5px); /* Efek kaca */
}

/* Efek saat tombol daftar disentuh */
.btn-daftar:hover {
    background: #00f2fe; /* Berubah jadi biru solid */
    color: #0f2027; /* Teks berubah gelap agar kontras */
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.6); /* Efek cahaya neon keluar */
    transform: translateY(-3px); /* Tombol sedikit terangkat */
}


/* 4. Kolom Pencarian yang Elegan */
.main-content {
    padding: 40px 20px;
    text-align: center;
}

.subtitle {
    color: #b3c0d1;
    font-size: 16px;
    margin-bottom: 30px;
}

.search-bar {
    width: 90%;
    max-width: 500px;
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar::placeholder { color: #aaa; }

.search-bar:focus {
    border-color: #00f2fe;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4); /* Cahaya neon biru saat mengetik */
    background: rgba(0, 0, 0, 0.5);
}

/* 5. Desain Kartu Game */
.grid-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.kartu-game {
    background: rgba(255, 255, 255, 0.05); /* Kaca buram */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    width: 260px;
    text-align: left;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* Efek saat kartu disentuh/hover */
.kartu-game:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: #00f2fe;
}

.kartu-game img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}

.kartu-game h3 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 20px;
}

.kartu-game p {
    color: #b3c0d1;
    font-size: 14px;
    margin: 5px 0;
}

/* 6. Tombol "Mainkan" di dalam kartu */
.btn-main {
    display: block;
    margin-top: 20px;
    padding: 10px;
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
    border: 1px solid #00f2fe;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-main:hover {
    background: #00f2fe;
    color: #121212;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}
.neon-glass-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff;
    /* Efek pendaran lampu neon biru aqua */
    text-shadow: 
        0 0 5px rgba(0, 243, 255, 0.6),
        0 0 10px rgba(0, 243, 255, 0.4),
        0 0 20px rgba(0, 243, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.15);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.05);
    margin-bottom: 25px;
}

/* Efek kursor mengetik yang berkedip */
#typewriter-subtitle::after {
    content: '|';
    color: #00f3ff;
    margin-left: 2px;
    animation: kedipKursor 0.7s infinite;
}

@keyframes kedipKursor {
    50% { opacity: 0; }
}
/* Container untuk merapikan posisi sapaan dan tombol */
.user-profile-neon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Style Teks Sapaan Neon Putih-Biru */
.sapaan-teks {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
    font-weight: 600;
}

/* Tombol Keluar Versi Glamour Neon Glasses */
.btn-keluar-neon {
    display: none; /* Diatur otomatis muncul via JS jika sudah login */
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ff4757;
    background: rgba(255, 71, 87, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 71, 87, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.05);
}

/* Efek Hover (Saat Kursor Diatas Tombol / Disentuh) */
.btn-keluar-neon:hover {
    color: #ffffff;
    background: #ff4757;
    border-color: #ff4757;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.6);
    transform: translateY(-1px);
}

/* Efek Saat Tombol Ditekan */
.btn-keluar-neon:active {
    transform: translateY(1px);
    box-shadow: 0 0 5px rgba(255, 71, 87, 0.4);
}

.btn-icon {
    margin-right: 4px;
    display: inline-block;
}
