/* GLOBAL */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    font-size: 10px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    text-align: center;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.42857143;
    color: #f4f4f4;
    background: radial-gradient(circle at top, #03111f 0%, #020917 40%, #020b0e 70%, #010607 100%);
    background-attachment: fixed;
}

/* LINKS */
a {
    background-color: transparent;
    color: #7bffb2;
    text-decoration: none;
}

a:focus,
a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* HEADINGS */
h1,
.h1 {
    font-size: 3.2rem;
    margin-top: 0;
    margin-bottom: 1.2rem;
}

h2,
.h2 {
    font-size: 2.4rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

h3,
.h3 {
    font-size: 1.8rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

/* PARAGRAPHS */
p {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

/* WRAPPER */
.wrap {
    min-height: 100vh;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px 16px 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* GLASS PANELS */
.glass-panel {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(circle at top left, rgba(123, 255, 178, 0.18), rgba(4, 12, 18, 0.9));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* HEADER / HERO */
.site-header {
    padding: 18px 20px 22px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
    align-items: center;
    gap: 18px;
}

.logo-area {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    max-width: 100%;
    height: auto;
}

.hero-text {
    text-align: left;
}

.hero-text p {
    color: rgba(238, 248, 255, 0.88);
}

/* MAIN LAYOUT */
.site-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* SECTION TITLES */
.section-title {
    text-align: left;
    font-size: 2.4rem;
    font-weight: 600;
    color: #e9fff7;
    margin-bottom: 1.5rem;
}

/* GAMES GRID */
.games-section {
    padding: 20px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}
/* Contact form */
.contact-form {
    margin-top: 12px;
    margin-bottom: 18px;
}

.contact-form .form-row {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 14px;
    margin-bottom: 4px;
    color: #e9f7ff;
    text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid rgba(200, 230, 220, 0.85);
    font-size: 14px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: rgba(5, 16, 20, 0.95);
    color: #f5ffff;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #7bffb2;
}

.contact-form textarea {
    resize: vertical;
}

.form-actions {
    margin-top: 8px;
    margin-bottom: 6px;
    text-align: left;
}

.form-actions button {
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #1fe39c, #11b56f);
    color: #020b04;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.form-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
}

.form-note {
    font-size: 13px;
    color: rgba(230, 245, 240, 0.85);
    margin-top: 4px;
}

/* GAME CARD */
.game-card {
    list-style: none;
}
/* Static pages: about, contact, dmca, privacy */
.static-page {
    padding: 20px 22px 24px 22px;
    text-align: left;
}

.static-page h2 {
    margin-top: 18px;
    margin-bottom: 10px;
}

.static-page ul {
    margin: 8px 0 12px 20px;
    padding: 0;
    font-size: 14px;
}

.static-page li {
    margin-bottom: 4px;
}

.game-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at top, rgba(11, 30, 43, 0.95), rgba(3, 9, 17, 0.9));
    border-radius: 14px;
    padding: 12px 10px 14px 10px;
    border: 1px solid rgba(123, 255, 178, 0.18);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.game-thumb {
    width: 100%;
    display: flex;
    justify-content: center;
}

.game-thumb img {
    max-width: 210px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.game-name {
    font-size: 1.6rem;
    font-weight: 500;
    color: #eafef7;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
}

.game-link:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.9);
    border-color: rgba(123, 255, 178, 0.6);
    text-decoration: none;
}

/* INFO SECTION */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-block {
    padding: 20px 22px 22px 22px;
    text-align: left;
}

.info-block hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin: 18px 0;
}

.info-block p {
    color: rgba(235, 247, 255, 0.9);
}

/* Inline links row */
.inline-links {
    text-align: left;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

/* DESCRIPTION TEXT READABLE */
.description p {
    text-align: left;
}

/* IMG UTILS */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

img {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}

/* FOOTER */
.site-footer {
    padding: 16px 18px;
    text-align: center;
    font-size: 1.4rem;
    color: rgba(229, 245, 238, 0.9);
}

.site-footer p {
    margin-bottom: 6px;
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
    .site-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .wrap {
        margin: 10px auto 24px auto;
        padding: 14px 10px 24px 10px;
    }

    .site-header {
        padding: 14px 12px 18px 12px;
    }

    h1,
    .h1 {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .info-block {
        padding: 16px 14px 18px 14px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        gap: 14px;
    }

    .game-thumb img {
        max-width: 190px;
    }

    .info-block p {
        font-size: 1.4rem;
    }

    p {
        font-size: 1.4rem;
    }
}

/* CONTACT (alte pagini) */
.contact {
    min-height: 100%;
    margin: 20px 0;
    padding-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
    background: radial-gradient(circle at top left, rgba(123, 255, 178, 0.15), rgba(3, 11, 18, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* GAMEFRAME (dacă îl folosești pe paginile de joc) */
.gameframe {
    height: auto;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
    position: relative;
    text-align: center;
    background: radial-gradient(circle at top, rgba(11, 26, 39, 0.95), rgba(4, 9, 14, 0.9));
    display: block;
    line-height: 0;
    vertical-align: top;
}

/* GAME CARD container */
.game-card {
  position: relative;
  padding: 6px;  /* spațiu egal în jur */
  border-radius: 6px;
  transition: transform .18s ease-out;
}

/* Imaginea jocului */
.game-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  transition: transform .18s ease-out;
}

/* TITLU — se aliniază EXACT cu lățimea imaginii */
.game-card .game-name {
  position: absolute;
  width: calc(100% - 12px); /* 100% minus padding (6px stânga + 6px dreapta) */
  left: 6px;               /* stă fix unde începe imaginea */
  bottom: -40px;           /* ascuns când nu e hover */
  margin: 0;
  padding: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #c9e6c0;
  font-weight: 600;
  text-shadow: 0 0 3px #2f6b3a;
  text-align: center;
  font-size: 14px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: bottom .25s ease-out, opacity .25s ease-out;
}

/* HOVER — cardul se mărește, dar titlul rămâne fix peste imagine */
.game-card:hover {
  transform: scale(1.03);
}

.game-card:hover img {
  transform: scale(1.02);
}

.game-card:hover .game-name {
  bottom: 6px; /* urcă FIX până la baza imaginii */
  opacity: 1;
}

