/* Phlwin App - Main CSS Stylesheet */
/* 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 for easier rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #B2DFDB;
    background: linear-gradient(135deg, #1C2833 0%, #2C3E50 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Color palette variables */
:root {
    --primary-dark: #1C2833;
    --primary-light: #48D1CC;
    --secondary-light: #B2DFDB;
    --accent-dark: #00695C;
    --white: #ffffff;
    --error: #ff4757;
    --success: #2ed573;
    --warning: #ffa502;
    --gradient-primary: linear-gradient(135deg, #48D1CC 0%, #00695C 100%);
    --gradient-secondary: linear-gradient(135deg, #1C2833 0%, #2C3E50 100%);
    --shadow-light: 0 2px 10px rgba(72, 209, 204, 0.1);
    --shadow-medium: 0 4px 20px rgba(72, 209, 204, 0.2);
    --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2.0rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    color: var(--secondary-light);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--white);
    text-shadow: 0 0 5px var(--primary-light);
}

/* Container and layout */
.container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 2rem 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Header navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(28, 40, 51, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--accent-dark);
}

.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.5rem;
}

.logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
}

.site-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-light);
    border: 1px solid var(--primary-light);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Hamburger menu */
.hamburger {
    display: flex;
    flex-direction: column;
    width: 2.4rem;
    height: 2.4rem;
    cursor: pointer;
    padding: 0.4rem;
}

.hamburger span {
    width: 100%;
    height: 0.2rem;
    background: var(--primary-light);
    margin: 0.2rem 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.7rem, -0.6rem);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 7rem;
    left: 0;
    right: 0;
    background: rgba(28, 40, 51, 0.98);
    backdrop-filter: blur(15px);
    padding: 2rem 1rem;
    z-index: 999;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 1rem;
}

.mobile-menu a {
    display: block;
    padding: 1rem;
    background: rgba(72, 209, 204, 0.1);
    border-radius: 0.5rem;
    border: 1px solid var(--accent-dark);
    color: var(--secondary-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateX(0.5rem);
}

/* Main content */
.main-content {
    margin-top: 7rem;
    padding-bottom: 8rem; /* Space for bottom nav */
}

/* Carousel styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-dark);
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem 1rem 1rem;
    color: var(--white);
}

.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(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--primary-light);
    transform: scale(1.2);
}

/* Game sections */
.game-section {
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 5rem;
    height: 2px;
    background: var(--gradient-primary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    background: rgba(72, 209, 204, 0.1);
    border: 1px solid var(--accent-dark);
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(72, 209, 204, 0.2), transparent);
    transition: left 0.5s;
}

.game-item:hover::before {
    left: 100%;
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.game-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.game-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-light);
    line-height: 1.2;
}

/* Content modules */
.content-module {
    background: rgba(0, 105, 92, 0.1);
    border: 1px solid var(--accent-dark);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.content-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 1rem 1rem 0 0;
}

.module-title {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--secondary-light);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* Buttons and CTAs */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.6rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.promo-btn, .promo-link {
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
}

.promo-btn:hover, .promo-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--white);
}

/* Stats and RTP analysis */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    background: rgba(72, 209, 204, 0.1);
    border: 1px solid var(--accent-dark);
    border-radius: 0.8rem;
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--secondary-light);
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    padding: 3rem 0 10rem;
    margin-top: 4rem;
    border-top: 1px solid var(--accent-dark);
}

.footer-content {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-link {
    display: block;
    padding: 0.8rem;
    background: rgba(72, 209, 204, 0.1);
    border-radius: 0.5rem;
    text-align: center;
    color: var(--secondary-light);
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: var(--accent-dark);
    color: var(--white);
}

.partners-section {
    margin: 2rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.partner-logo {
    width: 100%;
    height: 3rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: var(--secondary-light);
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-dark);
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 40, 51, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--accent-dark);
    z-index: 1000;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 43rem;
    margin: 0 auto;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--secondary-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.nav-item:hover {
    color: var(--primary-light);
    background: rgba(72, 209, 204, 0.1);
}

.nav-item i {
    font-size: 2rem;
}

/* Utility classes */
.hidden { display: none !important; }
.visible { display: block !important; }
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error {
    border-color: var(--error) !important;
    background-color: rgba(255, 71, 87, 0.1) !important;
}

.success {
    border-color: var(--success) !important;
    background-color: rgba(46, 213, 115, 0.1) !important;
}

/* Responsive adjustments */
@media (min-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 43rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Loading animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary-light); }
    50% { box-shadow: 0 0 20px var(--primary-light), 0 0 30px var(--primary-light); }
    100% { box-shadow: 0 0 5px var(--primary-light); }
}

.glow {
    animation: glow 2s infinite;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 0.6rem;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 1rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
} 