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

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
}

html {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a img {
    border: none;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
    display: block;
}

/* Base Styles - Complete New Theme */
* {
    -webkit-tap-highlight-color: rgba(170, 217, 15, 0.3) !important;
    outline: none !important;
    box-sizing: border-box;
}

html {
    font-size: 16px !important;
}

body {
    padding: 0;
    margin: 0;
    background-color: #aad90f;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px !important;
    line-height: 1.6;
    color: #000000;
}

/* App Container */
.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header - New Centered Layout */
header.main {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

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

/* Menu Holder - Left Side */
header.main .menuHolder {
    position: relative;
}

header.main .menuHolder label[for="navigationTrigger"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #3d3d3d, #2a2a2a);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

header.main .menuHolder label[for="navigationTrigger"]:hover {
    background: linear-gradient(145deg, #4d4d4d, #3a3a3a);
    transform: translateY(-2px);
}

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

header.main .menuHolder nav.main {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 100;
    background: #1a1a1a;
    border-radius: 15px;
    padding: 20px;
    min-width: 250px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

header.main .menuHolder nav.main ul.tile-list {
    margin-bottom: 0;
}

header.main .menuHolder nav.main ul.tile-list a {
    white-space: normal;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

header.main .menuHolder nav.main ul.tile-list a:hover {
    background: rgba(170, 217, 15, 0.15);
}

header.main .menuHolder nav.main ul.tile-list a img,
header.main .menuHolder nav.main ul.tile-list a svg {
    margin: 0;
    float: none;
    width: 32px;
    height: 32px;
}

header.main .menuHolder nav.main ul.tile-list a header {
    margin-left: 0;
    text-align: left;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    color: #000000;
}

header.main .menuHolder #navigationTrigger {
    position: absolute;
    top: 0;
    right: 0;
    clip: rect(0, 0, 0, 0);
}

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);
    }
}

/* Logo - Centered */
header.main .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    order: 2;
}

header.main .logo svg {
    width: 280px;
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@media only screen and (max-width: 750px) {
    header.main .menuHolder {
        order: 1;
    }
    header.main .logo {
        order: 2;
    }
    header.main .language-select {
        order: 3;
    }
    header.main .logo svg {
        width: 180px;
    }
}

/* Language Select */
.language-select {
    position: relative;
    order: 3;
}

.language-select .value {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(145deg, #3d3d3d, #2a2a2a);
    border-radius: 25px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.language-select .value:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* Content Area */
.content {
    flex: 1;
    background: linear-gradient(180deg, #b8e035 0%, #aad90f 50%, #9fca0d 100%);
    padding: 40px 20px;
}

.content .main-section {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer - New Style */
footer.main {
    margin-top: auto;
    padding: 50px 20px 30px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #fff;
}

footer.main .footer-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

footer.main a {
    color: #aad90f;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer.main a:hover {
    color: #c4e94e;
}

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

footer.main .footer-content section.tags nav.main ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

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

footer.main .footer-content section.tags nav.main ul li a {
    background: rgba(170, 217, 15, 0.15);
    border: 1px solid rgba(170, 217, 15, 0.3);
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

footer.main .footer-content section.tags nav.main ul li a:hover {
    background: #aad90f;
    color: #1a1a1a;
    border-color: #aad90f;
}

footer.main .copyright {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* Games List - New Card Layout */
ul.games {
    list-style: none;
    padding: 0;
    margin: -15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

ul.games li {
    position: relative;
    margin: 0;
    padding: 0;
}

ul.games li a {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

ul.games li a:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

ul.games li .icon {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

ul.games li .name-container {
    padding: 18px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    background: #fff;
}

ul.games li .name {
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Section Headers */
h1, h2 {
    font-size: 1.8em;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
    color: #000000;
    position: relative;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #1a1a1a;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Game names - Larger font */
ul.games li .name {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #aad90f 0%, #8fb80b 100%);
    color: #1a1a1a;
    padding: 14px 35px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(170, 217, 15, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(170, 217, 15, 0.5);
}

.btn-highlight {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-highlight:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* Tile/Category Cards */
.tile {
    display: block;
    padding: 25px;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tile-highlight {
    background: linear-gradient(135deg, #aad90f 0%, #8fb80b 100%);
    color: #1a1a1a;
}

.tile-primary {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
}

/* Navigation Sidebar */
nav.main {
    float: none;
    width: 100%;
    min-height: auto;
    margin-top: 0;
    padding: 30px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

nav.main ul > li a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    font-size: 16px;
    line-height: 28px;
    padding: 15px 20px;
    color: #fff;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    font-weight: 600;
}

nav.main ul > li a i {
    font-size: 1.5em;
}

nav.main ul > li a:hover {
    background: rgba(170, 217, 15, 0.3);
    color: #000000;
}

nav.main ul > li a.active {
    background: #aad90f;
    color: #000000;
    font-weight: 700;
}

nav.main ul > li a.active::before {
    display: none;
}

/* 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: 25px;
}

.game header .background .backgroundDarken {
    padding: 10px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0.9) 100%);
    border-radius: 25px;
}

.game header .icon {
    display: block;
    max-width: 100%;
    margin: 0 auto 25px;
    border-radius: 20px;
    border: 4px solid #aad90f;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game header h1 {
    color: #fff;
    margin-bottom: 0;
    font-size: 2.2em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.game .play-btn-container .play-btn {
    display: block;
    margin: 0 auto;
    width: auto;
    padding: 15px 60px;
    height: 60px;
    font-size: 20px;
    line-height: 30px;
    border-radius: 30px;
}

/* Game Categories */
.game .game-categories ul {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.game .game-categories ul li {
    background: #ffffff;
    margin: 0;
    border-radius: 20px;
}

.game .game-categories ul li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    font-size: 15px;
}

/* Responsive */
@media only screen and (max-width: 750px) {
    .content {
        padding: 25px 15px;
    }
    
    ul.games {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: -10px;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    header.main {
        padding: 15px 0;
    }
    
    .game header h1 {
        font-size: 1.8em;
    }
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(170, 217, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dots div {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1a1a1a;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots div:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Consent Box - New Style */
.consent-box-holder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 26, 26, 0.9);
}

.consent-box {
    background: #fff;
    max-width: 450px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 35px;
    margin: 20px;
    text-align: center;
}

.consent-box-message {
    text-align: left;
    margin: 20px 0;
    line-height: 1.7;
    color: #444;
}

.consent-box-button {
    display: inline-block;
    background: linear-gradient(135deg, #aad90f 0%, #8fb80b 100%);
    color: #1a1a1a;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(170, 217, 15, 0.4);
    transition: all 0.3s ease;
}

.consent-box-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(170, 217, 15, 0.5);
}

.consent-box-links {
    margin-top: 20px;
    font-size: 13px;
}

.consent-box-links a {
    color: #aad90f;
}

/* Tile List for Navigation */
.tile-list {
    list-style: none;
    margin: -10px;
    margin-top: 20px;
}

.tile-list li {
    box-sizing: border-box;
    padding: 5px;
    float: left;
    width: 50%;
}

.tile-list li .tile-neutral {
    margin-bottom: 0;
    background: #f5f5f5;
}

nav.main .tile-list {
    margin: 0;
    margin-top: 20px;
}

nav.main .tile-list li {
    padding: 0;
    float: none;
    width: 100%;
}

@media only screen and (max-width: 750px) {
    .tile-list {
        margin: 0;
        margin-bottom: 20px;
    }
    
    .tile-list li {
        padding: 0;
        float: none;
        width: 100%;
    }
}

/* Similar Games */
.similarGames {
    margin-top: 50px;
}

.similarGames h2 {
    margin-bottom: 25px;
}


.btn-container{
    margin-top: 30px;
        text-align: center;
}
