@charset "utf-8";

/* Enhanced modern styling for the website */
:root {
    --primary-gradient: linear-gradient(135deg, #53b6c5 0%, #6aebff 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    --border-radius: 0.3rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-mobile-width: 480px;
}

/* Mobile-first container for all content */
html {
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

html[data-dw="720"] {
    max-width: var(--max-mobile-width);
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

/* Enhanced body styling */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Enhanced topnav */
.topnav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-light);
}

.topnav .logo img {
    transition: var(--transition);
}

.topnav .logo:hover img {
    transform: scale(1.05);
}

/* Enhanced banner/carousel */
.carousel2 {
    background: var(--white);
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius);
    margin: 0.3rem;
    overflow: hidden;
}

.carousel2 .swiper-container-index2 {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.carousel2 .content {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    border-radius: var(--border-radius);
}

/* Enhanced category section */
.category-con {
    background: var(--white);
    border-radius: var(--border-radius);
    margin: 0.3rem;
    box-shadow: var(--shadow-light);
    padding: 0.4rem 0.3rem;
}

.category-con a {
    transition: var(--transition);
    border-radius: var(--border-radius);
    padding: 0.2rem;
}

.category-con a:hover {
    transform: translateY(-5px);
    background: rgba(83, 182, 197, 0.1);
    box-shadow: var(--shadow-medium);
}

.category-con a div {
    transition: var(--transition);
}

.category-con a:hover div {
    transform: scale(1.1);
}

/* Enhanced subject sections */
.subject {
    background: var(--white);
    border-radius: var(--border-radius);
    margin: 0.3rem;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.subject .module-title {
    background: var(--primary-gradient);
    color: white;
    margin: 0;
    padding: 0.4rem 0.3rem;
    position: relative;
}

.subject .module-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
}

.subject .module-title h2 {
    position: relative;
    z-index: 1;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.subject .view-more {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.2);
    padding: 0.1rem 0.2rem;
    border-radius: 0.1rem;
    transition: var(--transition);
}

.subject .view-more:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* Enhanced game items */
.game-item {
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.game-item.vertical {
    background: var(--white);
    padding: 0.2rem;
    margin: 0.1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.game-item.vertical:hover {
    box-shadow: var(--shadow-heavy);
}

.game-item .game-icon {
    position: relative;
    overflow: hidden;
}

.game-item .game-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(83, 182, 197, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.game-item:hover .game-icon::before {
    opacity: 1;
}

.game-item .game-icon img {
    transition: var(--transition);
}

.game-item:hover .game-icon img {
    transform: scale(1.1);
}

/* Enhanced buttons */
.down-btn, .more-btn, .android-url {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.down-btn::before, .more-btn::before, .android-url::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.down-btn:hover::before, .more-btn:hover::before, .android-url:hover::before {
    left: 100%;
}

.down-btn:hover, .more-btn:hover, .android-url:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Enhanced com-module */
.com-module {
    background: var(--white);
    border-radius: var(--border-radius);
    margin: 0.3rem;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.com-module .module-title {
    background: var(--secondary-gradient);
    color: white;
    margin: 0;
    padding: 0.4rem 0.3rem;
    position: relative;
}

.com-module .module-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

.com-module .module-title h2 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Enhanced horizontal game items */
.game-item.hori {
    background: var(--white);
    margin: 0.2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.game-item.hori:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

/* Enhanced footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer a {
    transition: var(--transition);
    border-radius: 0.1rem;
    padding: 0.1rem;
}

.footer a:hover {
    background: rgba(83, 182, 197, 0.1);
    transform: translateY(-2px);
}

.footer a.on {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-light);
}

/* Enhanced friendly links */
.friendly-link {
    background: var(--white);
    border-radius: var(--border-radius);
    margin: 0.3rem;
    box-shadow: var(--shadow-light);
}

.friendly-link .mod-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.friendly-link .mod-header h3 {
    color: white;
    border-bottom: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.bq ul li a {
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.bq ul li a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Enhanced animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Apply animations */
.subject {
    animation: fadeInUp 0.6s ease-out;
}

.game-item.vertical {
    animation: fadeInUp 0.6s ease-out;
}

.game-item.hori {
    animation: slideInLeft 0.6s ease-out;
}

.category-con a {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation delays */
.game-item.vertical:nth-child(1) { animation-delay: 0.1s; }
.game-item.vertical:nth-child(2) { animation-delay: 0.2s; }
.game-item.vertical:nth-child(3) { animation-delay: 0.3s; }
.game-item.vertical:nth-child(4) { animation-delay: 0.4s; }

.game-item.hori:nth-child(1) { animation-delay: 0.1s; }
.game-item.hori:nth-child(2) { animation-delay: 0.2s; }
.game-item.hori:nth-child(3) { animation-delay: 0.3s; }
.game-item.hori:nth-child(4) { animation-delay: 0.4s; }
.game-item.hori:nth-child(5) { animation-delay: 0.5s; }

.category-con a:nth-child(1) { animation-delay: 0.1s; }
.category-con a:nth-child(2) { animation-delay: 0.2s; }
.category-con a:nth-child(3) { animation-delay: 0.3s; }
.category-con a:nth-child(4) { animation-delay: 0.4s; }

/* Responsive enhancements */
@media (max-width: 768px) {
    .carousel2, .subject, .com-module, .friendly-link {
        margin: 0.2rem;
    }
}

@media (max-width: 480px) {
    .carousel2, .subject, .com-module, .friendly-link {
        margin: 0.1rem;
        border-radius: 0.2rem;
    }
    
    .game-item.hori:hover {
        transform: none;
    }
    
    .category-con a:hover {
        transform: none;
    }
}
