/* Poki Games Site - Kids Friendly Design */
:root {
    --primary: #f83c7b;
    --secondary: #2cc990;
    --accent: #fecb2f;
    --extra: #4d90fe;
    --bg-color: #f0f7ff;
    --card-bg: #ffffff;
    --text-color: #334e68;
    --text-muted: #627d98;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Roboto', cursive;
    --radius-lg: 30px;
    --radius-md: 20px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f0ff 100%);
    pointer-events: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Icon Styling */
i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Header */
.header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 30px 30px;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary), var(--extra));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--bg-color);
    color: var(--primary);
    transform: scale(1.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    position: relative;
}

.search-input {
    background: var(--bg-color);
    border: none;
    padding: 12px 20px;
    padding-right: 45px;
    border-radius: 50px;
    width: 250px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    width: 300px;
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.2);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 5px;
    transition: all 0.3s;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 30px 30px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
    }
}

.lang-switcher {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 800;
    font-size: 0.8rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 50%;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.lang-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* Sections */
section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-all {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.hero-text {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
    border-bottom: 5px solid var(--category-color);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: var(--category-color);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.category-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.category-card:hover .category-name,
.category-card:hover .category-count {
    color: #fff;
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
    position: relative;
    border: 4px solid #fff;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    z-index: 10;
}

.game-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.game-info {
    padding: 12px;
    background: #fff;
}

.game-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* Footer */
.footer {
    background: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
    border-radius: 60px 60px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.02);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-text {
    color: var(--text-muted);
    margin-top: 15px;
    max-width: 300px;
}

.footer-bottom {
    text-align: center;
    border-top: 2px solid var(--bg-color);
    padding-top: 30px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Game Page */
.game-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-top: 20px;
}

.game-player-container {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    aspect-ratio: 16/9;
}

.game-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-content-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.game-title-main {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-color);
}

.ad-container {
    margin: 20px 0;
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 15px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--text-muted);
    font-weight: 600;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--extra);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

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

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--bg-color);
}

.tab {
    padding: 12px 25px;
    cursor: pointer;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab.active {
    color: var(--primary);
    border-color: var(--primary);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .game-layout {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .search-input {
        width: 100%;
    }

    .categories-grid,
    .games-grid {
        grid-template-columns: 1fr 1fr;
    }
}