/* Enhanced Responsive Styles */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .main-content .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        margin-bottom: 30px;
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
        border-radius: 10px;
        animation: none;
    }

    .categories ul {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: flex-start;
    }

    .categories li {
        margin-bottom: 0;
        width: auto;
        flex: 1 0 calc(33.33% - 15px);
        max-width: calc(33.33% - 15px);
        min-width: 160px;
    }

    .content {
        width: 100%;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .large-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
    
    /* Reduce floating elements for performance */
    .floating-element {
        opacity: 0.05;
    }
    
    .cursor-trail-container {
        display: none; /* Disable cursor trail on smaller screens for performance */
    }

    /* Fix comparison table scroll */
    .comparison-table {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    /* Responsive promo sections */
    .featured-promo {
        flex-direction: column;
    }
    
    .promo-content, .promo-image {
        width: 100%;
    }
    
    .promo-image {
        height: 250px;
        order: -1;
    }
}

@media (max-width: 991px) {
    .header .container {
        padding: 0 15px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .auth-buttons {
        margin-left: auto;
    }

    .logo img {
        height: 40px;
    }

    .features {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .join-cta {
        flex-direction: column;
        width: 100%;
    }

    .join-btn {
        width: 100%;
    }

    .feature-box {
        padding: 20px 15px;
    }

    .comparison-table {
        overflow-x: auto;
        margin: 0 -20px;
        padding: 0 20px;
        width: calc(100% + 40px);
    }

    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .category-tabs::-webkit-scrollbar {
        height: 5px;
    }
    
    .category-tabs::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 10px;
    }
    
    .category-tabs::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        margin-right: 10px;
    }
    
    .categories li {
        flex: 1 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    
    /* Position winner notification better on tablets */
    .win-notification {
        max-width: 80%;
        left: 10%;
        right: 10%;
        bottom: 20px;
        top: auto;
    }
    
    @keyframes slideDown {
        from {
            bottom: -100px;
            opacity: 0;
        }
        to {
            bottom: 20px;
            opacity: 1;
        }
    }
    
    @keyframes slideUp {
        from {
            bottom: 20px;
            opacity: 1;
        }
        to {
            bottom: -100px;
            opacity: 0;
        }
    }

    /* Fix comparison table scroll for mobile */
    .comparison-table {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow: visible;
    }

    .table-container {
        padding-bottom: 10px;
    }

    /* Featured promotion responsive adjustments */
    .featured-promo {
        flex-direction: column;
    }
    
    .promo-content {
        padding: 20px;
    }
    
    .promo-image {
        height: 220px;
    }
    
    .promo-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .features {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

		.payment-methods {
			grid-template-columns: 1fr;
		}

    .feature-card {
        padding: 20px 10px;
    }

    .feature-card i {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 12px;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .game-card {
        height: 250px;
    }

    .large-grid .game-card {
        height: 280px;
    }

    .game-image {
        height: 120px;
    }

		.promo-grid {
			grid-template-columns: 1fr;
		}

		.gifts-grid {
			flex-direction: column;
		}

    .large-grid .game-card .game-image {
        height: 140px;
    }

    .game-card h4 {
        font-size: 16px;
        padding: 10px 10px 5px;
    }

    .game-card p {
        padding: 0 10px 10px;
        font-size: 12px;
    }

    .play-btn {
        padding: 8px;
        font-size: 13px;
        margin: 0 10px 10px;
    }
		

		.testimonials {
			flex-direction: column;
		}

    .footer-links {
        flex-direction: column;
				align-items: center;
				text-align: center;
    }

    .footer-col {
        margin-bottom: 25px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .featured-post {
        flex-direction: column;
    }

    .featured-image {
        width: 100%;
        height: 200px;
    }

    .featured-content {
        width: 100%;
        padding: 20px;
    }

    .categories li {
        flex: 1 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        min-width: 140px;
        padding: 10px;
    }
    
    .categories a i {
        font-size: 1rem;
        margin-right: 8px;
    }
    
    .win-notification {
        left: 5%;
        right: 5%;
        max-width: 90%;
    }
    
    /* Reduce animations on mobile for performance */
    .floating-elements {
        display: none;
    }
    
    .game-card::after {
        display: none;
    }
    
    .game-card:hover {
        transform: translateY(-5px);
    }
    
    /* Simplify animations for performance */
    @keyframes glowText {
        0% {
            text-shadow: 0 0 5px rgba(255, 203, 5, 0.3);
        }
        100% {
            text-shadow: 0 0 10px rgba(255, 203, 5, 0.5);
        }
    }

    /* Ensure comparison table doesn't cause page scroll */
    .comparison-table {
        max-width: 100%;
        margin: 0 0 30px 0;
    }

    /* Promo cards responsive adjustments */
    .promo-section {
        margin-bottom: 30px;
    }
    
    .featured-promo {
        border-radius: 10px;
    }
    
    .promo-image {
        height: 180px;
    }
    
    .promo-header h3 {
        font-size: 1.3rem;
    }
    
    .promo-details ul li {
        font-size: 0.9rem;
    }
    
    .promo-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 30px 15px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section h2 {
        font-size: 1.2rem;
    }

    .cta-btn, .claim-btn, .feature-btn, .play-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .auth-buttons .signup-btn, .auth-buttons .login-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .features {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .feature-boxes {
        grid-template-columns: 1fr;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ticker {
        animation-duration: 40s;
    }
    
    .floating-btn {
        right: 10px;
        bottom: 10px;
    }
    
    .signup-float-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .categories li {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Further optimize animations for small devices */
    .pulse {
        animation: pulseAnimation 3s infinite;
    }
    
    .float {
        animation-duration: 4s;
    }

    /* Further promo card adjustments for small screens */
    .promo-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .promo-tag {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .promo-header h3 {
        font-size: 1.1rem;
    }
    
    .promo-image {
        height: 150px;
    }
    
    .promo-details ul {
        padding-left: 20px;
    }
    
    .promo-details ul li {
        font-size: 0.85rem;
    }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .ticker {
        animation: none;
        transform: none;
    }
    
    .floating-elements,
    .cursor-trail-container,
    .win-notification {
        display: none !important;
    }
} 