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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Page Styles */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.page-content {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 20px;
}

.page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-description {
    font-size: 1.2rem;
    color: #7f8c8d;
    line-height: 1.6;
}

.page-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.page-body h1,
.page-body h2,
.page-body h3 {
    color: #2c3e50;
    margin: 30px 0 15px 0;
}

.page-body h1 {
    font-size: 2rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.page-body h2 {
    font-size: 1.6rem;
    color: #e74c3c;
}

.page-body h3 {
    font-size: 1.3rem;
}

.page-body p {
    margin-bottom: 20px;
}

.page-body ul {
    margin: 20px 0;
    padding-left: 30px;
}

.page-body li {
    margin-bottom: 10px;
}

.page-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.last-updated {
    color: #7f8c8d;
    font-style: italic;
}

/* Page List Styles */
.page-list {
    margin-top: 30px;
}

.page-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #e74c3c;
}

.page-item h2 {
    margin-bottom: 10px;
}

.page-item h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-item h2 a:hover {
    color: #e74c3c;
}

.page-item time {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo h1 {
    color: #e74c3c;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-logo {
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #e74c3c;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.current-lang {
    color: #e74c3c;
    font-weight: bold;
    padding: 0.5rem;
}

.lang-link {
    color: #333;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.lang-link:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 1rem;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.iframe-container {
    width: 85%;
    height: 100%;
    position: relative;
    margin: 0 auto;
}

.iframe-default,
.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 10px;
}


/* Game Box Sections */
.game-box-section {
    padding: 15px 0;
    background: white;
}

.game-box-section.alt-bg {
    background: #f8f9fa;
}

.game-box-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.game-box-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: left;
}

.game-box-section h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: #e74c3c;
    text-align: left;
}

.game-box-section p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

/* 5 Column Game Grid */
.game-grid-5col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 1199px) and (min-width: 900px) {
    .game-grid-5col {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 899px) and (min-width: 600px) {
    .game-grid-5col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 599px) {
    .game-grid-5col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Simplified Game Items */
.game-link {
    text-decoration: none;
    color: inherit;
}

.game-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.game-item .game-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.game-item .game-image {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.game-item span {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Game specific gradients */
.game-item[data-game="love-money"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.game-item[data-game="money-master"] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.game-item[data-game="love-quest"] {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.game-item[data-game="lucky-wheel"] {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.game-item[data-game="treasure-hunt"] {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.game-item[data-game="card-master"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-item[data-game="slot-adventure"] {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.game-item[data-game="puzzle-kingdom"] {
    background: linear-gradient(135deg, #96fbc4 0%, #f9f047 100%);
}

.game-item[data-game="dice-fortune"] {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.game-item[data-game="magic-slots"] {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.game-item[data-game] span {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Game Image Styles */
.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.game-card-link:hover .game-image {
    transform: scale(1.05);
}

/* Game Placeholder Styles */
.game-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.game-card-link:hover .game-placeholder {
    transform: scale(1.05);
}

.game-card-link:hover .game-placeholder::before {
    opacity: 0.1;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    z-index: 1;
    position: relative;
}

.game-label {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
    position: relative;
}

/* Different gradient backgrounds for each game */
.game-placeholder[data-game="love-money"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.game-placeholder[data-game="money-master"] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.game-placeholder[data-game="love-quest"] {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.game-placeholder[data-game="lucky-wheel"] {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.game-placeholder[data-game="treasure-hunt"] {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.game-placeholder[data-game="card-master"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-placeholder[data-game="slot-adventure"] {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.game-placeholder[data-game="puzzle-kingdom"] {
    background: linear-gradient(135deg, #96fbc4 0%, #f9f047 100%);
}

.game-placeholder[data-game="dice-fortune"] {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.game-placeholder[data-game="magic-slots"] {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.game-card {
    background: white;
    border-radius: 15px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.game-card.featured {
    border: 2px solid #e74c3c;
}

.game-thumbnail {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.mini-iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(45deg, #3498db, #9b59b6);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.game-preview-placeholder,
.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    color: white;
    text-align: center;
    padding: 20px;
}

.featured-placeholder {
    background: linear-gradient(45deg, #f1c40f, #e67e22);
}

.preview-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.game-preview-placeholder h4,
.preview-placeholder h4 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: bold;
}

.preview-content {
    text-align: center;
}

.preview-content .preview-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.preview-content p {
    margin: 10px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.game-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.play-btn {
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.play-btn.disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.play-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.play-btn.beta {
    background: linear-gradient(45deg, #3498db, #9b59b6);
}

/* About Section */
.about-section {
    padding: 15px 0;
    background: white;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: left;
}

.about-content h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: #e74c3c;
    text-align: left;
}

.about-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}


.features-list {
    list-style: none;
    margin: 1.5rem 0;
}

.features-list li {
    margin-bottom: 1rem;
    padding-left: 0;
    color: #555;
    line-height: 1.6;
}

.game-preview {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.preview-iframe {
    width: 100%;
    height: 300px;
    border: none;
    pointer-events: none;
}

/* Tips Section */
.tips-section {
    padding: 15px 0;
    background: #f8f9fa;
}

.tips-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.tips-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: left;
}

.tips-section h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: #e74c3c;
    text-align: left;
}

.tips-section p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.tips-section ul {
    margin-bottom: 2rem;
}

.tips-section li {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}


.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}


/* CTA Section */
.cta-section {
    padding: 15px 0;
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.cta-button {
    background: white;
    color: #e74c3c;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

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

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #e74c3c;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

.footer-bottom a {
    color: #e74c3c;
    text-decoration: none;
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }
    .language-switcher {
        margin-left: 1rem;
        gap: 0.5rem;
    }
    .current-lang,
    .lang-link {
        padding: 0.3rem;
        font-size: 0.9rem;
    }


    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .game-grid-5col {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }


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

    .cta-content h2 {
        font-size: 2rem;
    }

    .about-content h2,
    .tips-section h2,
    .game-box-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
    }

    .iframe-container {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 70px;
    }

    .iframe-container {
        width: 95%;
    }


    .container {
        padding: 0 15px;
    }

    .game-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-grid-5col {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-image {
        height: 150px;
    }

    .game-card {
        margin: 0 10px;
    }
}