/**
 * Jun88 Theme Styles
 */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

ul, ol {
    list-style: none;
}

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

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

/* Header */
.j88-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.j88-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.j88-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.j88-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
}

.j88-nav-desktop .j88-menu {
    display: flex;
    gap: 30px;
}

.j88-nav-desktop .j88-menu a {
    color: #fff;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

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

.j88-actions {
    display: flex;
    gap: 15px;
}

.j88-btn-login,
.j88-btn-register {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.j88-btn-login {
    color: #fff;
    border: 2px solid #ffd700;
}

.j88-btn-login:hover {
    background: #ffd700;
    color: #1a1a2e;
}

.j88-btn-register {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
}

.j88-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Mobile Navigation */
.j88-nav-mobile {
    display: none;
    background: #16213e;
    padding: 20px;
}

.j88-nav-mobile.active {
    display: block;
}

.j88-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.j88-mobile-menu a {
    color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.j88-mobile-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.j88-mobile-actions a {
    text-align: center;
    padding: 12px;
    border-radius: 5px;
}

/* Hero Section */
.j88-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.j88-hero-inner {
    padding: 60px 0;
}

.j88-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.j88-hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.j88-hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.j88-btn-primary,
.j88-btn-secondary {
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.j88-btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
}

.j88-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.j88-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.j88-btn-secondary:hover {
    background: #fff;
    color: #1a1a2e;
}

/* Section Headers */
.j88-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.j88-section-header h2 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.j88-section-header h3 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin-bottom: 15px;
}

/* Brand Section */
.j88-brand {
    padding: 80px 0;
    background: #fff;
}

.j88-brand-content p {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
    color: #555;
}

/* Features Section */
.j88-features {
    padding: 80px 0;
    background: #f8f9fa;
}

.j88-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.j88-feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.j88-feature-card:hover {
    transform: translateY(-5px);
}

.j88-feature-card h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.j88-feature-card p {
    color: #666;
}

/* Games Section */
.j88-games {
    padding: 80px 0;
    background: #fff;
}

.j88-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.j88-game-item {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.j88-game-item:hover {
    transform: scale(1.02);
}

.j88-game-item h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

.j88-game-item p {
    opacity: 0.9;
}

/* Why Section */
.j88-why {
    padding: 80px 0;
    background: #f8f9fa;
}

.j88-why-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.j88-why-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.j88-why-item h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
}

.j88-why-item p {
    color: #666;
}

/* CTA Section */
.j88-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    text-align: center;
}

.j88-cta-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.j88-cta-content p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* FAQ Section */
.j88-faq {
    padding: 80px 0;
    background: #fff;
}

.j88-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.j88-faq-item {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 4px solid #0f3460;
}

.j88-faq-item h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.j88-faq-item p {
    color: #666;
}

/* Footer */
.j88-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
}

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

.j88-footer h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.j88-footer p {
    opacity: 0.8;
    line-height: 1.8;
}

.j88-footer-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.j88-footer-menu a {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.j88-footer-menu a:hover {
    opacity: 1;
    color: #ffd700;
}

.j88-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.j88-copyright {
    margin-bottom: 15px;
}

.j88-seo-text {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Inner Page Styles */
.j88-steps,
.j88-promo-intro,
.j88-guide-intro,
.j88-news-intro,
.j88-contact-intro {
    padding: 60px 0;
    background: #fff;
}

.j88-steps-content,
.j88-promo-content,
.j88-guide-content,
.j88-news-content,
.j88-contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.j88-steps-content p,
.j88-promo-content p,
.j88-guide-content p,
.j88-news-content p,
.j88-contact-content p {
    margin-bottom: 15px;
    color: #555;
}

/* Steps */
.j88-step-item,
.j88-guide-item {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.j88-step-item h3,
.j88-guide-item h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
}

/* Promo Cards */
.j88-promo-list,
.j88-categories-grid,
.j88-methods-grid {
    padding: 60px 0;
    background: #f8f9fa;
}

.j88-promo-grid,
.j88-categories-grid,
.j88-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.j88-promo-card,
.j88-category-card,
.j88-method-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.j88-promo-card:hover,
.j88-category-card:hover,
.j88-method-card:hover {
    transform: translateY(-5px);
}

.j88-promo-card h3,
.j88-category-card h3,
.j88-method-card h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
}

/* Details */
.j88-promo-details,
.j88-service-hours,
.j88-latest-news {
    padding: 60px 0;
    background: #fff;
}

.j88-details-content,
.j88-hours-content,
.j88-news-list {
    max-width: 800px;
    margin: 0 auto;
}

.j88-detail-item,
.j88-hours-item,
.j88-news-item {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.j88-detail-item h3,
.j88-hours-item h3,
.j88-news-item h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
}

/* How To */
.j88-howto,
.j88-tips-section,
.j88-industry,
.j88-support-topics {
    padding: 60px 0;
    background: #f8f9fa;
}

.j88-howto-steps,
.j88-tips-grid,
.j88-industry-content,
.j88-topics-grid {
    max-width: 800px;
    margin: 0 auto;
}

.j88-howto-step,
.j88-tip-card,
.j88-industry-item,
.j88-topic-item {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.j88-howto-step h4,
.j88-tip-card h4,
.j88-industry-item h4,
.j88-topic-item h4 {
    color: #1a1a2e;
    margin-bottom: 10px;
}

/* Tips */
.j88-tips,
.j88-guide-features,
.j88-features-alt,
.j88-security {
    padding: 60px 0;
    background: #fff;
}

.j88-tips-list,
.j88-guide-list {
    max-width: 800px;
    margin: 0 auto;
}

.j88-tip-item,
.j88-guide-item {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.j88-tip-item h4,
.j88-guide-item h4 {
    color: #1a1a2e;
    margin-bottom: 8px;
}

/* Feature Boxes */
.j88-feature-box,
.j88-feature-item {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.j88-feature-box:hover,
.j88-feature-item:hover {
    transform: scale(1.02);
}

.j88-feature-box h3,
.j88-feature-item h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

/* Image Styles */
.j88-hero-image,
.j88-brand-image,
.j88-games-image,
.j88-cta-image,
.j88-faq-image,
.j88-steps-image,
.j88-tips-image,
.j88-promo-image,
.j88-howto-image,
.j88-guide-image,
.j88-categories-image,
.j88-industry-image,
.j88-methods-image {
    margin: 30px 0;
    text-align: center;
}

.j88-hero-image img,
.j88-brand-image img,
.j88-games-image img,
.j88-cta-image img,
.j88-faq-image img,
.j88-steps-image img,
.j88-tips-image img,
.j88-promo-image img,
.j88-howto-image img,
.j88-guide-image img,
.j88-categories-image img,
.j88-industry-image img,
.j88-methods-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Wrapper Styles for Image + Content */
.j88-brand-wrapper,
.j88-cta-wrapper,
.j88-faq-wrapper,
.j88-steps-wrapper,
.j88-tips-wrapper,
.j88-howto-wrapper,
.j88-guide-wrapper,
.j88-industry-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.j88-brand-wrapper,
.j88-steps-wrapper,
.j88-guide-wrapper {
    direction: rtl;
}

.j88-brand-wrapper > *,
.j88-steps-wrapper > *,
.j88-guide-wrapper > * {
    direction: ltr;
}

/* Responsive Images */
@media (max-width: 768px) {
    .j88-brand-wrapper,
    .j88-cta-wrapper,
    .j88-faq-wrapper,
    .j88-steps-wrapper,
    .j88-tips-wrapper,
    .j88-howto-wrapper,
    .j88-guide-wrapper,
    .j88-industry-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .j88-brand-wrapper,
    .j88-steps-wrapper,
    .j88-guide-wrapper {
        direction: ltr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .j88-toggle {
        display: flex;
    }
    
    .j88-nav-desktop {
        display: none;
    }
    
    .j88-actions {
        display: none;
    }
    
    .j88-hero {
        padding: 60px 0;
    }
    
    .j88-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .j88-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .j88-btn-primary,
    .j88-btn-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .j88-section-header h2 {
        font-size: 1.5rem;
    }
    
    .j88-features-grid,
    .j88-games-grid,
    .j88-promo-grid,
    .j88-categories-grid,
    .j88-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .j88-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .j88-container {
        padding: 0 15px;
    }
    
    .j88-hero-content h1 {
        font-size: 1.5rem;
    }
    
    .j88-feature-card,
    .j88-game-item,
    .j88-promo-card,
    .j88-category-card,
    .j88-method-card {
        padding: 20px;
    }
}
