/*
Theme Name: SEO Theme S666
Theme URI: https://example.com
Description: A lightweight SEO-friendly WordPress theme for S666 casino website
Author: Trea AI
Author URI: https://example.com
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seo-theme-s666
*/

/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Arial Unicode MS', 'Times New Roman', serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    font-size: 16px;
    /* Vietnamese language support */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

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

/* Header styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #d32f2f;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo:hover {
    color: #b71c1c;
}

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

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-menu a:hover {
    color: #d32f2f;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #9a1c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e0e0e0;
    border-color: #d32f2f;
}

/* Main content wrapper */
.main-content {
    min-height: calc(100vh - 500px);
}

/* Section styles */
.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background-color: #f9f9f9;
}

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

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border-radius: 2px;
}

.section-title-sub {
    font-size: 24px;
    color: #333;
    margin: 30px 0 20px;
    font-weight: 600;
}

/* Content text styles */
.content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.content-text p {
    margin-bottom: 15px;
}

.content-text ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-text li {
    margin-bottom: 8px;
}

/* Table styles */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.info-table thead {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: #fff;
}

.info-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.info-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.info-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.info-table tbody tr:hover {
    background-color: #f5f5f5;
}

.info-table td {
    padding: 14px 16px;
    font-size: 15px;
    color: #555;
}

/* Game summary table */
.game-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.game-table thead {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: #fff;
}

.game-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.game-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.game-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.game-table tbody tr:hover {
    background-color: #e3f2fd;
}

.game-table td {
    padding: 14px 16px;
    font-size: 15px;
    color: #555;
}

/* Features/Game categories section */
.features {
    background: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #d32f2f;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #d32f2f;
    font-weight: 600;
}

.feature-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* FAQ section */
.faq {
    background: #fff;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.faq-question {
    padding: 20px 25px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    font-size: 16px;
    margin: 0;
    color: #333;
    font-weight: 600;
    flex: 1;
}

.faq-toggle {
    font-size: 24px;
    color: #d32f2f;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-toggle.active {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fafafa;
}

.faq-answer.active {
    padding: 20px 25px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.faq-answer ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 12px;
}

.faq-answer li {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta-section .btn {
    background: #fff;
    color: #d32f2f;
    font-size: 16px;
    padding: 14px 32px;
}

.cta-section .btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: #fff;
    padding: 40px 0 30px;
}

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

.footer p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .info-table,
    .game-table {
        display: block;
        overflow-x: auto;
    }
    
    .cta-section h2 {
        font-size: 26px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .feature-item h3 {
        font-size: 20px;
    }
    
    .faq-question h3 {
        font-size: 15px;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.highlight {
    color: #d32f2f;
    font-weight: 600;
}

/* Link styles */
.content-link {
    color: #1976d2;
    text-decoration: underline;
    font-weight: 500;
}

.content-link:hover {
    color: #d32f2f;
}

/* Page title styles */
.page-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border-radius: 2px;
}

/* Contact page styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #d32f2f;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.contact-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.contact-detail {
    font-weight: 600;
    color: #d32f2f;
    margin-bottom: 15px;
}

.contact-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

/* Service hours */
.service-hours {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.hours-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1976d2;
}

.hours-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.hours-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.hours-status {
    font-weight: 600;
    font-size: 13px;
}

.hours-status.available {
    color: #388e3c;
}

/* Quick links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 40px 0;
}

.link-item a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.link-item a:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.link-icon {
    font-size: 24px;
    margin-right: 15px;
}

.link-item span {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* Contact form */
.contact-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d32f2f;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group button {
    align-self: flex-start;
    padding: 12px 32px;
    font-size: 16px;
}

.form-note {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-icon {
    font-size: 24px;
}

/* Game categories grid */
.game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.category-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #d32f2f;
}

.category-icon {
    font-size: 56px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.category-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.category-btn {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #9a1c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

/* Popular games list */
.popular-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #1976d2;
    transition: all 0.3s ease;
}

.game-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.game-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.game-info p {
    font-size: 13px;
    color: #666;
}

.play-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

/* FAQ page styles */
.faq-page {
    background: #f9f9f9;
}

.faq-categories {
    margin: 40px 0;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category .section-title {
    text-align: left;
    margin-bottom: 25px;
    font-size: 28px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }
    
    .contact-grid,
    .service-hours,
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .game-categories {
        grid-template-columns: 1fr;
    }
    
    .popular-games {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }
    
    .category-icon,
    .contact-icon {
        font-size: 40px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 60px 40px 40px;
    color: #fff;
    text-align: center;
}

.slide-caption h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.slide-caption p {
    font-size: 24px;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.4;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.8);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #fff;
}

/* Responsive slider - Tablet */
@media (max-width: 1024px) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-caption h1 {
        font-size: 40px;
    }
    
    .slide-caption p {
        font-size: 20px;
    }
}

/* Responsive slider - Mobile Landscape */
@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
    }
    
    .slide-caption {
        padding: 40px 20px 30px;
    }
    
    .slide-caption h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .slide-caption p {
        font-size: 16px;
    }
    
    .slider-btn {
        padding: 10px 15px;
        font-size: 18px;
        background: rgba(0,0,0,0.6);
    }
    
    .slider-btn.prev {
        left: 10px;
    }
    
    .slider-btn.next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Responsive slider - Mobile Portrait */
@media (max-width: 480px) {
    .hero-slider {
        height: 220px;
    }
    
    .slide-caption {
        padding: 30px 15px 20px;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
    }
    
    .slide-caption h1 {
        font-size: 20px;
        margin-bottom: 8px;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    }
    
    .slide-caption p {
        font-size: 14px;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    }
    
    .slider-btn {
        padding: 8px 12px;
        font-size: 16px;
        background: rgba(0,0,0,0.7);
    }
    
    .slider-btn.prev {
        left: 5px;
    }
    
    .slider-btn.next {
        right: 5px;
    }
    
    .slider-dots {
        bottom: 10px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Responsive slider - Small Mobile */
@media (max-width: 360px) {
    .hero-slider {
        height: 180px;
    }
    
    .slide-caption h1 {
        font-size: 18px;
    }
    
    .slide-caption p {
        font-size: 12px;
    }
}
