/* Modern CSS Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background-primary: #ffffff;
    --background-secondary: #f9fafb;
    --background-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
/*body::before {*/
/*    content: '';*/
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: */
/*        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),*/
/*        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),*/
/*        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);*/
/*    z-index: -1;*/
/*    animation: backgroundFloat 20s ease-in-out infinite;*/
/*}*/

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* Main Layout */
.mainStyle {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.gamebox[css-gamebox] {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
    width: 100%;
}

.nav-block {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    min-width: 40px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0;
    width: 100%;
}

/* Game Cards */
.game-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 200px;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.game-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover img {
    transform: scale(1.1);
}

/* Game Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 69, 19, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.play-button:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.05);
}

/* More Games Button */
.more-games-btn {
    margin: 2rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    width: 100%;
}

.more-games-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.more-games-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    width: 100%;
}

.more-games-btn .arrow {
    transition: var(--transition);
    font-size: 1.25rem;
}

.more-games-btn:hover .arrow {
    transform: translateX(5px);
}

/* Website Description */
.website-desc {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.website-desc h1 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
}

.website-desc h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
}

.website-desc p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.website-desc ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.website-desc li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.website-desc li::before {
    content: '🎮';
    position: absolute;
    left: 0;
    top: 0;
}

.website-desc a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.website-desc a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer */
.foot[css-foot] {
    width: 100%;
    margin-top: 2rem;
}

.footStyle[css-foot] {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 1rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.footStyle[css-foot]::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(./img/logo.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 60px;
    width: 128px;
    /*filter: brightness(0) invert(1);*/
}

.div1[css-foot] {
    padding-top: 3rem;
}

.linkText[css-foot] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.linkText[css-foot] a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.linkText[css-foot] a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.linkText[css-foot] #selectLanguage {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.logoStyle[css-foot] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.logoStyle[css-foot] a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.logoStyle[css-foot] a:hover {
    color: white;
}

.logoStyle[css-foot] p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .game-card {
        height: 280px;
    }
    
    .website-desc {
        padding: 1.5rem;
    }
    
    .website-desc h1 {
        font-size: 1.75rem;
    }
    
    .website-desc h2 {
        font-size: 1.25rem;
    }
    
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .section-header {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    
    .game-card {
        height: 200px;
    }
    
    .hero-stats {
        /*flex-direction: column;*/
        gap: 0.3rem;
    }
    
    .stat-item {
        padding: 0.3rem 0.8rem;
    }
    
    .linkText[css-foot] {
        /*flex-direction: column;*/
        gap: 0.75rem;
    }
    
    .hero-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    .more-games-btn {
        margin: 1rem 0;
    }
    
    .website-desc {
        margin: 1rem 0;
        padding: 1rem;
    }
}

/* Utility Classes */
.flexCenter {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-center {
    text-align: center;
}

/* Click Animation */
.clickEnlarge:active {
    animation: clickEnlarge 0.2s ease-out;
}

@keyframes clickEnlarge {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading States */
.game-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: -100% 50%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.game-card:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.more-games-btn:focus-within {
    outline: 3px solid white;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --text-primary: #000000;
        --text-secondary: #333333;
        --background-primary: #ffffff;
    }
}