/* Universal CSS for ph987 website - 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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #1C2833;
    background: linear-gradient(135deg, #4B0082 0%, #2F1B69 50%, #1C2833 100%);
    min-height: 100vh;
    padding-bottom: 8rem; /* Space for bottom navigation */
}

/* Container and Layout */
.container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    margin: 1rem 0;
    border-radius: 1rem;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.1);
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #4B0082, #2F1B69);
    padding: 1rem 0;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #FFFFFF;
}

.logo-img {
    width: 2.4rem;
    height: 2.4rem;
    margin-right: 0.8rem;
}

.site-name {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.nav-buttons {
    display: flex;
    gap: 0.8rem;
}

.nav-btn {
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #F7931E, #FF6B35);
    transform: translateY(-0.2rem);
}

#nav-toggle {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 4.4rem;
    min-width: 4.4rem;
}

/* Navigation Menu */
.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(75, 0, 130, 0.98);
    backdrop-filter: blur(1rem);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-menu.nav-open {
    max-height: 50rem;
}

.nav-list {
    list-style: none;
    padding: 1rem;
}

.nav-item {
    margin: 0.5rem 0;
}

.nav-link {
    display: block;
    padding: 1rem;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main {
    margin-top: 8rem;
    padding: 1rem 0;
}

/* Typography */
h1 {
    font-size: 2.4rem;
    font-weight: bold;
    color: #4B0082;
    text-align: center;
    margin: 2rem 0;
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #4B0082;
    margin: 1.5rem 0 1rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2F1B69;
    margin: 1rem 0 0.5rem;
}

p {
    margin: 1rem 0;
    line-height: 1.6;
}

/* Promotional Links and Buttons */
.promo-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 0.8rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0.5rem;
    min-height: 4.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1.4rem;
}

.promo-link:hover {
    background: linear-gradient(135deg, #F7931E, #FF6B35);
    transform: translateY(-0.2rem);
    box-shadow: 0 0.4rem 1.2rem rgba(255, 107, 53, 0.4);
}

.promo-text-link {
    color: #FF6B35 !important;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.promo-text-link:hover {
    color: #F7931E !important;
}

/* Carousel */
.carousel-container {
    position: relative;
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    display: none;
    cursor: pointer;
}

.carousel-slide:first-child {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(75, 0, 130, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: #4B0082;
}

/* Game Grid */
.games-section {
    margin: 2rem 0;
}

.game-category {
    margin: 2rem 0;
}

.category-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4B0082;
    margin: 1rem 0;
    text-transform: capitalize;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #1C2833;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
}

.game-item:hover {
    transform: translateY(-0.2rem);
    background: rgba(255, 255, 255, 0.8);
}

.game-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 0.8rem;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.game-name {
    font-size: 1rem;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #4B0082, #1C2833);
    color: #FFFFFF;
    padding: 3rem 0 10rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section {
    margin: 2rem 0;
}

.footer-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.footer-link {
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.partner-logo {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(75, 0, 130, 0.95);
    backdrop-filter: blur(1rem);
    padding: 1rem 0;
    box-shadow: 0 -0.2rem 1rem rgba(0, 0, 0, 0.3);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 1rem;
    transition: color 0.3s ease;
    min-height: 4.4rem;
    min-width: 4.4rem;
    justify-content: center;
}

.bottom-nav-item:hover {
    color: #FF6B35;
}

.bottom-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

/* Responsive Design */
@media (min-width: 48rem) {
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-bold {
    font-weight: bold;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.hidden {
    display: none;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s infinite;
} 