/* TON Play Center - Main Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Gradient Border */
.gradient-border {
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
    padding: 2px;
    border-radius: 30px;
}

.gradient-border-inner {
    background: #1a1a2e;
    border-radius: 28px;
    padding: 8px 16px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Loading Spinner */
.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #f97316;
    border-right: 3px solid #ec4899;
    border-bottom: 3px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-sm {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #f97316;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #f97316, #ec4899, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f97316, #ec4899);
    border-radius: 10px;
}

/* Horizontal Scroll */
.scroll-x {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    display: flex;
    gap: 16px;
    padding-bottom: 8px;
}

.scroll-x::-webkit-scrollbar {
    height: 4px;
}

.scroll-item {
    flex: 0 0 85%;
    scroll-snap-align: start;
}

/* Game Cards */
.game-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.game-card:active {
    transform: scale(0.98);
}

.game-card-image {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #f97316, #ec4899);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Tabs */
.tab-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-active {
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* Bottom Navigation */
.nav-btn {
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 30px;
}

.nav-active {
    background: linear-gradient(135deg, #f97316, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Slider Dots */
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dot.active {
    width: 24px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f97316, #ec4899);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ec4899;
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 24px;
    padding: 24px;
    max-width: 90%;
    width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 1000;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 480px) {
    .scroll-item {
        flex: 0 0 90%;
    }
    
    .game-card-image {
        width: 52px;
        height: 52px;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.bg-gradient-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}