/* Responsive CSS */

/* Tablet and below */
@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-6xl);
    }
    
    .hero-description {
        font-size: var(--font-size-xl);
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

/* Mobile Landscape and below */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        display: none;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .nav-mobile-top-buttons {
        display: flex;
    }
    
    .nav-mobile-toggle {
        display: block;
        margin-left: 0.5rem;
    }
    
    .nav-container {
        position: relative;
        justify-content: space-between;
    }
    
    /* Ensure proper spacing between logo and buttons */
    .nav-logo {
        flex: 1;
        max-width: calc(100% - 6rem);
    }
    
    /* Mobile Menu Buttons */
    .nav-mobile-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav-mobile-buttons .btn-agent {
        order: -1; /* 確保代理按鈕在最上方 */
    }
    
    /* Hero */
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .hero-description {
        font-size: var(--font-size-lg);
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 20rem;
        margin: 0 auto 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: var(--font-size-2xl);
    }
    
    /* Games Grid */
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    /* Promotions Grid */
    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Section Headers */
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-description {
        font-size: var(--font-size-base);
    }
    
    /* Customer Service */
    #customer-service {
        bottom: 1rem;
        right: 1rem;
    }
    
    .customer-service-button {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .customer-service-bubble {
        font-size: var(--font-size-xs);
        padding: 0.5rem 0.75rem;
        max-width: 200px;
        white-space: normal;
        text-align: center;
    }
    
    /* Cookie Consent */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        width: 100%;
        max-width: 300px;
    }
    
    .cookie-accept,
    .cookie-decline {
        flex: 1;
        text-align: center;
    }
    
    /* Back to Top */
    #back-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .back-to-top-icon {
        width: 1rem;
        height: 1rem;
    }
    
    /* Floating Elements */
    .floating-dice {
        font-size: 1.5rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
        height: 3.5rem;
    }
    
    .nav-logo-text {
        font-size: var(--font-size-xl);
    }
    
    .nav-mobile-toggle {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .nav-mobile-menu {
        padding: 1rem;
    }
    
    .nav-mobile-item {
        padding: 1rem;
        font-size: var(--font-size-lg);
        border-radius: var(--radius-lg);
    }
    
    .nav-mobile-buttons {
        gap: 0.75rem;
    }
    
    .nav-mobile-buttons .btn {
        padding: 0.875rem 1rem;
        font-size: var(--font-size-base);
    }
    
    /* Hero */
    .hero-title {
        font-size: var(--font-size-4xl);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        max-width: 100%;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 200px;
    }
    
    .stat-number {
        font-size: var(--font-size-xl);
    }
    
    /* Games */
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-card-content {
        padding: 0.75rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Features */
    .feature-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .feature-title {
        font-size: var(--font-size-lg);
    }
    
    /* Customer Service */
    .customer-service-bubble {
        right: -50px;
        max-width: 150px;
        font-size: 0.7rem;
    }
    
    /* Floating Elements - Hide on very small screens */
    .floating-elements {
        display: none;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-base);
    }
    
    .customer-service-button {
        width: 3rem;
        height: 3rem;
    }
    
    .customer-service-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .neon-text,
    .section-title,
    .hero-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        max-width: 90%;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-item,
    .game-card,
    .customer-service-button {
        transition: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    .game-card-play {
        opacity: 1;
        background: rgba(0,0,0,0.7);
    }
    
    /* Increase touch targets */
    .nav-mobile-item {
        padding: 1rem;
        font-size: var(--font-size-lg);
    }
    
    .customer-service-button {
        width: 4.5rem;
        height: 4.5rem;
    }
    
    .back-to-top {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-elements {
        display: none;
    }
    
    .hero-effects {
        animation: none;
    }
} 