/**
 * Legend Link PH - Design Stylesheet
 * All classes use prefix "g927-" for namespace isolation
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --g927-primary: #00FA9A;
    --g927-secondary: #ADFF2F;
    --g927-accent: #9AFF9A;
    --g927-bg-dark: #2E4057;
    --g927-bg-darker: #1a2a3a;
    --g927-text-light: #E0FFFF;
    --g927-text-white: #ffffff;
    --g927-gradient-start: #00FA9A;
    --g927-gradient-end: #ADFF2F;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--g927-bg-darker) 0%, var(--g927-bg-dark) 100%);
    color: var(--g927-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
}

/* Container */
.g927-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.g927-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g927-bg-darker) 0%, rgba(46, 64, 87, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 250, 154, 0.2);
}

.g927-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

.g927-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.g927-logo img {
    width: 28px;
    height: 28px;
}

.g927-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--g927-primary);
    text-shadow: 0 0 10px rgba(0, 250, 154, 0.5);
}

.g927-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g927-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.g927-btn-primary {
    background: linear-gradient(135deg, var(--g927-gradient-start) 0%, var(--g927-gradient-end) 100%);
    color: var(--g927-bg-darker);
}

.g927-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 250, 154, 0.4);
}

.g927-btn-secondary {
    background: transparent;
    border: 2px solid var(--g927-primary);
    color: var(--g927-primary);
}

.g927-btn-secondary:hover {
    background: var(--g927-primary);
    color: var(--g927-bg-darker);
}

.g927-menu-toggle {
    background: transparent;
    border: none;
    color: var(--g927-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.g927-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g927-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
}

.g927-mobile-menu.g927-menu-active {
    right: 0;
}

.g927-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;
}

.g927-menu-overlay.g927-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g927-nav-list {
    list-style: none;
}

.g927-nav-item {
    margin-bottom: 0.5rem;
}

.g927-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--g927-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.g927-nav-link:hover {
    background: rgba(0, 250, 154, 0.15);
    color: var(--g927-primary);
}

/* Main Content */
main {
    padding-top: 6rem;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 8rem;
    }
}

/* Hero Carousel */
.g927-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.g927-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g927-slide.g927-slide-active {
    opacity: 1;
}

.g927-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Titles */
.g927-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g927-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 250, 154, 0.3);
}

.g927-subtitle {
    font-size: 1.4rem;
    color: var(--g927-accent);
    margin-bottom: 0.8rem;
}

/* Game Grid */
.g927-game-section {
    margin-bottom: 2rem;
}

.g927-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.g927-game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 250, 154, 0.1);
}

.g927-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--g927-primary);
    box-shadow: 0 5px 15px rgba(0, 250, 154, 0.2);
}

.g927-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.g927-game-name {
    font-size: 1rem;
    color: var(--g927-text-light);
    text-align: center;
    padding: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Cards */
.g927-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 250, 154, 0.1);
}

.g927-card p {
    font-size: 1.3rem;
    line-height: 1.8rem;
    color: var(--g927-text-light);
    margin-bottom: 1rem;
}

.g927-card p:last-child {
    margin-bottom: 0;
}

.g927-highlight {
    color: var(--g927-primary);
    font-weight: 600;
}

/* Promo Links */
.g927-promo-link {
    color: var(--g927-secondary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g927-promo-link:hover {
    color: var(--g927-primary);
    text-shadow: 0 0 8px rgba(0, 250, 154, 0.5);
}

.g927-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--g927-gradient-start) 0%, var(--g927-gradient-end) 100%);
    color: var(--g927-bg-darker);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.g927-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 250, 154, 0.4);
}

/* Features List */
.g927-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.g927-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.g927-feature-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(0, 250, 154, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g927-primary);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.g927-feature-text {
    font-size: 1.3rem;
    color: var(--g927-text-light);
}

/* FAQ Section */
.g927-faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.8rem;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--g927-primary);
}

.g927-faq-q {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--g927-primary);
    margin-bottom: 0.5rem;
}

.g927-faq-a {
    font-size: 1.2rem;
    color: var(--g927-text-light);
    line-height: 1.6rem;
}

/* Testimonials */
.g927-testimonial {
    background: rgba(0, 250, 154, 0.08);
    border-radius: 1rem;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.g927-testimonial-text {
    font-size: 1.2rem;
    color: var(--g927-text-light);
    font-style: italic;
    margin-bottom: 0.8rem;
}

.g927-testimonial-author {
    font-size: 1.1rem;
    color: var(--g927-accent);
    font-weight: 600;
}

/* Payment Methods */
.g927-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.g927-payment-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    font-size: 1.2rem;
    color: var(--g927-text-light);
}

/* Footer */
.g927-footer {
    background: var(--g927-bg-darker);
    padding: 2rem 1.2rem;
    border-top: 1px solid rgba(0, 250, 154, 0.2);
}

.g927-footer-brand {
    font-size: 1.3rem;
    color: var(--g927-text-light);
    line-height: 1.8rem;
    margin-bottom: 1.5rem;
}

.g927-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.g927-footer-link {
    padding: 0.5rem 1rem;
    background: rgba(0, 250, 154, 0.15);
    border-radius: 2rem;
    font-size: 1.1rem;
    color: var(--g927-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g927-footer-link:hover {
    background: var(--g927-primary);
    color: var(--g927-bg-darker);
}

.g927-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.g927-footer-nav a {
    color: var(--g927-text-light);
    text-decoration: none;
    font-size: 1.2rem;
}

.g927-footer-nav a:hover {
    color: var(--g927-primary);
}

.g927-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(224, 255, 255, 0.6);
}

/* Bottom Navigation */
.g927-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(46, 64, 87, 0.98) 0%, var(--g927-bg-darker) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(0, 250, 154, 0.3);
}

@media (min-width: 769px) {
    .g927-bottom-nav {
        display: none;
    }
}

.g927-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--g927-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.g927-nav-btn:hover,
.g927-nav-btn.g927-active {
    color: var(--g927-primary);
    transform: scale(1.1);
}

.g927-nav-btn i,
.g927-nav-btn .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.g927-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Winners Showcase */
.g927-winners {
    background: rgba(0, 250, 154, 0.1);
    border-radius: 1rem;
    padding: 1rem;
}

.g927-winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g927-winner-item:last-child {
    border-bottom: none;
}

.g927-winner-name {
    font-size: 1.2rem;
    color: var(--g927-text-light);
}

.g927-winner-amount {
    font-size: 1.2rem;
    color: var(--g927-secondary);
    font-weight: 700;
}

/* App Download */
.g927-app-cta {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 250, 154, 0.15) 0%, rgba(173, 255, 47, 0.1) 100%);
    border-radius: 1rem;
    border: 1px solid rgba(0, 250, 154, 0.2);
}

.g927-app-cta h3 {
    font-size: 1.5rem;
    color: var(--g927-primary);
    margin-bottom: 0.8rem;
}

.g927-app-cta p {
    font-size: 1.2rem;
    color: var(--g927-text-light);
    margin-bottom: 1rem;
}

.g927-app-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Utility */
.g927-text-center {
    text-align: center;
}

.g927-mb-1 {
    margin-bottom: 1rem;
}

.g927-mb-2 {
    margin-bottom: 2rem;
}
