/* Global Styles - Mobile First */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 15px;
    z-index: 1001;
    width: 30px;
    height: 24px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    margin-bottom: 5px;
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Header Styles */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.nav.active {
    display: flex;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-button {
    background-color: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:active {
    transform: scale(0.95);
}

/* Quick Play Section */
.quick-play {
    padding: 2rem 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quick-play h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.quick-play-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.quick-play-slider::-webkit-scrollbar {
    display: none;
}

.quick-game-card {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
    min-width: 100px;
}

.quick-game-card:active {
    transform: scale(0.95);
}

.quick-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.quick-name {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Ad Container */
.ad-container {
    background-color: #f0f0f0;
    min-height: 80px;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ad-container::before {
    content: 'AD';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 0.7rem;
    color: #999;
    font-weight: 600;
}

/* Categories Section */
.categories {
    padding: 2rem 0;
}

.categories h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid transparent;
}

.category-card:active {
    transform: scale(0.95);
}

.category-card.active {
    border-color: #667eea;
    background-color: #f0f4ff;
}

.category-card .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.category-card h3 {
    font-size: 0.9rem;
    color: #2c3e50;
}

/* Games Grid */
.games {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.games h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.game-card:active {
    transform: scale(0.98);
}

.game-thumb {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-icon {
    font-size: 3rem;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    background: white;
    color: #667eea;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.game-info {
    padding: 12px;
}

.game-info h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.game-info p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
}

/* Install Button */
.install-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #667eea;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    display: none;
    z-index: 99;
}

.install-button.show {
    display: block;
}

.install-button:active {
    transform: translateX(-50%) scale(0.95);
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav {
        display: flex;
        position: static;
        flex-direction: row;
        padding: 0;
        gap: 2rem;
    }
    
    .nav a {
        padding: 0;
        border: none;
        font-size: 1rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .game-thumb {
        height: 150px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .game-thumb {
        height: 180px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .game-thumb {
        height: 100px;
    }
} 