
/* ============================
   RADICAL NEW DESIGN - Game Portal 2.0
   ============================ */

/* Reset & Base */
@import "./css.css";

:root {
    --primary-dark: #f5f7e8;
    --primary-accent: #a2ad1f;
    --secondary-accent: #7a8a15;
    --card-bg: #ffffff;
    --card-bg-hover: #f0f2e6;
    --text-primary: #2d3a0f;
    --text-secondary: #5c6b30;
    --gradient-primary: linear-gradient(135deg, #a2ad1f 0%, #8a9718 100%);
    --gradient-secondary: linear-gradient(135deg, #c4d12e 0%, #a2ad1f 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8faef 100%);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --shadow-neon: 0 4px 20px rgba(162, 173, 31, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(162, 173, 31, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(196, 209, 46, 0.1) 0%, transparent 50%);
}

/* ============================
   Header - Full Width Hero Style
   ============================ */
header.main {
    background: transparent;
    position: relative;
    z-index: 100;
}

header.main .main-section {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
header.main .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 14px;
}

header.main .logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-neon);
}

header.main .logo-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

header.main .logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

header.main .logo-text span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
header.main .menuHolder {
    display: flex;
    align-items: center;
}

header.main .menuHolder label[for="navigationTrigger"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background: var(--card-bg);
    border: 1px solid rgba(162, 173, 31, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.main .menuHolder label[for="navigationTrigger"]:hover {
    background: var(--card-bg-hover);
    border-color: var(--primary-accent);
    box-shadow: var(--shadow-neon);
}

header.main .menuHolder label[for="navigationTrigger"] svg {
    height: 24px;
    fill: #a2ad1f;
}

header.main .menuHolder nav.main {
    display: none;
    position: absolute;
    top: 90px;
    right: 24px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    padding: 16px;
    border: 1px solid rgba(162, 173, 31, 0.2);
}

header.main .menuHolder nav.main ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header.main .menuHolder nav.main ul li {
    margin-bottom: 4px;
}

header.main .menuHolder nav.main ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

header.main .menuHolder nav.main ul li a:hover {
    background: linear-gradient(90deg, rgba(162, 173, 31, 0.15), transparent);
    color: var(--primary-accent);
    transform: translateX(4px);
}

header.main .menuHolder nav.main ul li a img {
    width: 22px;
    height: 22px;
    opacity: 0.8;
}

header.main .menuHolder #navigationTrigger {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

header.main .menuHolder #navigationTrigger:checked ~ nav.main {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Select */
header.main .language-select {
    position: relative;
    width: 50px;
}

header.main .language-select .value {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: var(--card-bg);
    border-radius: var(--border-radius-sm);
    color: var(--primary-accent);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid rgba(162, 173, 31, 0.3);
}

header.main .language-select select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ============================
   Content Area
   ============================ */
.content {
    background: transparent;
    min-height: calc(100vh - 80px);
}

.content .main-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0 80px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Headers */
.content h2.h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.content h2.h1 a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.content h2.h1 a:hover {
    color: var(--primary-accent);
}

.content h2.h1 img {
    width: 28px;
    height: 28px;
}

/* ============================
   Games Grid - Modern Card Design
   ============================ */
ul.games {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

ul.games li {
    position: relative;
    padding: 0;
    width: 100%;
    float: none;
    margin-top: 0;
}

ul.games li a {
    display: flex;
    flex-direction: column;
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(162, 173, 31, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

ul.games li a:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-accent);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 8px 30px rgba(162, 173, 31, 0.3);
}

ul.games li .icon {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: linear-gradient(135deg, #e8ebd8 0%, #d4d9c0 100%);
}

ul.games li .icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(245, 247, 232, 0.8) 100%);
    z-index: 1;
}

ul.games li .icon .clamp {
    display: none;
}

ul.games li .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

ul.games li a:hover .icon img {
    transform: scale(1.1);
}

/* Play Button Overlay */
ul.games li .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 25px rgba(162, 173, 31, 0.5);
    z-index: 2;
}

ul.games li .play-overlay::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 5px;
}

ul.games li a:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Name Container */
ul.games li .name-container {
    padding: 18px 16px;
    background: var(--card-bg);
}

ul.games li .name {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Badge */
ul.games li .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-secondary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

ul.games li .btn-block {
    display: none;
}

/* ============================
   Buttons
   ============================ */
.btn-container {
    text-align: center;
    margin: 50px 0;
}

.btn-primary, .btn-highlight {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(162, 173, 31, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(162, 173, 31, 0.45);
}

.btn-highlight {
    background: var(--gradient-secondary);
    color: #fff;
    box-shadow: 0 8px 30px rgba(162, 173, 31, 0.4);
}

.btn-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(162, 173, 31, 0.5);
}

/* ============================
   Footer - Modern Design
   ============================ */
footer.main {
    background: var(--card-bg);
    color: var(--text-secondary);
    padding: 60px 0 40px;
    margin-top: 80px;
    border-top: 1px solid rgba(162, 173, 31, 0.2);
}

footer.main .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

footer.main .footer-content section.tags {
    margin-bottom: 40px;
}

footer.main .footer-content section.tags nav.main {
    background: none;
    float: none;
    width: 100%;
    min-height: auto;
    margin-top: 0;
    padding: 0;
}

footer.main .footer-content section.tags nav.main ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer.main .footer-content section.tags nav.main ul li {
    padding: 0;
    width: auto;
    float: none;
}

footer.main .footer-content section.tags nav.main ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--card-bg);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(162, 173, 31, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

footer.main .footer-content section.tags nav.main ul li a:hover {
    background: var(--card-bg-hover);
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    box-shadow: 0 4px 15px rgba(162, 173, 31, 0.25);
}

footer.main .footer-content section.tags nav.main ul li a img {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

footer.main .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(162, 173, 31, 0.2);
}

footer.main .copyright p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer.main .copyright a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer.main .copyright a:hover {
    color: var(--secondary-accent);
}

/* ============================
   Game Detail Page
   ============================ */
.game header {
    margin-bottom: 40px;
}

.game header .background {
    position: relative;
    background-size: cover;
    overflow: hidden;
    background-position: center center;
    text-align: center;
    border-radius: var(--border-radius);
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game header .background .backgroundDarken {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 247, 232, 0.95) 0%, rgba(240, 242, 230, 0.9) 100%);
    border-radius: var(--border-radius);
}

.game header .background .backgroundDarken .main-section {
    position: relative;
    z-index: 2;
    margin-top: 0;
    margin-bottom: 0;
    padding: 60px 20px;
}

.game header .icon {
    display: block;
    width: 160px;
    max-width: 100%;
    margin: 0 auto 28px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--primary-accent);
}

.game header .icon img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.game header h1 {
    color: var(--text-primary);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 28px;
}

.game .play-btn-container {
    position: relative;
    margin: 30px 0 0;
}

.game .play-btn-container .play-btn {
    display: inline-block;
    padding: 18px 56px;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(162, 173, 31, 0.35);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game .play-btn-container .play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(162, 173, 31, 0.6);
}

/* Similar Games */
.similarGames {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(162, 173, 31, 0.1);
}

.similarGames h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
}

/* ============================
   Loading Animation
   ============================ */
.AFSJx.dgmlwU {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7e8;
}

.AFSJx.dgmlwU > div {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ============================
   Responsive Design
   ============================ */
@media only screen and (max-width: 1024px) {
    .hero-section {
        padding: 40px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.4rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
}

@media only screen and (max-width: 768px) {
    header.main .main-section {
        height: 70px;
    }
    
    header.main .logo-text {
        font-size: 1.3rem;
    }
    
    header.main .logo-icon {
        width: 42px;
        height: 42px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .content .main-section {
        padding: 24px 16px;
    }
    
    .content h2.h1 {
        font-size: 1.4rem;
    }
    
    ul.games {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    ul.games li .name-container {
        padding: 14px 12px;
    }
    
    ul.games li .name {
        font-size: 0.9rem;
    }
    
    .btn-primary, .btn-highlight {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
    
    .game header h1 {
        font-size: 2rem;
    }
    
    .game header .background {
        min-height: 350px;
    }
    
    footer.main {
        padding: 40px 0 30px;
    }
}

@media only screen and (max-width: 480px) {
    header.main .logo-text {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 1.7rem;
    }
    
    ul.games {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    ul.games li .category-badge {
        display: none;
    }
    
    .content h2.h1 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .content h2.h1 img {
        width: 24px;
        height: 24px;
    }
    
    .btn-container {
        margin: 32px 0;
    }
    
    .game header .icon {
        width: 120px;
        border-radius: 20px;
    }
    
    .game header h1 {
        font-size: 1.6rem;
    }
    
    .game .play-btn-container .play-btn {
        padding: 14px 40px;
        font-size: 1rem;
    }
}
