/* PH889 Universal CSS - Mobile-first responsive design */
/* Root font size for rem units */
html {
    font-size: 62.5%; /* 1rem = 10px */
}

/* Color scheme variables */
:root {
    --color-primary: #40E0D0;
    --color-secondary: #0097A7;
    --color-neutral: #BBBBBB;
    --color-success: #008000;
    --color-dark: #141414;
    --color-white: #FFFFFF;
    --color-accent: #FF6B6B;
    --color-gradient: linear-gradient(135deg, #40E0D0 0%, #0097A7 100%);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--color-white);
    background-color: var(--color-dark);
    overflow-x: hidden;
}

/* Container utilities */
.container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 2rem 0;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-gradient);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    height: 6rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-white);
    text-decoration: none;
}

.logo img {
    width: 2.4rem;
    height: 2.4rem;
    margin-right: 0.8rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    background: var(--color-white);
    color: var(--color-dark);
    border: none;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2.4rem;
    height: 2.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a:hover {
    background: var(--color-primary);
    color: var(--color-dark);
}

/* Main content */
.main-content {
    margin-top: 6rem;
    margin-bottom: 8rem;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 25rem;
    overflow: hidden;
    border-radius: 1rem;
    margin: 2rem 0;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.carousel-item.hidden {
    opacity: 0;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

/* Headings */
h1 {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--color-primary);
    text-align: center;
    margin: 2rem 0;
    line-height: 1.2;
}

h2 {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 2rem 0 1rem 0;
}

h3 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-secondary);
    margin: 1.5rem 0 1rem 0;
}

/* Game Grid */
.game-category {
    margin: 3rem 0;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.game-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-item:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(64, 224, 208, 0.3);
}

.game-item img {
    width: 100%;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.game-item span {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    word-wrap: break-word;
    line-height: 1.2;
}

/* Content modules */
.content-module {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-module p {
    margin-bottom: 1rem;
    color: var(--color-neutral);
}

.content-module ul {
    list-style: none;
    padding-left: 0;
}

.content-module li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-module li:last-child {
    border-bottom: none;
}

/* Promotional links */
.promo-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-gradient);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.4rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.promo-link:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.promo-text {
    color: var(--color-primary);
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-text:hover {
    color: var(--color-accent);
}

/* Footer */
.footer {
    background: var(--color-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 10rem 0;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.footer-links a {
    color: var(--color-neutral);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.partners img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partners img:hover {
    opacity: 1;
}

.copyright {
    color: var(--color-neutral);
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-gradient);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
    max-width: 430px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.bottom-nav-item i {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-item span {
    font-size: 1rem;
    font-weight: bold;
}

/* Responsive design */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
    
    .game-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .footer-links {
        justify-content: space-between;
    }
    
    .bottom-nav {
        display: none;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-accent {
    color: var(--color-accent);
}

.bg-primary {
    background: var(--color-primary);
}

.bg-secondary {
    background: var(--color-secondary);
}

.bg-gradient {
    background: var(--color-gradient);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Loading and animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Special effects */
.glow {
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.5);
}

.highlight {
    background: rgba(64, 224, 208, 0.1);
    border: 1px solid var(--color-primary);
    border-radius: 0.5rem;
    padding: 1rem;
} 