/* PHLWin Universal CSS - Mobile-First Design */
/* 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: #F0F0F0;
    background: linear-gradient(135deg, #212F3D 0%, #3C3C3C 100%);
    min-height: 100vh;
}

/* Color Variables */
:root {
    --primary-light: #F0F0F0;
    --primary-accent: #5F9EA0;
    --primary-dark: #3C3C3C;
    --primary-darker: #212F3D;
    --gradient-bg: linear-gradient(135deg, #212F3D 0%, #3C3C3C 100%);
    --shadow-light: rgba(95, 158, 160, 0.2);
    --shadow-dark: rgba(33, 47, 61, 0.5);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Links and Buttons */
a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
    text-shadow: 0 0 5px var(--primary-accent);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background: linear-gradient(45deg, var(--primary-accent), #4A90A4);
    color: var(--primary-light);
    border: none;
    border-radius: 0.8rem;
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 4.4rem;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-light);
    background: linear-gradient(45deg, #4A90A4, var(--primary-accent));
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-accent), #4A90A4);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-darker));
    border: 1px solid var(--primary-accent);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(33, 47, 61, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--primary-accent);
}

.header-container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.4rem;
}

.site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.8rem;
}

.auth-btn {
    padding: 0.8rem 1.6rem;
    font-size: 1.2rem;
    min-height: 3.6rem;
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 2.4rem;
    height: 2.4rem;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 0.2rem;
    background: var(--primary-light);
    margin: 0.4rem 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.7rem, -0.6rem);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 7rem;
    left: 0;
    right: 0;
    background: rgba(33, 47, 61, 0.98);
    backdrop-filter: blur(15px);
    z-index: 999;
    padding: 2rem;
    border-bottom: 1px solid var(--primary-accent);
}

.mobile-nav.hidden {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-links a {
    display: block;
    padding: 1rem;
    color: var(--primary-light);
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: var(--primary-accent);
    color: var(--primary-darker);
}

/* Main Content */
.main-content {
    margin-top: 7rem;
    min-height: calc(100vh - 7rem);
}

.container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(95, 158, 160, 0.1);
}

.section:last-child {
    border-bottom: none;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px var(--shadow-dark);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.carousel-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(240, 240, 240, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-accent);
    transform: scale(1.2);
}

/* Game Grid Styles */
.game-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-accent);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.game-item {
    background: var(--primary-dark);
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    min-height: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-accent);
    box-shadow: 0 5px 15px var(--shadow-light);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
}

.game-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.game-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-light);
    text-align: center;
    line-height: 1.2;
}

/* Content Modules */
.content-module {
    background: rgba(60, 60, 60, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(95, 158, 160, 0.2);
}

.module-title {
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.module-content {
    line-height: 1.6;
}

.promo-link {
    color: var(--primary-accent);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: underline;
}

.promo-link:hover {
    color: var(--primary-light);
    text-shadow: 0 0 5px var(--primary-accent);
}

/* Footer Styles */
.footer {
    background: var(--primary-darker);
    padding: 3rem 0 8rem;
    margin-top: 4rem;
    border-top: 1px solid var(--primary-accent);
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-accent);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--primary-light);
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: var(--primary-accent);
    color: var(--primary-darker);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.partner-logo {
    width: 100%;
    height: 3rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: rgba(240, 240, 240, 0.7);
    font-size: 1.2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(95, 158, 160, 0.2);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 47, 61, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-top: 1px solid var(--primary-accent);
}

.bottom-nav-container {
    max-width: 43rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-light);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    justify-content: center;
}

.nav-item:hover {
    color: var(--primary-accent);
    background: rgba(95, 158, 160, 0.1);
}

.nav-item i {
    font-size: 2rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--primary-accent);
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Responsive Design */
@media (min-width: 48rem) {
    .container {
        max-width: 76.8rem;
        padding: 0 2rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(10, 1fr);
    }
    
    .bottom-nav {
        display: none;
    }
    
    .footer {
        padding-bottom: 3rem;
    }
}

@media (min-width: 76.8rem) {
    .container {
        max-width: 120rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(10, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.3rem solid rgba(95, 158, 160, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: 4.4rem;
    height: 4.4rem;
    background: var(--primary-accent);
    color: var(--primary-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-light);
    color: var(--primary-accent);
    transform: translateY(-2px);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-light: #FFFFFF;
        --primary-accent: #00FFFF;
        --primary-dark: #000000;
        --primary-darker: #000000;
    }
} 