/*
Theme Name: Sexy Baccarat Thai
Theme URI: https://example.com/sexy-baccarat-thai
Author: Developer
Author URI: https://example.com
Description: A luxury black and red-gold Thai baccarat/casino theme with premium dark aesthetics.
Version: 1.0.0
Text Domain: sexy-baccarat-thai
Tags: casino, baccarat, thai, dark, luxury, red-gold
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0D0D0D;
    --bg-secondary: #1A1A2E;
    --bg-card: #16213E;
    --accent-gold: #C9A96E;
    --accent-red: #E94560;
    --text-heading: #C9A96E;
    --text-white: #FFFFFF;
    --text-body: #D4D4D4;
    --link-hover: #E94560;
    --gradient-btn: linear-gradient(135deg, #C9A96E, #E94560);
    --navbar-bg: rgba(13, 13, 13, 0.95);
    --transition: all 0.3s ease;
    --shadow-red: 0 0 15px rgba(233, 69, 96, 0.3);
    --shadow-gold: 0 0 10px rgba(201, 169, 110, 0.2);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) var(--bg-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4b87a;
}

body {
    font-family: 'Sarabun', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--link-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    color: var(--text-heading);
    font-size: 2.8rem;
}

h2, h3 {
    color: var(--text-white);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.4rem;
}

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

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

/* ========== HEADER / NAVBAR ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(13, 13, 13, 0.99);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    font-family: 'Kanit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.site-logo:hover {
    color: var(--accent-gold);
    text-shadow: var(--shadow-gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--accent-gold);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(201, 169, 110, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(201, 169, 110, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ========== BUTTONS ========== */
.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-btn);
    color: var(--text-white);
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(233, 69, 96, 0.5);
    color: var(--text-white);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--accent-gold);
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    border: 2px solid var(--accent-gold);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* ========== FEATURES SECTION ========== */
.features-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid rgba(201, 169, 110, 0.1);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-red);
    border-color: rgba(233, 69, 96, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ========== POSTS GRID ========== */
.posts-section {
    padding: 80px 20px;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-body);
    opacity: 0.7;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.post-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 110, 0.1);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-red);
    border-color: rgba(233, 69, 96, 0.3);
}

.post-card .post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-card .post-content {
    padding: 25px;
}

.post-card .post-meta {
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    opacity: 0.8;
}

.post-card .post-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-white);
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
}

.post-card .post-title a {
    color: var(--text-white);
}

.post-card .post-title a:hover {
    color: var(--accent-gold);
}

.post-card .post-excerpt {
    font-size: 0.9rem;
    color: var(--text-body);
    opacity: 0.8;
    line-height: 1.6;
}

/* No thumbnail placeholder */
.post-thumbnail-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.5;
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 35px 30px;
    position: relative;
    border: 1px solid rgba(201, 169, 110, 0.1);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-gold);
    border-color: rgba(201, 169, 110, 0.3);
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.3;
    position: absolute;
    top: 15px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    padding-top: 20px;
    opacity: 0.9;
}

.testimonial-author {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.9rem;
}

/* ========== SINGLE POST / PAGE ========== */
.single-content {
    padding: 120px 20px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent-gold);
}

.breadcrumb span {
    color: var(--text-body);
    opacity: 0.6;
    margin: 0 8px;
}

.single-content .entry-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.entry-meta {
    color: var(--text-body);
    opacity: 0.6;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.entry-meta span {
    margin-right: 15px;
}

.entry-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-body p {
    margin-bottom: 1.5em;
}

.entry-body h2 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-size: 1.8rem;
}

.entry-body h3 {
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    font-size: 1.4rem;
}

.entry-body a {
    color: var(--accent-red);
    border-bottom: 1px solid transparent;
}

.entry-body a:hover {
    border-bottom-color: var(--accent-red);
}

.entry-body img {
    border-radius: 10px;
    margin: 20px 0;
}

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

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

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
}

.related-posts h2 {
    margin-bottom: 30px;
    font-size: 1.6rem;
}

/* ========== ARCHIVE PAGE ========== */
.archive-header {
    padding: 120px 20px 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.archive-header h1 {
    font-size: 2.5rem;
}

.archive-content {
    padding: 40px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(201, 169, 110, 0.3);
    color: var(--text-white);
}

.pagination a:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.pagination .current {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-white);
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--accent-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.footer-column h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: 'Kanit', sans-serif;
}

.footer-column p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-body);
    opacity: 0.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .features-grid,
    .posts-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 10px 0;
        border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    }

    .features-grid,
    .posts-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .single-content .entry-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .navbar {
        padding: 12px 15px;
    }

    .site-logo {
        font-size: 1.3rem;
    }
}
