/**
 * JILIPH888 Gaming Platform CSS
 * Mobile-first responsive design with custom prefix
 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #BBBBBB;
    background: #2C3E50;
    overflow-x: hidden;
}

/* Color palette variables */
:root {
    --g124-bg: #2C3E50;
    --g124-text: #BBBBBB;
    --g124-accent: #708090;
    --g124-dark: #0C0C0C;
    --g124-primary: #3498db;
    --g124-secondary: #e74c3c;
    --g124-success: #2ecc71;
    --g124-warning: #f39c12;
    --g124-error: #e74c3c;
    --g124-shadow: rgba(0, 0, 0, 0.3);
    --g124-glow: rgba(52, 152, 219, 0.5);
}

/* Utility classes */
.g124-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.g124-flex {
    display: flex;
}

.g124-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.g124-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.g124-text-center {
    text-align: center;
}

.g124-text-left {
    text-align: left;
}

.g124-text-right {
    text-align: right;
}

.g124-mb-1 { margin-bottom: 1rem; }
.g124-mb-2 { margin-bottom: 2rem; }
.g124-mb-3 { margin-bottom: 3rem; }
.g124-mb-4 { margin-bottom: 4rem; }

.g124-mt-1 { margin-top: 1rem; }
.g124-mt-2 { margin-top: 2rem; }
.g124-mt-3 { margin-top: 3rem; }
.g124-mt-4 { margin-top: 4rem; }

/* Header */
.g124-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--g124-bg) 0%, var(--g124-dark) 100%);
    border-bottom: 1px solid var(--g124-accent);
    z-index: 1000;
    padding: 1rem 0;
}

.g124-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.g124-logo {
    display: flex;
    align-items: center;
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--g124-primary);
    text-decoration: none;
}

.g124-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    margin-right: 1rem;
    background: var(--g124-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.g124-header-actions {
    display: flex;
    gap: 1rem;
}

.g124-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 0.5rem;
    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-width: 8rem;
    min-height: 4.4rem;
}

.g124-btn-primary {
    background: linear-gradient(135deg, var(--g124-primary) 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 2px 10px var(--g124-shadow);
}

.g124-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--g124-glow);
}

.g124-btn-secondary {
    background: linear-gradient(135deg, var(--g124-secondary) 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 2px 10px var(--g124-shadow);
}

.g124-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

.g124-btn-outline {
    background: transparent;
    color: var(--g124-text);
    border: 2px solid var(--g124-accent);
}

.g124-btn-outline:hover {
    background: var(--g124-accent);
    color: white;
}

/* Mobile menu toggle */
.g124-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--g124-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
}

/* Hero carousel */
.g124-hero {
    margin-top: 7rem;
    position: relative;
    overflow: hidden;
}

.g124-hero-carousel {
    position: relative;
    height: 25rem;
    background: var(--g124-dark);
    border-radius: 1rem;
    overflow: hidden;
}

.g124-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.g124-hero-slide.active {
    opacity: 1;
}

.g124-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g124-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.g124-hero-title {
    font-size: 3.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px var(--g124-shadow);
}

.g124-hero-subtitle {
    font-size: 1.6rem;
    color: var(--g124-text);
    margin-bottom: 2rem;
}

.g124-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.g124-carousel-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.g124-carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.g124-carousel-indicator.active {
    background: var(--g124-primary);
    transform: scale(1.2);
}

/* Navigation */
.g124-nav {
    background: var(--g124-dark);
    border-radius: 1rem;
    padding: 1rem;
    margin: 2rem 0;
}

.g124-nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.g124-nav-item {
    flex: 1;
    min-width: calc(50% - 0.5rem);
}

.g124-nav-link {
    display: block;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    color: var(--g124-text);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.g124-nav-link:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--g124-primary);
    transform: translateY(-2px);
}

/* Game sections */
.g124-games-section {
    margin: 3rem 0;
}

.g124-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.g124-section-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.g124-section-icon {
    font-size: 3rem;
    color: var(--g124-primary);
}

.g124-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.g124-game-card {
    background: var(--g124-dark);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.g124-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--g124-primary);
    box-shadow: 0 8px 30px var(--g124-shadow);
}

.g124-game-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.g124-game-card:hover .g124-game-image {
    transform: scale(1.05);
}

.g124-game-info {
    padding: 1rem;
    text-align: center;
}

.g124-game-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g124-game-type {
    font-size: 1.2rem;
    color: var(--g124-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ripple effect */
.g124-ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: g124-ripple 0.6s linear;
    pointer-events: none;
}

@keyframes g124-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Content modules */
.g124-content-module {
    background: var(--g124-dark);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.g124-module-title {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.g124-module-content {
    color: var(--g124-text);
    line-height: 1.8;
}

.g124-module-content p {
    margin-bottom: 1.5rem;
}

.g124-module-content strong {
    color: white;
    font-weight: 600;
}

/* Affiliate buttons */
.g124-affiliate-btn {
    background: linear-gradient(135deg, var(--g124-success) 0%, #27ae60 100%);
    color: white;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.3);
    margin: 1rem 0;
}

.g124-affiliate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(46, 204, 113, 0.4);
}

.g124-affiliate-btn.clicked {
    animation: g124-pulse 0.3s ease;
}

@keyframes g124-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Partners section */
.g124-partners {
    background: var(--g124-dark);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.g124-partners-title {
    font-size: 1.8rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.g124-partners-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
}

.g124-partners-carousel::-webkit-scrollbar {
    height: 4px;
}

.g124-partners-carousel::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.g124-partners-carousel::-webkit-scrollbar-thumb {
    background: var(--g124-primary);
    border-radius: 2px;
}

.g124-partner-logo {
    flex-shrink: 0;
    width: 8rem;
    height: 4rem;
    object-fit: contain;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

.g124-partner-logo:hover {
    filter: brightness(1);
    transform: scale(1.1);
}

/* Footer */
.g124-footer {
    background: var(--g124-dark);
    border-top: 1px solid var(--g124-accent);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.g124-footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.g124-footer-section h3 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 1rem;
}

.g124-footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.g124-footer-link {
    color: var(--g124-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.g124-footer-link:hover {
    color: var(--g124-primary);
}

.g124-copyright {
    text-align: center;
    color: var(--g124-accent);
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile bottom navigation */
.g124-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--g124-dark) 0%, var(--g124-bg) 100%);
    border-top: 1px solid var(--g124-accent);
    z-index: 1000;
    height: 6.4rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
}

.g124-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5.4rem;
    color: var(--g124-text);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
}

.g124-bottom-nav-item:hover {
    color: var(--g124-primary);
    transform: translateY(-2px);
}

.g124-bottom-nav-item.active {
    color: var(--g124-primary);
}

.g124-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
}

.g124-bottom-nav-label {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Mobile menu */
.g124-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 32rem;
    height: 100vh;
    background: linear-gradient(135deg, var(--g124-bg) 0%, var(--g124-dark) 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.g124-mobile-menu.active {
    right: 0;
}

.g124-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g124-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.g124-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--g124-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
}

.g124-menu-nav {
    margin-top: 4rem;
}

.g124-menu-nav-item {
    margin-bottom: 1rem;
}

.g124-menu-nav-link {
    display: block;
    padding: 1.2rem;
    color: var(--g124-text);
    text-decoration: none;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.g124-menu-nav-link:hover {
    background: rgba(52, 152, 219, 0.1);
    color: var(--g124-primary);
    padding-left: 1.5rem;
}

/* Scroll animations */
.g124-animate-on-scroll {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.6s ease;
}

.g124-animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    /* Add padding for bottom nav on mobile */
    main {
        padding-bottom: 8rem;
    }

    .g124-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .g124-hero-title {
        font-size: 2.4rem;
    }

    .g124-hero-carousel {
        height: 20rem;
    }

    .g124-nav-item {
        min-width: 100%;
    }

    .g124-partners-carousel {
        gap: 1rem;
    }

    .g124-partner-logo {
        width: 6rem;
        height: 3rem;
    }
}

@media (max-width: 480px) {
    .g124-container {
        padding: 0 1rem;
    }

    .g124-hero-title {
        font-size: 2rem;
    }

    .g124-hero-subtitle {
        font-size: 1.4rem;
    }

    .g124-games-grid {
        gap: 0.8rem;
    }

    .g124-game-image {
        height: 10rem;
    }

    .g124-bottom-nav {
        height: 5.6rem;
    }

    .g124-bottom-nav-icon {
        font-size: 2rem;
    }

    .g124-bottom-nav-label {
        font-size: 0.9rem;
    }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .g124-bottom-nav {
        display: none;
    }

    .g124-menu-toggle {
        display: none;
    }

    .g124-header-actions {
        display: flex;
    }
}

/* Show mobile menu toggle on mobile */
@media (max-width: 768px) {
    .g124-menu-toggle {
        display: block;
    }

    .g124-header-actions {
        display: none;
    }
}

/* Print styles */
@media print {
    .g124-header,
    .g124-bottom-nav,
    .g124-footer {
        display: none;
    }

    main {
        padding-bottom: 0;
    }
}