/* Phlwin App - Universal CSS Styles */
/* Mobile-First Responsive Design with Casino Theme */

/* 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, #141414 0%, #34495E 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Color Palette Variables */
:root {
    --primary-dark: #34495E;
    --secondary-dark: #141414;
    --accent-gray: #708090;
    --accent-cyan: #00CED1;
    --light-gray: #F0F0F0;
    --navy-blue: #191970;
    --gold: #FFD700;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

/* Container and Layout */
.container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.content-wrapper {
    padding-top: 7rem;
    padding-bottom: 8rem;
    min-height: 100vh;
}

/* Typography */
h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--light-gray);
    margin-bottom: 1.2rem;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--light-gray);
    line-height: 1.6;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 206, 209, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-section img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.4rem;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-decoration: none;
}

.nav-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.nav-btn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(45deg, var(--accent-cyan), var(--navy-blue));
    color: white;
    border: none;
    border-radius: 0.4rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.4);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 7rem;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 2rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 206, 209, 0.3);
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--light-gray);
    text-decoration: none;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--accent-gray);
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--accent-cyan);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 206, 209, 0.2);
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 20rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 206, 209, 0.3), rgba(25, 25, 112, 0.3));
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--accent-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-cyan);
    transform: scale(1.2);
}

/* Game Grid Styles */
.games-section {
    margin: 3rem 0;
}

.games-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.game-item {
    background: rgba(52, 73, 94, 0.8);
    border-radius: 0.8rem;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: 0 6px 20px rgba(0, 206, 209, 0.3);
}

.game-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.game-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-gray);
    line-height: 1.2;
    text-align: center;
}

/* Content Modules */
.content-module {
    background: rgba(52, 73, 94, 0.6);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 206, 209, 0.2);
}

.module-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    text-align: center;
}

.module-content {
    color: var(--light-gray);
    line-height: 1.6;
}

/* Promotional Links and Buttons */
.promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--accent-cyan), var(--navy-blue));
    color: white;
    border: none;
    border-radius: 0.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0.5rem;
    text-align: center;
    min-height: 4.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 206, 209, 0.4);
}

.promo-link {
    color: var(--accent-cyan);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
}

.promo-link:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Footer Styles */
.footer {
    background: var(--secondary-dark);
    padding: 3rem 0 10rem;
    margin-top: 4rem;
    border-top: 2px solid var(--accent-cyan);
}

.footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.partners-section {
    margin: 2rem 0;
}

.partners-title {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    background: rgba(240, 240, 240, 0.1);
    border-radius: 0.4rem;
    padding: 0.5rem;
}

.copyright {
    text-align: center;
    color: var(--accent-gray);
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-gray);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0, 206, 209, 0.3);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-gray);
    text-decoration: none;
    font-size: 1rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    justify-content: center;
    transition: color 0.3s ease;
    cursor: pointer;
}

.bottom-nav-item:hover {
    color: var(--accent-cyan);
}

.bottom-nav-item i {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none; }
.visible { display: block; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }

/* Responsive Design */
@media (max-width: 375px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-buttons {
        gap: 0.4rem;
    }
    
    .nav-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 431px) {
    .container {
        max-width: 430px;
    }
}

/* Loading Animation */
.loading-spinner {
    border: 4px solid rgba(0, 206, 209, 0.3);
    border-top: 4px solid var(--accent-cyan);
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    background: var(--accent-cyan);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.4);
}

/* FAQ Styles */
.faq-item {
    background: rgba(52, 73, 94, 0.6);
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(0, 206, 209, 0.2);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--accent-cyan);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 206, 209, 0.1);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--light-gray);
    line-height: 1.6;
}

/* Statistics and RTP Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    background: rgba(52, 73, 94, 0.6);
    padding: 1.5rem;
    border-radius: 0.8rem;
    text-align: center;
    border: 1px solid rgba(0, 206, 209, 0.2);
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-cyan);
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-top: 0.5rem;
} 