/* ph958 Universal CSS - Mobile First Responsive Design */
/* Color Palette: #1E1E1E (dark), #FF8A80 (coral), #00FF7F (mint green) */

/* CSS 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: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #ffffff;
    background-color: #1E1E1E;
    overflow-x: hidden;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #00FF7F;
}

h1 {
    font-size: 2.4rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Container and Layout */
.container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 2rem 0;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1E1E1E 0%, #2A2A2A 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    height: 6rem;
}

.logo-section {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #00FF7F;
}

.logo-section img {
    width: 3rem;
    height: 3rem;
    margin-right: 0.8rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.promo-link {
    background: linear-gradient(135deg, #FF8A80 0%, #FF6B6B 100%);
    color: #1E1E1E;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 138, 128, 0.4);
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: #00FF7F;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 28rem;
    height: 100vh;
    background: linear-gradient(135deg, #1E1E1E 0%, #2A2A2A 100%);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid #333;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #333;
}

.mobile-menu-list {
    list-style: none;
    padding: 1rem 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid #333;
}

.mobile-menu-list a {
    display: block;
    padding: 1.5rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu-list a:hover {
    background: rgba(0, 255, 127, 0.1);
    color: #00FF7F;
}

/* Main Content */
.main-content {
    margin-top: 6rem;
    padding-bottom: 8rem;
}

/* Carousel/Slider */
.carousel {
    position: relative;
    width: 100%;
    max-width: 43rem;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 20rem;
    position: relative;
    overflow: hidden;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.carousel-slide .slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: #ffffff;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #FF8A80;
}

/* Game Grid */
.game-section {
    margin: 3rem 0;
}

.game-category-title {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #2A2A2A 0%, #1E1E1E 100%);
    border-radius: 1rem;
    border-left: 4px solid #00FF7F;
}

.game-category-title h2 {
    color: #00FF7F;
    margin: 0;
    font-size: 1.8rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    background: linear-gradient(135deg, #2A2A2A 0%, #1E1E1E 100%);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #333;
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 127, 0.2);
    border-color: #00FF7F;
}

.game-item img {
    width: 100%;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
}

.game-item .game-name {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.3;
}

/* Content Sections */
.content-section {
    background: linear-gradient(135deg, #2A2A2A 0%, #1E1E1E 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #333;
}

.content-section h3 {
    color: #FF8A80;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.content-section ul {
    color: #cccccc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.8rem;
}

/* Promotional Elements */
.promo-button {
    background: linear-gradient(135deg, #00FF7F 0%, #00E676 100%);
    color: #1E1E1E;
    padding: 1.2rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    display: inline-block;
    transition: all 0.3s ease;
    margin: 1rem 0;
    cursor: pointer;
    border: none;
}

.promo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 127, 0.4);
}

.promo-text {
    color: #FF8A80;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.promo-text:hover {
    color: #00FF7F;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1E1E1E 0%, #0F0F0F 100%);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid #333;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #FF8A80;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00FF7F;
}

.partners-section {
    margin: 2rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.partners-grid img {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.copyright {
    color: #888;
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1E1E1E 0%, #2A2A2A 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
    height: 6rem;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #888;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #00FF7F;
    transform: translateY(-2px);
}

.bottom-nav-item i {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Lazy Loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* Responsive Design */
@media (min-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 76.8rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .bottom-nav {
        display: none;
    }
}

@media (min-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(10, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Menu Open State */
body.menu-open {
    overflow: hidden;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .game-item,
    .content-section,
    .footer {
        border: 2px solid #00FF7F;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 