/**
 * PH7 Gaming Website - Main Stylesheet
 * @version 1.0.0
 * @description Mobile-first responsive design for ph7.click
 */

/* CSS Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --g1a0-primary: #DEB887;
    --g1a0-secondary: #FFB74D;
    --g1a0-accent: #FFCC02;
    --g1a0-dark: #212F3D;
    --g1a0-light: #ffffff;
    --g1a0-gray: #666666;
    --g1a0-bg-light: #f5f5f5;
    --g1a0-gradient: linear-gradient(135deg, #DEB887 0%, #FFB74D 50%, #FFCC02 100%);
    --g1a0-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --g1a0-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #333;
    background-color: var(--g1a0-bg-light);
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* Container & Layout */
.g1a0-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 12px;
}

.g1a0-wrapper {
    padding: 16px 0;
}

/* Header Styles */
.g1a0-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--g1a0-dark);
    z-index: 1000;
    box-shadow: var(--g1a0-shadow-light);
}

.g1a0-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
}

.g1a0-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--g1a0-primary);
    font-weight: bold;
    font-size: 1.6rem;
}

.g1a0-logo img {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

.g1a0-header-buttons {
    display: flex;
    gap: 8px;
}

.g1a0-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.g1a0-btn-register {
    background: var(--g1a0-gradient);
    color: var(--g1a0-dark);
}

.g1a0-btn-login {
    background: transparent;
    color: var(--g1a0-primary);
    border: 1px solid var(--g1a0-primary);
}

.g1a0-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--g1a0-shadow);
}

.g1a0-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.g1a0-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--g1a0-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.g1a0-mobile-menu {
    position: fixed;
    top: 48px;
    left: 0;
    width: 100%;
    max-width: 430px;
    background: var(--g1a0-dark);
    z-index: 9999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.g1a0-mobile-menu.g1a0-menu-open {
    max-height: 400px;
    overflow-y: auto;
}

.g1a0-menu-list {
    list-style: none;
    padding: 12px 0;
}

.g1a0-menu-item {
    border-bottom: 1px solid rgba(222, 184, 135, 0.1);
}

.g1a0-menu-item:last-child {
    border-bottom: none;
}

.g1a0-menu-link {
    display: block;
    padding: 12px 16px;
    color: var(--g1a0-primary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: background 0.3s ease;
}

.g1a0-menu-link:hover {
    background: rgba(222, 184, 135, 0.1);
}

/* Main Content */
.g1a0-main {
    margin-top: 60px;
    padding: 16px 0;
}

/* Carousel */
.g1a0-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.g1a0-carousel-slide {
    width: 100%;
    display: none;
}

.g1a0-carousel-slide:first-child {
    display: block;
}

.g1a0-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Typography */
.g1a0-title {
    color: var(--g1a0-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.g1a0-section-title {
    color: var(--g1a0-dark);
    font-size: 1.6rem;
    font-weight: 600;
    margin: 20px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--g1a0-primary);
}

/* Game Grid */
.g1a0-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.g1a0-game-item {
    text-align: center;
}

.g1a0-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.g1a0-game-icon:hover {
    transform: scale(1.05);
}

.g1a0-game-name {
    font-size: 1rem;
    color: #333;
    display: block;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g1a0-game-link {
    text-decoration: none;
    color: inherit;
}

/* Card Component */
.g1a0-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--g1a0-shadow-light);
}

.g1a0-card-title {
    color: var(--g1a0-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.g1a0-card-content {
    color: #555;
    line-height: 1.6;
}

.g1a0-card-content p {
    margin-bottom: 12px;
}

/* Promo Link */
.g1a0-promo-link {
    color: var(--g1a0-secondary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--g1a0-secondary);
    transition: all 0.3s ease;
}

.g1a0-promo-link:hover {
    color: var(--g1a0-primary);
    border-color: var(--g1a0-primary);
}

/* Footer */
.g1a0-footer {
    background: var(--g1a0-dark);
    color: var(--g1a0-primary);
    padding: 24px 12px 80px;
    margin-top: 32px;
}

.g1a0-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.g1a0-footer-link {
    color: var(--g1a0-primary);
    text-decoration: none;
    font-size: 1.2rem;
}

.g1a0-footer-link:hover {
    color: var(--g1a0-secondary);
}

.g1a0-partners {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.g1a0-partner-logo {
    width: 100%;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.g1a0-partner-logo:hover {
    opacity: 1;
}

.g1a0-copyright {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.7;
}

/* Mobile Bottom Navigation */
.g1a0-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--g1a0-dark);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.g1a0-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    text-decoration: none;
    color: var(--g1a0-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.g1a0-nav-item:hover,
.g1a0-nav-item.g1a0-active {
    color: var(--g1a0-secondary);
}

.g1a0-nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.g1a0-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.g1a0-text-center {
    text-align: center;
}

.g1a0-mt-1 {
    margin-top: 8px;
}

.g1a0-mt-2 {
    margin-top: 16px;
}

.g1a0-mb-1 {
    margin-bottom: 8px;
}

.g1a0-mb-2 {
    margin-bottom: 16px;
}

.g1a0-hidden {
    display: none;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .g1a0-bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    .g1a0-footer {
        padding-bottom: 24px;
    }
}

/* Loading Animation */
.g1a0-loading {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.g1a0-loaded .g1a0-loading {
    opacity: 1;
}

/* Accessibility */
.g1a0-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--g1a0-accent);
    outline-offset: 2px;
}

.g1a0-btn:focus,
.g1a0-nav-item:focus {
    outline: 2px solid var(--g1a0-accent);
}
