/*
Theme Name: CD88Game Theme
Description: A responsive WordPress theme for cd88game.com with English/Thai language support
Author: CD88Game
Version: 1.0
Text Domain: cd88game
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans Thai', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-logo {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.site-logo:hover {
    color: #ffd700;
    transition: color 0.3s ease;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-cta {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    transform: translateY(-2px);
}

/* Navigation */
.main-nav {
    margin-top: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-cta {
    background: rgba(255, 215, 0, 0.2) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    border: 2px solid #ffd700 !important;
    color: #ffd700 !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: #ffd700 !important;
    color: #667eea !important;
}

/* Main Content */
.site-main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    background: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Article Styles */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #667eea;
}

.article-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 300;
}

/* CTA Buttons */
.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: white;
}

.cta-button.large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.cta-button.final {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    animation: pulse 2s infinite;
}

.cta-button.final:hover {
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.cta-section {
    text-align: center;
    margin: 2rem 0;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.subsection-title {
    font-size: 1.4rem;
    color: #34495e;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

/* Lists */
.pros-cons-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pros, .cons {
    padding: 1.5rem;
    border-radius: 8px;
    background: #f8f9fa;
}

.pros {
    border-left: 4px solid #27ae60;
}

.cons {
    border-left: 4px solid #e74c3c;
}

.check-list {
    list-style: none;
    margin: 1rem 0;
}

.check-list li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.check-list li:before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Cards */
.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.platform-card {
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.platform-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 1rem;
}

/* Card CTA Buttons */
.card-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Featured Card */
.featured-card {
    position: relative;
    border: 3px solid #ffd700;
    background: linear-gradient(135deg, #fff8e1, #ffffff);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ffd700, #ffb300);
    color: #333;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.3);
}

.featured-cta {
    background: linear-gradient(45deg, #ffd700, #ffb300);
    color: #333 !important;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.featured-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: #333 !important;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    border: 2px solid #27ae60;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.highlight-box h4 {
    color: #27ae60;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.inline-cta {
    background: #e8f4fd;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.payment-highlight {
    background: linear-gradient(135deg, #fff5e6, #e8f5e8);
    border: 2px solid #f39c12;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.future-highlight {
    background: linear-gradient(135deg, #f3e5f5, #e8f5e8);
    border: 2px solid #9b59b6;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.comparison-note {
    font-style: italic;
    color: #7f8c8d;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.solution-note {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 5px;
    color: #2c3e50;
    font-weight: 500;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.final-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.final-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 0.5rem 0;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-benefits {
    list-style: none;
    padding: 0;
}

.footer-benefits li {
    margin: 0.8rem 0;
    color: #ecf0f1;
}

.footer-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.footer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    color: white;
}

.footer-button.featured {
    background: linear-gradient(45deg, #ffd700, #ffb300);
    color: #333;
}

.footer-button.featured:hover {
    color: #333;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.search-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-terms a {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    padding: 5px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-terms a:hover {
    background: #ffd700;
    color: #333;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.disclaimer {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin-top: 0.5rem;
}

.social-link {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

.social-link:hover {
    transform: translateY(-2px);
    color: white;
}

/* SEO Links Grid */
.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.seo-column h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.seo-column ul {
    list-style: none;
    padding: 0;
}

.seo-column li {
    margin: 0.5rem 0;
}

.seo-column a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.seo-column a:hover {
    color: #ffd700;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
    animation: bounce 2s infinite;
}

.floating-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.floating-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    color: white;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

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

    .nav-menu {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .content-wrapper {
        padding: 2rem 1rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .pros-cons-list {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .floating-cta {
        bottom: 10px;
        right: 10px;
    }

    .floating-button {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .final-cta {
        padding: 2rem 1rem;
    }

    .final-cta h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .content-wrapper {
        padding: 1.5rem 1rem;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .language-switcher {
        width: 100%;
        justify-content: center;
    }

    .search-terms {
        justify-content: center;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .featured-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .language-switcher,
    .floating-cta,
    .cta-button,
    .footer-button {
        display: none;
    }

    .content-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
