/* ph987 Universal CSS - Mobile-First Responsive Design */
/* Color Palette: #333333 | #BA55D3 | #8470FF | #EEEEEE | #F8F8FF */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px base for rem units */
    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: #F8F8FF;
    background: linear-gradient(135deg, #333333 0%, #2a2a2a 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #F8F8FF;
}

h1 {
    font-size: 2.4rem;
    text-align: center;
    background: linear-gradient(45deg, #BA55D3, #8470FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: #BA55D3;
}

h3 {
    font-size: 1.8rem;
    color: #8470FF;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.5rem;
}

a {
    color: #8470FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #BA55D3;
}

/* Layout Containers */
.container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(1rem);
    z-index: 1000;
    border-bottom: 2px solid #BA55D3;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 43rem;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: #BA55D3;
    text-decoration: none;
}

.logo-img {
    width: 3.2rem;
    height: 3.2rem;
    margin-right: 0.8rem;
    border-radius: 0.4rem;
}

.nav-buttons {
    display: flex;
    gap: 0.8rem;
}

.nav-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #8470FF;
    background: linear-gradient(45deg, #8470FF, #BA55D3);
    color: #F8F8FF;
    border-radius: 0.6rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(186, 85, 211, 0.3);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    padding: 0.4rem;
}

.nav-toggle span {
    display: block;
    height: 0.3rem;
    width: 100%;
    background: #BA55D3;
    margin: 0.2rem 0;
    transition: 0.3s;
    border-radius: 0.2rem;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-0.5rem, 0.6rem);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-0.5rem, -0.6rem);
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(51, 51, 51, 0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-menu.show {
    max-height: 50rem;
}

.nav-menu ul {
    list-style: none;
    padding: 1rem;
}

.nav-menu li {
    margin: 0.5rem 0;
}

.nav-menu a {
    display: block;
    padding: 1rem;
    color: #F8F8FF;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    border-left-color: #BA55D3;
    background: rgba(186, 85, 211, 0.1);
    color: #BA55D3;
}

/* Main Content */
.main-content {
    margin-top: 8rem;
    min-height: calc(100vh - 8rem);
    padding-bottom: 8rem;
}

/* Carousel */
.carousel-container {
    position: relative;
    height: 20rem;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.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;
    border-radius: 1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(248, 248, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #BA55D3;
    transform: scale(1.2);
}

/* Game Sections */
.games-section {
    margin: 3rem 0;
}

.games-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(238, 238, 238, 0.1);
    border-radius: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 8rem;
    border: 2px solid transparent;
}

.game-item:hover {
    transform: translateY(-3px);
    border-color: #BA55D3;
    background: rgba(186, 85, 211, 0.2);
    box-shadow: 0 4px 12px rgba(186, 85, 211, 0.3);
}

.game-item img {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
}

.game-item span {
    font-size: 1rem;
    text-align: center;
    color: #F8F8FF;
    font-weight: 500;
    line-height: 1.2;
}

/* Promotional Links and Buttons */
.promo-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #BA55D3, #8470FF);
    color: #F8F8FF;
    border-radius: 0.8rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
    border: none;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(186, 85, 211, 0.4);
    color: #F8F8FF;
}

.promo-text {
    color: #BA55D3;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.promo-text:hover {
    color: #8470FF;
}

/* Content Modules */
.content-module {
    background: rgba(238, 238, 238, 0.1);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 1rem;
    border-left: 4px solid #BA55D3;
}

.content-module h3 {
    margin-bottom: 1.5rem;
    color: #BA55D3;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(238, 238, 238, 0.2);
    position: relative;
    padding-left: 2rem;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8470FF;
    font-weight: bold;
    font-size: 1.6rem;
}

/* RTP Analysis */
.rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.rtp-item {
    background: rgba(132, 112, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.8rem;
    text-align: center;
    border: 2px solid #8470FF;
}

.rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: #BA55D3;
    display: block;
}

/* Footer */
.footer {
    background: #333333;
    border-top: 2px solid #BA55D3;
    padding: 3rem 0 8rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.footer-links a {
    color: #EEEEEE;
    padding: 0.8rem;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
    text-align: center;
}

.footer-links a:hover {
    background: rgba(186, 85, 211, 0.2);
    color: #BA55D3;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.partner-logo {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border-radius: 0.4rem;
}

.partner-logo:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: #EEEEEE;
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(238, 238, 238, 0.2);
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(1rem);
    border-top: 2px solid #BA55D3;
    z-index: 1000;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    max-width: 43rem;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #EEEEEE;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.6rem;
    transition: all 0.3s ease;
    min-height: 4.4rem;
    min-width: 4.4rem;
    justify-content: center;
}

.bottom-nav-item:hover {
    color: #BA55D3;
    background: rgba(186, 85, 211, 0.2);
}

.bottom-nav-item i {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (min-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .game-item img {
        width: 5rem;
        height: 5rem;
    }
    
    .rtp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    html {
        font-size: 65%;
    }
    
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading and Performance */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(45deg, #BA55D3, #8470FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.gap-1 {
    gap: 1rem;
} 