/* Base Styles */
:root {
    --primary-bg: #f0f2f5;
    --secondary-bg: #e6e8eb;
    --accent-color: #4d8bf5;
    --text-color: #1e293b;
    --muted-text: #64748b;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-hover: rgba(240, 242, 245, 0.9);
    --gradient-primary: linear-gradient(135deg, #f0f2f5, #e6e8eb, #d0d5dd, #e6e8eb, #f0f2f5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--gradient-primary);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #7ba3ff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background-color: rgba(240, 242, 245, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(77, 139, 245, 0.3);
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    color: var(--text-color);
    font-weight: 500;
    margin-left: 30px;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.central-hero {
    background: rgba(225, 228, 233, 0.8);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #4d8bf5, #7ba3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(77, 139, 245, 0.2);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--muted-text);
}

.search-module {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-form {
    display: flex;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--muted-text);
}

.search-submit {
    background: var(--accent-color);
    border: none;
    width: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: #7ba3ff;
}

/* Genre Cloud */
.genre-cloud {
    padding: 60px 0;
    background-color: var(--secondary-bg);
}

.cloud-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cloud-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    text-align: center;
}

.cloud-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.cloud-tag {
    padding: 12px 25px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--muted-text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.cloud-tag:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Game Showcase */
.game-showcase {
    padding: 80px 0;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.showcase-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    text-align: center;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.showcase-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--card-hover);
}

.card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-card:hover .card-img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-card:hover .card-overlay {
    opacity: 1;
}

.play-button {
    font-size: 2rem;
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.card-details {
    padding: 20px;
}

.card-title {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-category {
    color: var(--muted-text);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.card-rating {
    color: #ffcc00;
    font-weight: bold;
}

/* Game Matrix */
.game-matrix {
    padding: 80px 0;
    background-color: var(--primary-bg);
}

.matrix-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.matrix-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    text-align: center;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.matrix-item {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.matrix-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--card-hover);
}

.item-media {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.matrix-item:hover .item-img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.matrix-item:hover .item-overlay {
    opacity: 1;
}

.item-play {
    font-size: 2rem;
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.item-play:hover {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.item-info {
    padding: 20px;
}

.item-name {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.item-category {
    color: var(--muted-text);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.item-rating {
    color: #ffcc00;
    font-weight: bold;
}

/* Footer */
.main-footer {
    background-color: var(--secondary-bg);
    padding: 60px 0 40px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.site-description {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.8;
}

.site-description h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-link {
    margin: 0 15px;
    color: var(--muted-text);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .showcase-grid, .matrix-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .main-navigation {
        margin-top: 20px;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-item {
        margin: 10px 0;
    }

    .mobile-menu {
        display: block;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .showcase-grid, .matrix-grid {
        grid-template-columns: 1fr;
    }
}