/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --primary: #00d2b4;
    --primary-dark: #00a08a;
    --secondary: #eab308;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --muted: #64748b;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-bg: rgba(15, 23, 42, 0.8);
    --card-bg: var(--glass);
    --hero-gradient: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
}

:root.light-mode {
    --dark: #f1f5f9;
    --darker: #ffffff;
    --light: #0f172a;
    --muted: #475569;
    --glass: rgba(0, 0, 0, 0.04);
    --glass-border: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --card-bg: #fff;
    --hero-gradient: linear-gradient(135deg, #dbdbdb 0%, #d5d6d8 100%);
}

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

body {
    background: var(--darker);
    color: var(--light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.game-container{
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li {
    list-style: none;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Slider Section */
.hero-section {
    position: relative;
    height: 350px;
    background: var(--darker);
}

.hero-slider {
    height: 100%;
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.3) 0%, rgba(2, 6, 23, 0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    padding-bottom: 5rem;
    z-index: 10;
}

.slide-overlay h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-overlay p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.hero-search-container {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    z-index: 999;
}

/* No light-mode overrides for hero slider to maintain cinematic dark look */

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    width: 30px;
    border-radius: 99px;
}

/* Search Bar */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-container input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 4rem;
    background: rgba(255, 255, 255, 0.722);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    color: black;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 210, 180, 0.2);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Game Listing */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Related Apps Section / Main List Layout Styling */
.related-apps-section { margin-top: 2rem; border: 2px solid var(--glass-border); border-radius: 12px; overflow: hidden; background: var(--card-bg); margin-bottom: 3rem; }
.related-header { background: linear-gradient(to right, #009688, #00d2b4); padding: 0.75rem; text-align: center; color: #fff; border-bottom: 2px solid var(--glass-border); }
.related-header h3 { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; margin: 0; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }

.related-list { background: var(--glass-border); padding: 1px; }
.related-item { display: flex; align-items: center; padding: 0.75rem 1rem; background: var(--card-bg); border-bottom: 1px solid var(--glass-border); gap: 1rem; position: relative; transition: var(--transition); }
.related-item:last-child { border-bottom: none; }
.related-item:hover { background: rgba(255, 255, 255, 0.02); }
:root.light-mode .related-item:hover { background: var(--glass); }

.item-index { font-weight: 800; color: var(--muted); font-size: 1.1rem; min-width: 25px; flex-shrink: 0; }
.item-icon { flex-shrink: 0; }
.item-icon img { width: 60px; height: 60px; border-radius: 12px; border: 1px solid var(--glass-border); display: block; object-fit: cover; }

.item-details { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.item-details h4 { font-size: 1.1rem; color: var(--light); margin: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-info { display: flex; flex-direction: column; gap: 2px; }

.bonus-text { color: #dc2626; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.withdraw-text { color: #16a34a; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.item-action { flex-shrink: 0; }
.btn-item-download { 
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%); 
    color: #fff !important; 
    padding: 0.6rem 1rem; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 0.85rem; 
    display: flex; 
    align-items: center; 
    gap: 0.4rem; 
    border: none;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    transition: var(--transition);
    text-transform: capitalize;
    white-space: nowrap;
}
.btn-item-download:hover { transform: scale(1.02); background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%); }

@media (max-width: 768px) {
    .related-item { padding: 0.75rem; gap: 0.5rem; }
    .item-icon img { width: 50px; height: 50px; }
    .item-details h4 { font-size: 1rem; }
    .bonus-text, .withdraw-text { font-size: 0.75rem; }
    .btn-item-download { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .related-item { padding: 0.6rem 0.5rem; gap: 0.4rem; }
    .item-index { font-size: 0.9rem; min-width: 15px; }
    .item-icon img { width: 42px; height: 42px; border-radius: 8px; }
    .item-details h4 { font-size: 0.9rem; }
    .bonus-text, .withdraw-text { font-size: 0.7rem; }
    .btn-item-download { padding: 0.4rem 0.6rem; font-size: 0.75rem; border-radius: 6px; }
    .btn-item-download i { font-size: 0.7rem; }
}


.game-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 1.25rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.game-card img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 1rem;
    margin-bottom: 1rem;
    object-fit: cover;
}

.game-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bonus-tag {
    color: #ef4444;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.rating {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-item {
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    border-radius: 8px;
}

.page-item.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: var(--dark);
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    color: var(--muted);
}

.footer-links li {
    list-style: none;
}

.copyright {
    color: #475569;
    font-size: 0.9rem;
}

/* Telegram Floating Button */
.telegram-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0088cc;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    z-index: 99;
}

/* Static Pages */
.static-page {
    padding: 4rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--muted);
}

.static-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--light);
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.static-page .content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Forms & Alerts */
.contact-form {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--light);
    outline: none;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-family: var(--font-heading);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 210, 180, 0.3);
}

.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

.alert-success {
    color: var(--primary);
    border-color: var(--primary);
}

.alert-danger {
    color: #ef4444;
    border-color: #ef4444;
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--light);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary);
    transform: rotate(15deg);
}

.disc {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}