/*
Theme Name: GClub Thai
Theme URI: https://gclub369.org
Author: GClub
Author URI: https://gclub369.org
Description: ธีม WordPress สำหรับเว็บไซต์คาสิโนออนไลน์ GCLUB ภาษาไทย - สไตล์มืด หรูหรา พร้อมรองรับมือถือ
Version: 1.0.0
Text Domain: gclub-thai
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: dark, casino, thai, responsive, gold
*/

/* === รีเซ็ตและตั้งค่าพื้นฐาน === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #242424;
    color: #EFEFEF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* === ลิงก์ === */
a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFD700;
}

/* === คอนเทนเนอร์ === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* === ตัวอักษร === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    color: #FFFF00;
    font-size: 2.5rem;
}

h2 {
    color: #FFD700;
    font-size: 2rem;
}

h3 {
    color: #FFD700;
    font-size: 1.5rem;
}

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

/* === แถบนำทาง (Navbar) === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(23, 29, 29, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-logo a {
    font-family: 'Kanit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo img {
    height: 40px;
    width: auto;
}

/* เมนูนำทาง */
.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-navigation ul li a {
    font-family: 'Kanit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #FFFFFF;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    color: #FFD700;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover::after {
    width: 100%;
}

/* ปุ่มเมนูมือถือ */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #FFD700;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* === ส่วน Hero === */
.hero-section {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #242424 50%, #1a1a1a 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
}

.hero-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    margin: 20px auto;
}

.hero-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #cccccc;
}

/* === การ์ดเกม === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 40px 0;
}

.game-card {
    background: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.1);
}

.game-card .card-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.game-card .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.game-card .card-content {
    padding: 20px;
}

.game-card .card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.game-card .card-content h3 a {
    color: #FFD700;
}

.game-card .card-content h3 a:hover {
    color: #FFFF00;
}

.game-card .card-content p {
    font-size: 0.9rem;
    color: #aaaaaa;
    line-height: 1.5;
}

.game-card .card-content .read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #FFD700;
    font-weight: 600;
}

.game-card .card-content .read-more:hover {
    color: #FFFF00;
}

/* === ส่วนสมัครสมาชิก === */
.register-section {
    padding: 60px 0;
    background: #1e1e1e;
}

.register-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.register-image img {
    border-radius: 8px;
    width: 100%;
}

.register-steps {
    list-style: none;
    counter-reset: step;
}

.register-steps li {
    counter-increment: step;
    padding: 12px 0;
    padding-left: 50px;
    position: relative;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.register-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 12px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #242424;
    font-weight: 700;
    font-family: 'Kanit', sans-serif;
}

/* === การแบ่งหน้า === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #2d2d2d;
    color: #FFFFFF;
    border-radius: 4px;
    font-family: 'Kanit', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #FFD700;
    color: #242424;
}

.pagination .current {
    background: #FFD700;
    color: #242424;
    font-weight: 700;
}

/* === เนื้อหาบทความ === */
.single-content,
.page-content {
    padding: 120px 0 60px;
}

.article-header {
    margin-bottom: 30px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #FFD700;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #555;
}

.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #EFEFEF;
}

.article-body p {
    margin-bottom: 1.2em;
}

.article-body h2 {
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.article-body h3 {
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

.article-body ul,
.article-body ol {
    margin: 1em 0;
    padding-left: 2em;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body img {
    border-radius: 8px;
    margin: 1.5em 0;
}

.article-body blockquote {
    border-left: 4px solid #FFD700;
    padding: 15px 20px;
    margin: 1.5em 0;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 0 8px 8px 0;
}

/* === บทความที่เกี่ยวข้อง === */
.related-posts {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 40px;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* === ส่วนท้าย (Footer) === */
.site-footer {
    background: #171D1D;
    padding: 40px 0 20px;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links ul li a {
    font-size: 0.9rem;
    color: #aaaaaa;
}

.footer-links ul li a:hover {
    color: #FFD700;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #666666;
}

/* === หน้าเก็บถาวร === */
.archive-header {
    padding: 140px 0 40px;
    text-align: center;
}

.archive-header h1 {
    margin-bottom: 10px;
}

.archive-header p {
    color: #aaaaaa;
}

/* === Responsive: แท็บเล็ต === */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .register-layout {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* === Responsive: มือถือ === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: rgba(23, 29, 29, 0.98);
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }

    .main-navigation ul li a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links ul {
        justify-content: center;
    }
}

/* === Responsive: มือถือขนาดเล็ก === */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .game-card .card-content {
        padding: 15px;
    }
}

/* ==============================
   แบนเนอร์สไลด์ (Banner Slider)
   ============================== */
.hero-slider {
    width: 100%;
    overflow: hidden;
    background: #1a0533;
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

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

/* 注册按钮样式 */
.nav-register a {
    background: linear-gradient(135deg, #C9A96E, #E94560);
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-register a:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-slider {
        margin-top: 0;
    }
    .nav-register a {
        display: inline-block;
        margin-top: 8px;
    }
}
