/*
Theme Name: PGWin88
Theme URI: https://pgwin88.com
Author: PGWin88
Author URI: https://pgwin88.com
Description: Professional gaming website with green & gold design - Thai Version
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pgwin88
Domain Path: /languages
*/

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Noto Sans Thai', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #0d3d0d;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #ffc107;
}

.site-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.site-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.site-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #ffc107;
    text-decoration: none;
    transition: all 0.3s;
}

.site-logo-text:hover {
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.site-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 13px;
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffc107;
    transition: width 0.3s ease;
}

.site-nav a:hover::after {
    width: 100%;
}

.site-nav a:hover {
    color: #ffc107;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-login, .btn-register {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-login {
    background-color: transparent;
    border: 2px solid #ffc107;
    color: #ffc107;
}

.btn-login:hover {
    background-color: #ffc107;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-register {
    background-color: #009933;      /* Hijau utama */
    color: #ffffff;                 /* Tulisan putih */
    padding: 12px 28px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    border: 2px solid #00ff66;      /* Garis hijau neon */
    box-shadow: 0 0 10px #00ff66;   /* Efek glow neon */
    transition: 0.3s ease-in-out;
}

.btn-register:hover {
    background-color: #009933;      /* Hijau gelap saat hover */
    box-shadow: 0 0 15px #00ff66, 0 0 25px #00ff99;
    border-color: #00ff99;
    transform: scale(1.05);
}

/* Hero Section with Banner Slider */
.hero {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(13, 61, 13, 0.7), rgba(31, 95, 31, 0.7));
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

@keyframes slideshow {
    0%, 33% { opacity: 1; }
    34%, 66% { opacity: 0; }
    67%, 100% { opacity: 0; }
}

.hero-banner:nth-child(2) {
    animation: slideshow2 6s infinite;
}

@keyframes slideshow2 {
    0%, 33% { opacity: 0; }
    34%, 66% { opacity: 1; }
    67%, 100% { opacity: 0; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 193, 7, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    z-index: 2;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffc107;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 0.8s ease;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #e8e8e8;
    animation: fadeInUp 0.8s ease;
}

.hero .btn-register {
    animation: fadeInUp 1s ease;
    padding: 15px 40px;
    font-size: 16px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features Section */
.features {
    background: linear-gradient(180deg, #0d3d0d 0%, #1a5a1a 100%);
    padding: 60px 20px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-title {
    text-align: center;
    color: #ffc107;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    color: #fff;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
    border-color: #ffb900;
}

.feature-card h3 {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 22px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 15px;
}

.feature-link {
    display: inline-block;
    color: #ffc107;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    padding: 8px 16px;
    border: 1px solid #ffc107;
    border-radius: 5px;
}

.feature-link:hover {
    background-color: #ffc107;
    color: #000;
}

/* Games Section */
.games-section {
    background: #0d3d0d;
    padding: 60px 20px;
}

.games-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: #ffc107;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.game-card {
    background: linear-gradient(135deg, rgba(31, 95, 31, 0.9), rgba(13, 61, 13, 0.9));
    border: 2px solid #ffc107;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.3);
    border-color: #ffb900;
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover img {
    transform: scale(1.08);
}

.game-card-content {
    padding: 20px;
    text-align: center;
}

.game-card-content h4 {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 18px;
}

.game-card-content p {
    font-size: 13px;
    color: #ddd;
    margin-bottom: 15px;
}

.game-link {
    display: inline-block;
    color: #ffc107;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border: 1px solid #ffc107;
    border-radius: 5px;
    transition: all 0.3s;
}

.game-link:hover {
    background-color: #ffc107;
    color: #000;
}

/* Promotions Section */
.promotions {
    background: linear-gradient(135deg, #1a5a1a 0%, #0d3d0d 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.promotions::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 1;
}

.promotions::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    z-index: 1;
}

.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.promo-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    color: white;
    transition: all 0.3s;
}

.promo-card:hover {
    background: rgba(255, 193, 7, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.2);
    border-color: #ffb900;
}

.promo-card h3 {
    color: #ffc107;
    font-size: 28px;
    margin-bottom: 15px;
}

.promo-card p {
    font-size: 14px;
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 20px;
}

.promo-btn {
    display: inline-block;
    background-color: #ffc107;
    color: #000;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid #ffc107;
}

.promo-btn:hover {
    background-color: #ffb900;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
    transform: scale(1.05);
}

/* Footer */
.site-footer {
    background: #000;
    border-top: 3px solid #ffc107;
    padding: 40px 20px;
    color: #888;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #ffc107;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ffc107;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 13px;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 50px;
}

.mb-5 {
    margin-bottom: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .site-nav {
        display: none;
    }

    .site-header-content {
        justify-content: space-between;
    }

    .features-grid, .games-grid, .promo-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 350px;
    }

    .features-title, .section-title {
        font-size: 28px;
    }

    .nav-buttons {
        gap: 5px;
    }

    .btn-login, .btn-register {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .nav-buttons {
        width: 100%;
        order: 3;
        margin-top: 10px;
    }

    .btn-login, .btn-register {
        flex: 1;
        padding: 10px 12px;
        font-size: 11px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
