/*
Theme Name: Guance Game
Theme URI: https://guancegame.com/
Author: Guance Game
Author URI: https://guancegame.com/
Description: Custom WordPress theme for Guance Game — a self-developed mobile game studio. Dark cinematic aesthetic inspired by modern indie game studio websites: pure black background, cyan brand identity, violet accents, large editorial typography, and alternating L/R game showcase sections.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: guancegame
Tags: dark, custom-colors, custom-menu, featured-images, full-width-template, theme-options, threaded-comments
*/

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */

.gg-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.gg-section {
    padding: 120px 0;
    position: relative;
}

@media (max-width: 768px) {
    .gg-section {
        padding: 80px 0;
    }
    .gg-container {
        padding: 0 20px;
    }
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */

.gg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.3s ease;
}

.gg-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gg-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.02em;
    color: #4dd0e1;
}

.gg-logo__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.gg-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.gg-nav__link {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gg-nav__link svg {
    width: 14px;
    height: 14px;
}

.gg-nav__toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.gg-nav__toggle span {
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .gg-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 75%;
        max-width: 320px;
        background-color: #000000;
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        border-left: 1px solid #1a1a1a;
    }

    .gg-nav.is-open {
        transform: translateX(0);
    }

    .gg-nav__toggle {
        display: flex;
        z-index: 101;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.gg-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 32px 80px;
}

.gg-hero__blob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 600px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(ellipse 50% 50% at 30% 50%, rgba(0, 200, 200, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 70% 50%, rgba(124, 58, 237, 0.45) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 1;
    animation: gg-blob-drift 16s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes gg-blob-drift {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(-48%, -52%) scale(1.08) rotate(8deg);
    }
    100% {
        transform: translate(-52%, -48%) scale(0.95) rotate(-6deg);
    }
}

.gg-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
}

.gg-hero__title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 9vw, 128px);
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #c9c9d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gg-hero__subtitle {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #b794f6;
    margin-bottom: 32px;
}

.gg-hero__stats {
    font-size: 18px;
    color: #888888;
    font-weight: 400;
}

.gg-hero__stats strong {
    color: #ffffff;
    font-weight: 700;
}

/* ==========================================================================
   GAME SHOWCASE SECTIONS
   ========================================================================== */

.gg-game {
    padding: 80px 0;
}

.gg-game__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.gg-game__row--reverse .gg-game__visual {
    order: 2;
}

.gg-game__row--reverse .gg-game__content {
    order: 1;
}

@media (max-width: 900px) {
    .gg-game__row,
    .gg-game__row--reverse {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .gg-game__row--reverse .gg-game__visual,
    .gg-game__row--reverse .gg-game__content {
        order: initial;
    }
}

.gg-game__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.gg-game__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at center, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.gg-game__phone {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(124, 58, 237, 0.25),
        0 0 0 1px rgba(124, 58, 237, 0.5);
    aspect-ratio: 9 / 19;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gg-game__phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gg-game__phone-placeholder {
    text-align: center;
    padding: 40px;
}

.gg-game__phone-placeholder-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.1;
}

.gg-game__phone-placeholder-sub {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 28px;
    background: linear-gradient(90deg, #4dd0e1 0%, #b794f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gg-game__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #4dd0e1 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #ffffff;
}

.gg-game__name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #d1d1dd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gg-game__desc {
    font-size: 17px;
    line-height: 1.7;
    color: #b8b8c4;
    margin-bottom: 20px;
}

.gg-game__desc strong {
    color: #ffffff;
    font-weight: 600;
}

.gg-game__desc:last-of-type {
    margin-bottom: 32px;
}

.gg-game__stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.gg-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: #000000;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.gg-store-badge:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.gg-store-badge svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.gg-store-badge__top {
    font-size: 10px;
    line-height: 1;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gg-store-badge__bottom {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #000000;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.gg-contact {
    padding: 120px 0;
    position: relative;
}

.gg-contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 900px) {
    .gg-contact__row {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.gg-contact__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}

.gg-contact__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.35) 0%, transparent 65%);
    filter: blur(50px);
}

.gg-contact__illustration {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at center, rgba(124, 58, 237, 0.5) 0%, transparent 60%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 140px;
    line-height: 1;
}

.gg-contact__form-wrap {
    width: 100%;
}

.gg-contact__heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gg-form__group {
    margin-bottom: 20px;
}

.gg-form__label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 8px;
}

.gg-form__input,
.gg-form__textarea {
    width: 100%;
    padding: 16px 20px;
    background-color: transparent;
    border: 1px solid #3a3a44;
    border-radius: 14px;
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.gg-form__input:focus,
.gg-form__textarea:focus {
    outline: none;
    border-color: #7c3aed;
    background-color: rgba(124, 58, 237, 0.05);
}

.gg-form__input::placeholder,
.gg-form__textarea::placeholder {
    color: #6a6a74;
}

.gg-form__textarea {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
}

.gg-form__submit {
    display: block;
    width: 100%;
    padding: 20px;
    background-color: #7c3aed;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 18px;
    border-radius: 999px;
    margin-top: 12px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.gg-form__submit:hover {
    background-color: #6d28d9;
    transform: translateY(-1px);
}

.gg-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gg-form__message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    display: none;
}

.gg-form__message--success {
    background-color: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
    display: block;
}

.gg-form__message--error {
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    display: block;
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.gg-about {
    padding: 200px 0 120px;
}

.gg-about__intro {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.gg-about__eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #4dd0e1;
    margin-bottom: 20px;
}

.gg-about__title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 24px;
}

.gg-about__title span {
    background: linear-gradient(90deg, #4dd0e1 0%, #b794f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gg-about__lede {
    font-size: 20px;
    line-height: 1.6;
    color: #b8b8c4;
}

.gg-about__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .gg-about__grid {
        grid-template-columns: 1fr;
    }
}

.gg-about__card {
    padding: 32px;
    border: 1px solid #1f1f24;
    border-radius: 20px;
    background-color: #0a0a0e;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gg-about__card:hover {
    border-color: #7c3aed;
    transform: translateY(-4px);
}

.gg-about__card-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #7c3aed;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.gg-about__card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 12px;
}

.gg-about__card-text {
    font-size: 15px;
    line-height: 1.6;
    color: #888892;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.gg-footer {
    padding: 60px 0 40px;
    border-top: 1px solid #1a1a1f;
}

.gg-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.gg-footer__copy {
    font-size: 14px;
    color: #6a6a74;
}

.gg-footer__links {
    display: flex;
    gap: 28px;
}

.gg-footer__links a {
    font-size: 14px;
    color: #6a6a74;
    transition: color 0.2s ease;
}

.gg-footer__links a:hover {
    color: #ffffff;
    opacity: 1;
}

@media (max-width: 600px) {
    .gg-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   GENERIC PAGE / POST CONTENT
   ========================================================================== */

.gg-page {
    padding: 180px 0 120px;
}

.gg-page__inner {
    max-width: 800px;
    margin: 0 auto;
}

.gg-page__title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 32px;
}

.gg-page__content {
    font-size: 17px;
    line-height: 1.8;
    color: #c8c8d2;
}

.gg-page__content h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #ffffff;
    margin: 40px 0 16px;
}

.gg-page__content h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #ffffff;
    margin: 32px 0 12px;
}

.gg-page__content p {
    margin-bottom: 20px;
}

.gg-page__content a {
    color: #4dd0e1;
    border-bottom: 1px solid rgba(77, 208, 225, 0.4);
}

.gg-page__content ul,
.gg-page__content ol {
    margin: 0 0 20px 24px;
}

.gg-page__content li {
    margin-bottom: 8px;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.gg-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 32px;
}

.gg-404__big {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(80px, 18vw, 220px);
    line-height: 1;
    background: linear-gradient(90deg, #4dd0e1 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gg-404__text {
    font-size: 18px;
    color: #b8b8c4;
    margin: 16px 0 32px;
}

.gg-404__link {
    display: inline-block;
    padding: 14px 32px;
    background-color: #7c3aed;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 600;
}

/* ==========================================================================
   FADE-IN ANIMATION
   ========================================================================== */

.gg-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gg-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.gg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
