/**
 * Allyono App Store - Public Site Styles
 * Enhanced Professional Design
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF6B35;
    --secondary-orange: #FF8C42;
    --dark-orange: #E55A2B;
    --light-orange: #FFF5F0;
    --cream-bg: #FDF8F5;
    --white: #FFFFFF;
    --bg-light: #F8F6F4;
    --text-dark: #1A1A2E;
    --text-gray: #6B7280;
    --green: #22C55E;
    --blue: #3B82F6;
    --red: #EF4444;
    --card-shadow: 0 4px 20px rgba(255,107,53,0.15);
    --hover-shadow: 0 8px 30px rgba(255,107,53,0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream-bg);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--cream-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Header - Premium Gradient */
.main-header {
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 50%, #F56545 100%);
    padding: 18px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(255,107,53,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.site-name {
    color: white;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* Navigation Tabs - Pill Style */
.main-nav {
    display: flex;
    background: var(--white);
    padding: 12px 15px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 25px;
    background: transparent;
}

.nav-tab:hover {
    color: var(--primary-orange);
    background: var(--light-orange);
}

.nav-tab.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 99;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-item {
    display: block;
    padding: 18px 25px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-item.active {
    background: var(--light-orange);
    color: var(--primary-orange);
}

.mobile-nav-item:hover {
    background: #f9f9f9;
    padding-left: 30px;
}

/* Main Content */
.main-content {
    padding: 20px 15px;
}

/* Featured Section - Premium Cards */
.featured-section {
    margin-bottom: 25px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.featured-card {
    background: var(--white);
    border-radius: 24px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(255,107,53,0.2);
}

.fire-icon {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(255,107,53,0.4));
    animation: firePulse 2s ease-in-out infinite;
}

@keyframes firePulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.15);
    }
}

.app-icon-large {
    width: 85px;
    height: 85px;
    margin: 15px auto 18px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border: 3px solid var(--white);
}

.app-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.game-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.bonus-badge {
    background: linear-gradient(135deg, var(--light-orange) 0%, #FFE8E0 100%);
    color: var(--dark-orange);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
    border: 1px solid rgba(255,107,53,0.2);
}

.bonus-badge i {
    margin-right: 5px;
    color: var(--primary-orange);
}

.withdraw-info {
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.withdraw-info i {
    margin-right: 6px;
    color: var(--blue);
}

.download-btn-large {
    display: block;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255,107,53,0.35);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.download-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,107,53,0.45);
}

.download-btn-large i {
    margin-left: 8px;
    font-size: 13px;
}

/* Filter Section - Modern Pills */
.filter-section {
    margin-bottom: 25px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
}

.filter-buttons::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex-shrink: 0;
    padding: 14px 24px;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-gray);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn i {
    margin-right: 8px;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255,107,53,0.35);
    transform: scale(1.02);
}

.filter-btn[data-category="NEW APPS"] i {
    color: #FF5722;
}

.filter-btn[data-category="NEW YONO"] {
    background: #EBF5FF;
    color: var(--blue);
}

.filter-btn[data-category="NEW YONO"].active {
    background: linear-gradient(135deg, var(--blue) 0%, #2563EB 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(59,130,246,0.35);
}

/* Games List - Premium Cards */
.games-list-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-item {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 20px;
    padding: 18px 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    gap: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: rgba(255,107,53,0.15);
}

.game-rank {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255,107,53,0.3);
}

.game-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid var(--white);
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-icon .icon-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
}

.game-details {
    flex: 1;
    min-width: 0;
}

.game-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1A1A2E;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    animation: shimmer 2s infinite;
}

.featured-badge i {
    font-size: 8px;
    margin-right: 3px;
}

@keyframes shimmer {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6);
    }
}

.game-bonus {
    font-size: 13px;
    color: var(--dark-orange);
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.game-bonus i {
    margin-right: 6px;
    color: var(--primary-orange);
}

.game-withdraw {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.game-withdraw i {
    margin-right: 6px;
    color: var(--blue);
    font-size: 11px;
}

.game-code {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.game-code i {
    margin-right: 6px;
    color: #9CA3AF;
}

.download-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    color: white;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}

/* Empty State */
.empty-games {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.empty-games i {
    font-size: 56px;
    color: #E5E7EB;
    margin-bottom: 20px;
}

.empty-games p {
    font-size: 15px;
}

/* Telegram Float Button - Premium */
.telegram-float {
    position: fixed;
    bottom: 25px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blue) 0%, #2563EB 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(59,130,246,0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 98;
    border: 3px solid white;
}

.telegram-float:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 35px rgba(59,130,246,0.5);
}

.telegram-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--blue);
    animation: ripple 2s infinite;
    z-index: -1;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 25px 20px;
    color: var(--text-gray);
    font-size: 13px;
    background: var(--bg-light);
    margin-top: 30px;
    font-weight: 500;
}

/* SEO & Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive - Mobile First */
@media (max-width: 400px) {
    .main-header {
        padding: 15px 15px;
    }
    
    .site-name {
        font-size: 16px;
    }
    
    .site-logo {
        height: 42px;
    }
    
    .nav-tab {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .featured-grid {
        gap: 12px;
    }
    
    .featured-card {
        padding: 15px 12px;
        border-radius: 20px;
    }
    
    .app-icon-large {
        width: 70px;
        height: 70px;
        border-radius: 18px;
    }
    
    .game-name {
        font-size: 14px;
    }
    
    .bonus-badge {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .download-btn-large {
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .filter-btn {
        padding: 12px 18px;
        font-size: 12px;
    }
    
    .game-item {
        padding: 15px 12px;
        gap: 12px;
    }
    
    .game-icon {
        width: 55px;
        height: 55px;
        border-radius: 14px;
    }
    
    .game-title {
        font-size: 14px;
    }
    
    .download-btn {
        padding: 10px 16px;
        font-size: 11px;
    }
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .app-container {
        max-width: 600px;
    }
    
    .featured-grid {
        gap: 20px;
    }
    
    .featured-card {
        padding: 25px 20px;
    }
    
    .app-icon-large {
        width: 100px;
        height: 100px;
    }
    
    .game-icon {
        width: 70px;
        height: 70px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .main-nav,
    .telegram-float,
    .download-btn,
    .download-btn-large {
        display: none !important;
    }
    
    .app-container {
        max-width: 100%;
    }
    
    .game-item,
    .featured-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
