/* ==========================================================================
   WOW388 Custom Design System & Core Stylesheet
   Premium, High-Performance Landing Page Styles
   ========================================================================== */

:root {
    --bg-main: #0a0e17;
    --bg-surface: #121826;
    --bg-surface-hover: #1b2438;
    --bg-card: #161e31;
    --bg-card-hover: #1e2942;
    
    --border-gold: #927b45;
    --border-gold-light: #d4bf8e;
    --border-dark: rgba(255, 255, 255, 0.08);
    
    --gold-primary: #fbc70f;
    --gold-gradient: linear-gradient(180deg, #fdfd9c 0%, #e29b0b 100%);
    --gold-gradient-hover: linear-gradient(180deg, #ffffff 0%, #fbc70f 100%);
    --gold-header: linear-gradient(180deg, #7a570a 0%, #523904 100%);
    --gold-table-header: linear-gradient(180deg, #d4bf8e 0%, #927b45 100%);
    
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --text-gold: #fbc70f;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-glow: 0 0 20px rgba(226, 155, 11, 0.35);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
    
    --font-family: 'Rubik', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 1. Reset & Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 75px; /* space for sticky bottom navigation */
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Container Layout */
.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 3. Header */
header {
    background: var(--gold-header);
    border-bottom: 3px solid var(--border-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 1rem;
    max-width: 980px;
    margin: 0 auto;
}

.header-wrapper .logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.header-wrapper .logo img:hover {
    transform: scale(1.03);
}

/* 4. Main Hero Section & Banner */
.hero-section {
    margin-top: 1rem;
}

.banner-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-gold);
    box-shadow: var(--shadow-glow);
}

.banner-container img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* 5. Action Buttons (DAFTAR & LOGIN) */
.btn-body {
    display: flex;
    gap: 1rem;
    margin: 1.25rem 0;
}

.btn-items {
    flex: 1;
}

.btn-items a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1rem;
    background: var(--gold-gradient);
    color: #000000;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(226, 155, 11, 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-items a:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(251, 199, 15, 0.6);
    color: #000000;
}

/* Button Animated Border Lines */
.btn-items a span {
    position: absolute;
    display: block;
}

.btn-items a span:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff);
    animation: animateTop 2s linear infinite;
}

.btn-items a span:nth-child(2) {
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #ffffff);
    animation: animateRight 2s linear 1s infinite;
}

.btn-items a span:nth-child(3) {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(270deg, transparent, #ffffff);
    animation: animateBottom 2s linear infinite;
}

.btn-items a span:nth-child(4) {
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #ffffff);
    animation: animateLeft 2s linear 1s infinite;
}

@keyframes animateTop {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes animateRight {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes animateBottom {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes animateLeft {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

/* 6. Info Table Section */
.info-section {
    margin: 1.5rem 0;
}

.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid var(--border-gold);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: var(--shadow-card);
}

.info-table th {
    background: var(--gold-table-header);
    color: #000000;
    font-size: 1.15rem;
    font-weight: 800;
    padding: 0.85rem;
    text-align: center;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.info-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-dark);
    font-size: 0.95rem;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--gold-primary);
    width: 35%;
    border-right: 1px solid var(--border-dark);
}

.info-table td:second-child {
    color: var(--text-main);
}

/* 7. Game Cards Grid */
.games-section {
    margin: 2rem 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.box-games-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.box-games {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.box-games:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(226, 155, 11, 0.3);
    border-color: var(--gold-primary);
}

.games-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.games-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.box-games:hover .games-img img {
    transform: scale(1.08);
}

.games-name {
    background: var(--border-gold);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.5rem 0.25rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 8. Article Content Section */
.article-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
}

.article-section h1 {
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.article-table td {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-dark);
    font-size: 0.9rem;
}

.article-table tr td:first-child {
    font-weight: 600;
    color: var(--gold-primary);
}

/* 9. Footer */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-dark);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--border-gold-light);
}

/* 10. Sticky Bottom Navigation Bar (Mobile & Desktop) */
.sticky-bottom-menu {
    background: #121826;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 2000;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 2px solid var(--border-gold);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
}

.sticky-bottom-menu .menu-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.2rem;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.sticky-bottom-menu .menu-items i {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.sticky-bottom-menu .menu-items:hover {
    color: var(--gold-primary);
}

/* Center Pulse "Daftar" Button */
.sticky-bottom-menu .menu-items.menu-login {
    position: relative;
}

.sticky-bottom-menu .menu-items.menu-login .menu-icons {
    position: absolute;
    top: -24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold-header);
    border: 3px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(251, 199, 15, 0.6);
    animation: beat 0.8s infinite alternate ease-in-out;
}

.sticky-bottom-menu .menu-items.menu-login .menu-icons i {
    font-size: 1.4rem;
    color: #ffffff;
    margin: 0;
}

.sticky-bottom-menu .menu-items.menu-login .menu-text {
    margin-top: 1.6rem;
    color: var(--gold-primary);
    font-weight: 700;
}

@keyframes beat {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

/* 11. Media Queries */
@media (max-width: 600px) {
    .box-games-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .games-name {
        font-size: 0.72rem;
        padding: 0.35rem 0.1rem;
    }

    .btn-body {
        gap: 0.6rem;
    }

    .btn-items a {
        font-size: 0.95rem;
        padding: 0.75rem 0.5rem;
    }

    .article-section h1 {
        font-size: 1.25rem;
    }
}

@media (max-width: 400px) {
    .box-games-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
