/* php777 win CSS Design System */
/* All classes use prefix gc05- for namespace isolation */

/* CSS Variables for consistent theming */
:root {
    --gc05-primary: #880E4F;
    --gc05-secondary: #FFE135;
    --gc05-accent: #DAA520;
    --gc05-dark: #2C2C2C;
    --gc05-light: #CCCCCC;
    --gc05-gold: #B8860B;
    --gc05-white: #FFFFFF;
    --gc05-black: #000000;
    --gc05-gray: #666666;
    --gc05-bg-dark: #1a1a1a;
    --gc05-bg-light: #f5f5f5;
    --gc05-border: #333333;
    --gc05-shadow: rgba(0, 0, 0, 0.3);
    --gc05-success: #4CAF50;
    --gc05-error: #f44336;
    --gc05-warning: #FF9800;
    --gc05-info: #2196F3;
    /* Typography */
    font-size: 62.5%; /* 10px base for easy rem calculations */
    --gc05-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --gc05-font-mono: 'Courier New', Courier, monospace;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--gc05-font-primary);
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--gc05-bg-dark);
    color: var(--gc05-light);
    overflow-x: hidden;
}

/* Utility Classes */
.gc05-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gc05-wrapper {
    position: relative;
    min-height: 100vh;
    padding-bottom: 8rem; /* Space for bottom nav */
}

.gc05-grid {
    display: grid;
    gap: 1.5rem;
}

.gc05-flex {
    display: flex;
}

.gc05-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc05-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gc05-text-center {
    text-align: center;
}

.gc05-text-left {
    text-align: left;
}

.gc05-text-right {
    text-align: right;
}

.gc05-hidden {
    display: none !important;
}

/* Typography */
.gc05-h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gc05-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gc05-h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gc05-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.gc05-h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gc05-accent);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.gc05-p {
    font-size: 1.4rem;
    color: var(--gc05-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.gc05-small {
    font-size: 1.2rem;
    color: var(--gc05-gray);
}

/* Header Navigation */
.gc05-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--gc05-primary) 0%, var(--gc05-dark) 100%);
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px var(--gc05-shadow);
}

.gc05-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gc05-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.gc05-logo-icon {
    width: 2.8rem;
    height: 2.8rem;
    background: var(--gc05-secondary);
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gc05-primary);
    font-weight: bold;
}

.gc05-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gc05-white);
    text-shadow: 1px 1px 2px var(--gc05-shadow);
}

.gc05-header-buttons {
    display: flex;
    gap: 1rem;
}

.gc05-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 0.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem;
    touch-action: manipulation;
}

.gc05-btn-primary {
    background: linear-gradient(135deg, var(--gc05-secondary) 0%, var(--gc05-accent) 100%);
    color: var(--gc05-primary);
    box-shadow: 0 2px 8px var(--gc05-shadow);
}

.gc05-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--gc05-shadow);
}

.gc05-btn-secondary {
    background: transparent;
    color: var(--gc05-white);
    border: 2px solid var(--gc05-secondary);
}

.gc05-btn-secondary:hover {
    background: var(--gc05-secondary);
    color: var(--gc05-primary);
}

.gc05-menu-button {
    background: none;
    border: none;
    color: var(--gc05-white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
}

/* Mobile Menu */
.gc05-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--gc05-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px var(--gc05-shadow);
    overflow-y: auto;
}

.gc05-mobile-menu.active {
    right: 0;
}

.gc05-menu-header {
    background: var(--gc05-primary);
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gc05-menu-close {
    background: none;
    border: none;
    color: var(--gc05-white);
    font-size: 2.4rem;
    cursor: pointer;
    width: 4.4rem;
    height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc05-menu-nav {
    padding: 1.5rem;
}

.gc05-menu-item {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--gc05-light);
    text-decoration: none;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--gc05-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gc05-menu-item:hover {
    background: var(--gc05-primary);
    color: var(--gc05-white);
    padding-left: 1.5rem;
}

.gc05-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gc05-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.gc05-main {
    margin-top: 7rem; /* Space for fixed header */
    min-height: calc(100vh - 7rem);
}

/* Carousel */
.gc05-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--gc05-shadow);
}

.gc05-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.gc05-carousel-slide {
    min-width: 100%;
    position: relative;
}

.gc05-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.gc05-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--gc05-white);
    padding: 2rem 1.5rem 1.5rem;
}

.gc05-carousel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gc05-carousel-desc {
    font-size: 1.4rem;
    opacity: 0.9;
}

.gc05-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.gc05-carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gc05-carousel-indicator.active {
    background: var(--gc05-secondary);
    transform: scale(1.2);
}

/* Game Grid */
.gc05-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.gc05-game-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gc05-game-item:hover {
    transform: translateY(-3px);
}

.gc05-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px var(--gc05-shadow);
    transition: all 0.3s ease;
}

.gc05-game-item:hover .gc05-game-icon {
    box-shadow: 0 4px 15px var(--gc05-shadow);
}

.gc05-game-name {
    font-size: 1.2rem;
    color: var(--gc05-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Section Styling */
.gc05-section {
    margin-bottom: 3rem;
    padding: 0 1.5rem;
}

.gc05-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.gc05-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gc05-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.gc05-section-more {
    color: var(--gc05-accent);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.gc05-section-more:hover {
    color: var(--gc05-secondary);
}

/* Cards */
.gc05-card {
    background: var(--gc05-dark);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 10px var(--gc05-shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--gc05-border);
}

.gc05-card-header {
    margin-bottom: 1.5rem;
}

.gc05-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gc05-secondary);
    margin-bottom: 0.5rem;
}

.gc05-card-subtitle {
    font-size: 1.4rem;
    color: var(--gc05-gray);
}

.gc05-card-content {
    color: var(--gc05-light);
}

/* Bottom Navigation */
.gc05-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gc05-primary);
    box-shadow: 0 -2px 10px var(--gc05-shadow);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
    padding: 0.5rem 0;
}

.gc05-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.gc05-bottom-nav-item:hover,
.gc05-bottom-nav-item.active {
    color: var(--gc05-secondary);
    transform: translateY(-2px);
}

.gc05-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.gc05-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Footer */
.gc05-footer {
    background: var(--gc05-dark);
    border-top: 1px solid var(--gc05-border);
    padding: 3rem 1.5rem 8rem; /* Extra padding for bottom nav */
    margin-top: 4rem;
}

.gc05-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.gc05-footer-section {
    margin-bottom: 2rem;
}

.gc05-footer-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gc05-secondary);
    margin-bottom: 1rem;
}

.gc05-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gc05-footer-link {
    color: var(--gc05-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.gc05-footer-link:hover {
    color: var(--gc05-secondary);
}

.gc05-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.gc05-partner-icon {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.gc05-partner-icon:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.gc05-copyright {
    text-align: center;
    color: var(--gc05-gray);
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gc05-border);
}

/* Responsive Design */
@media (min-width: 769px) {
    .gc05-bottom-nav {
        display: none;
    }

    .gc05-wrapper {
        padding-bottom: 0;
    }

    .gc05-main {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .gc05-main {
        padding-bottom: 8rem; /* Space for bottom nav */
    }
}

/* Utility classes for colors */
.gc05-text-primary {
    color: var(--gc05-primary);
}

.gc05-text-secondary {
    color: var(--gc05-secondary);
}

.gc05-text-accent {
    color: var(--gc05-accent);
}

.gc05-text-white {
    color: var(--gc05-white);
}

.gc05-bg-primary {
    background-color: var(--gc05-primary);
}

.gc05-bg-secondary {
    background-color: var(--gc05-secondary);
}

.gc05-bg-dark {
    background-color: var(--gc05-dark);
}

/* Animation utilities */
@keyframes gc05-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gc05-fade-in {
    animation: gc05-fadeIn 0.6s ease-out;
}

@keyframes gc05-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.gc05-pulse {
    animation: gc05-pulse 2s infinite;
}

/* Loading states */
.gc05-loading {
    position: relative;
    overflow: hidden;
}

.gc05-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: gc05-loading 1.5s infinite;
}

@keyframes gc05-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}