/* 999PHL Universal CSS Styles */
/* Mobile-first responsive design for casino gaming website */

/* CSS Reset and Base */
* {
    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: #FAFAFA;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-gold: #FFE135;
    --secondary-pink: #FF91A4;
    --light-bg: #FAFAFA;
    --khaki: #BDB76B;
    --dark-bg: #1A1A2E;
    --light-khaki: #EEE8AA;
    --gradient-bg: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    --shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.3);
    --border-radius: 0.8rem;
    --transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

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: 1rem;
    color: var(--light-bg);
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-pink);
}

/* Container and Layout */
.container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-gold);
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(1rem);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
}

.site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn {
    padding: 0.6rem 1.2rem;
    background: var(--primary-gold);
    color: var(--dark-bg);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 4.4rem;
    height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--secondary-pink);
    transform: translateY(-0.2rem);
}

.nav-toggle {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 2.4rem;
    cursor: pointer;
    width: 4.4rem;
    height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 7rem;
    left: -100%;
    width: 100%;
    height: calc(100vh - 7rem);
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(1rem);
    transition: var(--transition);
    z-index: 999;
}

.mobile-nav.nav-open {
    left: 0;
}

.nav-menu {
    padding: 2rem;
    list-style: none;
}

.nav-item {
    margin-bottom: 1rem;
}

.nav-link {
    display: block;
    padding: 1.2rem;
    color: var(--light-bg);
    font-size: 1.6rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

/* Main Content */
.main {
    margin-top: 8rem;
    min-height: calc(100vh - 8rem);
}

/* Carousel */
.carousel-section {
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.carousel-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.carousel-slide {
    display: none;
    position: relative;
}

.carousel-slide:first-child {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    cursor: pointer;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem;
    text-align: center;
}

/* Game Grid */
.game-category {
    margin-bottom: 3rem;
}

.category-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 0.1rem solid transparent;
}

.game-card:hover {
    transform: translateY(-0.3rem);
    background: rgba(255, 225, 53, 0.1);
    border-color: var(--primary-gold);
    box-shadow: 0 0.6rem 1.2rem rgba(255, 225, 53, 0.3);
}

.game-card img {
    width: 4rem;
    height: 4rem;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.game-name {
    font-size: 1rem;
    color: var(--light-bg);
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Modules */
.content-module {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 0.1rem solid rgba(255, 225, 53, 0.2);
}

.module-title {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

.module-content {
    line-height: 1.6;
}

.module-content ul {
    list-style: none;
    padding-left: 0;
}

.module-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.module-content li:before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
}

/* Promotional Links and Buttons */
.promo-link, .promo-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-gold), var(--khaki));
    color: var(--dark-bg);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin: 0.5rem;
    text-align: center;
    min-width: 4.4rem;
    min-height: 4.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.promo-link:hover, .promo-btn:hover {
    background: linear-gradient(45deg, var(--secondary-pink), var(--primary-gold));
    transform: translateY(-0.2rem);
    box-shadow: 0 0.6rem 1.2rem rgba(255, 145, 164, 0.4);
}

.promo-text {
    color: var(--primary-gold);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.promo-text:hover {
    color: var(--secondary-pink);
}

/* RTP Analysis */
.rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.rtp-item {
    background: rgba(255, 225, 53, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 0.1rem solid var(--primary-gold);
}

.rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    display: block;
}

.rtp-label {
    font-size: 1.2rem;
    color: var(--light-bg);
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: rgba(26, 26, 46, 0.95);
    padding: 3rem 0 8rem;
    margin-top: 4rem;
    border-top: 0.1rem solid rgba(255, 225, 53, 0.2);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-link {
    padding: 0.8rem 1.6rem;
    background: rgba(255, 225, 53, 0.1);
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-link:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

.partners {
    margin: 2rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 30rem;
    margin: 0 auto;
}

.partner-logo {
    width: 4rem;
    height: 4rem;
    border-radius: 0.4rem;
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.copyright {
    color: var(--khaki);
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(1rem);
    z-index: 999;
    border-top: 0.1rem solid rgba(255, 225, 53, 0.2);
}

.bottom-nav-container {
    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;
    gap: 0.4rem;
    min-width: 4.4rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.bottom-nav-item:hover {
    background: rgba(255, 225, 53, 0.1);
}

.bottom-nav-icon {
    font-size: 2.4rem;
    color: var(--primary-gold);
}

.bottom-nav-label {
    font-size: 1rem;
    color: var(--light-bg);
    text-align: center;
}

/* Responsive Design */
@media (min-width: 48rem) {
    .container {
        max-width: 76.8rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .carousel-slide img {
        height: 25rem;
    }
    
    .rtp-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(10, 1fr);
        max-width: 60rem;
    }
}

@media (min-width: 76.8rem) {
    .container {
        max-width: 120rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .carousel-slide img {
        height: 30rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-loaded {
    opacity: 1;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 0.1rem;
    height: 0.1rem;
    padding: 0;
    margin: -0.1rem;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
button:focus,
a:focus,
input:focus {
    outline: 0.2rem solid var(--primary-gold);
    outline-offset: 0.2rem;
}

/* Error States */
.error {
    border: 0.2rem solid #ff4444 !important;
    background-color: rgba(255, 68, 68, 0.1) !important;
} 