/* Responsive Styles */

/* Large Devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .vip-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .invite-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .invite-right {
        display: flex;
        justify-content: center;
    }
    
    .invite-stats {
        max-width: 400px;
    }
}

/* Medium Devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    /* Header */
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile Menu Open */
    .main-nav.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .main-nav.active li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav.active li:last-child {
        border-bottom: none;
    }
    
    /* Hero Section */
    .hero .container,
    .invite-friends-preview .container,
    .featured-promotion .container,
    .invite-cta .container,
    .ranking-tips .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content, 
    .invite-content,
    .featured-content,
    .cta-content,
    .tips-content {
        order: 1;
    }
    
    .hero-image, 
    .invite-image,
    .featured-image,
    .cta-image,
    .tips-image {
        order: 0;
        margin-bottom: 30px;
    }
    
    .invite-content h2,
    .featured-content h2,
    .cta-content h2,
    .tips-content h2 {
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .featured-benefits li {
        justify-content: center;
    }
    
    .tip-text {
        text-align: left;
    }
    
    /* Social Share Buttons */
    .social-share-buttons {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-media {
        justify-content: center;
    }

    /* Mobile Bottom Buttons */
    .mobile-bottom-buttons {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        padding: 10px 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        justify-content: space-between;
    }

    .mobile-bottom-buttons .register-btn,
    .mobile-bottom-buttons .login-btn {
        flex: 1;
        text-align: center;
        margin: 0 5px;
    }

    body {
        padding-bottom: 60px;
    }
}

/* Small Devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .container {
        width: 95%;
    }
    
    .auth-buttons {
        display: none;
    }
    
    /* Hero Section */
    .hero {
        padding: 50px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .primary-btn, 
    .secondary-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Features, Promotions, VIP Plans */
    .features-grid,
    .promotions-grid,
    .vip-grid,
    .events-grid,
    .rewards-grid,
    .top-players {
        grid-template-columns: 1fr;
    }
    
    /* Featured Promotions */
    .featured-promotion .container {
        gap: 30px;
    }
    
    /* Rankings */
    .tab-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .tab-nav li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    .tab-nav li a {
        display: block;
        padding: 10px;
        background-color: var(--light-color);
        border-radius: 5px;
    }
    
    .tab-nav li.active a {
        background-color: var(--primary-color);
        color: #FFFFFF;
        border-bottom: none;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 10px;
    }
    
    /* Steps Container */
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    /* Stats Container */
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .logo span {
        display: none;
    }
    
    /* Featured Cards */
    .vip-card.featured {
        transform: none;
    }
    
    .vip-card.featured:hover {
        transform: translateY(-10px);
    }
    
    /* Referral Code */
    .referral-code {
        flex-direction: column;
    }
    
    .referral-code input {
        border-radius: 5px 5px 0 0;
    }
    
    .copy-btn {
        border-radius: 0 0 5px 5px;
        padding: 10px;
    }
    
    /* Rankings Table */
    .ranking-table {
        font-size: 0.9rem;
    }
    
    .event-image {
        height: 150px;
    }
    
    .event-details {
        padding: 15px;
    }
    
    footer {
        padding: 40px 0 80px;
    }
}
