/* GO88 Theme - Main Styles */
/* Converted from original Flatsome-based site. Self-contained, no external dependencies. */

/* ==========================================
   CSS RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 400; line-height: 1.6; color: #ffffff; background-color: #0a0a0a; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Roboto', sans-serif; font-weight: 900; color: #ffe9a4; line-height: 1.3; }

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    --primary: #ffe9a4;
    --secondary: #d26e4b;
    --success: #f4de38;
    --alert: #b90202;
    --bg-dark: #0a0a0a;
    --header-bg: #090502;
    --dropdown-bg: #891b1b;
    --text-white: #ffffff;
    --max-width: 1370px;
}

/* ==========================================
   FONTS
   ========================================== */
@font-face {
    font-family: 'fl-icons';
    font-display: block;
    src: url('../fonts/fl-icons/fl-icons.woff2') format('woff2'),
         url('../fonts/fl-icons/fl-icons.woff') format('woff'),
         url('../fonts/fl-icons/fl-icons.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/roboto/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/roboto/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/roboto/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2') format('woff2');
    unicode-range: U+0000-00FF;
}

@font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dancing-script/dancing3.woff2') format('woff2');
}

/* ==========================================
   LAYOUT
   ========================================== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.flex-row { display: flex; flex-wrap: wrap; }
.align-center { justify-content: center; }
.align-middle { align-items: center; }

.col { padding: 0 15px; }
.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-3 { width: 25%; }
.col-7 { width: 58.333%; }

.hide-mobile { display: none; }

@media (min-width: 550px) {
    .hide-mobile { display: block; }
    .show-mobile-only { display: none; }
}

@media (min-width: 850px) {
    .hide-tablet { display: block; }
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    padding: 0 15px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-logo img {
    max-height: 70px;
    width: auto;
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #EBB024;
    background: linear-gradient(0deg, #AA0000, #AA0000);
    color: #fff;
    font-weight: 900;
    font-size: 0.95em;
    border-radius: 5px;
    position: relative;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background: linear-gradient(0deg, #cc0000, #cc0000);
    transform: translateY(-1px);
}

.header-btn::before,
.header-btn::after {
    content: "";
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 2px solid;
    border-radius: 7px;
    animation: clippath 3s infinite linear;
}
.header-btn::before { border-color: #EBB024; }
.header-btn::after { border-color: #771818; animation-delay: -1.5s; }

@keyframes clippath {
    0%, 100% { clip-path: inset(0 0 98% 0); }
    25%      { clip-path: inset(0 98% 0 0); }
    50%      { clip-path: inset(98% 0 0 0); }
    75%      { clip-path: inset(0 0 0 98%); }
}

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
}

@media (min-width: 850px) {
    .menu-toggle { display: none; }
}

/* Bottom nav */
.header-nav {
    background-color: var(--header-bg);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
    flex-wrap: wrap;
}

.nav-list li a {
    display: block;
    padding: 15px 25px;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s;
}

.nav-list li a:hover,
.nav-list li.active a {
    color: var(--primary);
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-list li a:hover::after,
.nav-list li.active a::after {
    width: 80%;
}

@media (max-width: 849px) {
    .header-nav { display: none; }
    .header-inner { height: 70px; }
    .nav-list { flex-direction: column; }
}

/* Mobile sidebar */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
}
.mobile-menu-overlay.active { display: block; }

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--header-bg);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}
.mobile-menu.active { left: 0; }

.mobile-menu ul { padding: 20px 0; }
.mobile-menu ul li a {
    display: block;
    padding: 12px 10px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9em;
}
.mobile-menu ul li a:hover { color: var(--primary); }

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
    float: right;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
#main-content {
    background-image: url('../images/bg.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    #main-content {
        background-attachment: scroll;
        background-image: url('../images/bg-ios-scaled-1.webp');
    }
}

/* Hero section */
.hero-section {
    padding: 30px 0;
}

@media (min-width: 850px) {
    .hero-section { padding: 30px 0; }
}

.hero-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
}

.hero-sidebar {
    width: 25%;
    padding: 0 15px;
    text-align: center;
}

.hero-main {
    width: 50%;
    padding: 0 15px;
    text-align: center;
}

@media (max-width: 849px) {
    .hero-sidebar { display: none; }
    .hero-main { width: 100%; }
}

.hero-logo { width: 55%; margin: 0 auto; }
.hero-slogan { width: 60%; margin: 20px auto; }

@media (max-width: 549px) {
    .hero-logo { width: 65%; }
    .hero-slogan { width: 60%; }
}

/* Game cards */
.game-card {
    position: relative;
    display: inline-block;
    border-radius: 19px;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    cursor: pointer;
    margin: 5px 0;
}

.game-card img { display: block; width: 100%; height: auto; }

.game-card:hover {
    filter: brightness(1.03);
    animation: gc-shakeY 0.6s ease-in-out;
    transform: scale(1.05);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,215,0,0.18) inset;
}

@keyframes gc-shakeY {
    0%,100% { transform: translateY(0) rotate(0) scale(1.05); }
    15% { transform: translateY(-2px) rotate(-1deg) scale(1.05); }
    30% { transform: translateY(2px) rotate(1deg) scale(1.05); }
    45% { transform: translateY(-1px) rotate(-1deg) scale(1.05); }
    60% { transform: translateY(1px) rotate(1deg) scale(1.05); }
    75% { transform: translateY(-1px) rotate(0) scale(1.05); }
}

.game-card-link { width: 52%; display: inline-block; }
@media (max-width: 549px) { .game-card-link { width: 87%; } }

/* Scroll hint arrow */
.scroll-hint {
    display: inline-block;
    animation: scrollPulse 2.4s ease-in-out infinite;
    cursor: pointer;
    width: 23px;
    margin: 15px auto;
}
@keyframes scrollPulse {
    0%,100% { transform: translateY(0); filter: brightness(1); }
    50% { transform: translateY(-8px); filter: brightness(1.4); }
}

/* Image glow */
.image-glow { filter: drop-shadow(0 0 15px rgba(255,233,164,0.15)); }

/* Sticky sidebar column */
.sticky-col {
    position: sticky;
    top: 100px;
}

/* Sidebar slider */
.sidebar-slider {
    position: relative;
    overflow: hidden;
}
.sidebar-slider img {
    width: 90%;
    margin: 0 auto;
    border-radius: 10px;
}

/* ==========================================
   ARTICLE CONTENT
   ========================================== */
.section-title {
    text-align: center;
    font-size: 1.6em;
    color: var(--primary);
    margin: 20px 0;
    text-transform: uppercase;
}

.article-content {
    text-align: left;
    margin: 10px 0 0;
}

.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 10px 20px;
    margin: 15px 0;
    background: rgba(255,233,164,0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.article-content h2 {
    font-size: 1.4em;
    margin: 30px 0 15px;
    color: var(--primary);
}

.article-content h3 {
    font-size: 1.15em;
    margin: 25px 0 10px;
    color: var(--primary);
}

.article-content p {
    margin: 10px 0;
    text-align: justify;
    color: #fff;
    line-height: 1.7;
}

.article-content a {
    color: var(--primary);
    font-weight: 700;
    transition: color 0.2s;
}
.article-content a:hover { color: #fff; }

.article-content ul, .article-content ol {
    margin: 10px 0 10px 20px;
    list-style: disc;
}
.article-content ul li, .article-content ol li {
    margin: 8px 0;
    line-height: 1.7;
}

.article-content figure {
    margin: 20px 0;
    text-align: center;
}
.article-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
}
.article-content figcaption {
    font-size: 0.85em;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
    font-style: italic;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background-color: var(--bg-dark);
    padding: 30px 0 0;
}

.footer-links {
    text-align: center;
    padding: 15px 0;
}
.footer-links a {
    color: #fff;
    font-weight: 700;
    padding: 0 10px;
    font-size: 0.9em;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-links .sep { color: rgba(255,255,255,0.3); }

.footer-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 20px 0;
}
.footer-badges img {
    height: 35px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.footer-badges img:hover { opacity: 1; }

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85em;
    color: rgba(255,255,255,0.5);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    border: none;
    cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 549px) {
    body { font-size: 15px; }
    .container { padding: 0 12px; }
    .section-title { font-size: 1.2em; }
    .article-content h2 { font-size: 1.2em; }
    .article-content h3 { font-size: 1.05em; }
    .footer-badges { gap: 10px; }
    .footer-badges img { height: 25px; }
    .header-buttons .header-btn { padding: 6px 12px; font-size: 0.8em; }
    .hero-section { padding: 15px 0; }
}

@media (min-width: 550px) and (max-width: 849px) {
    .hero-sidebar { display: none; }
    .hero-main { width: 80%; }
}

@media (min-width: 1200px) {
    .article-content { max-width: 900px; margin-left: auto; margin-right: auto; }
}
