/* JLJL55 PH Website Styles - Mobile First Design */
/* Color Palette: #0D1117 (dark bg) | #FFC0CB (light pink) | #DC143C (crimson) | #8B0000 (dark red) */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px base for rem calculations */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0D1117;
    color: #FFC0CB;
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: 2.4rem;
    color: #DC143C;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    color: #8B0000;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
}

h3 {
    font-size: 1.8rem;
    color: #DC143C;
    font-weight: bold;
    margin: 1.5rem 0 1rem 0;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, #0D1117 0%, #1C2128 100%);
    padding: 1rem;
    z-index: 1000;
    border-bottom: 2px solid #DC143C;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 24px;
    height: 24px;
    margin-right: 0.8rem;
}

.site-name {
    font-size: 1.6rem;
    font-weight: bold;
    color: #DC143C;
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #FFC0CB;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    transform: translateY(-1px);
}

.nav-toggle {
    background: none;
    border: none;
    color: #FFC0CB;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Navigation Menu */
#mobile-nav {
    position: fixed;
    top: 7rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, #0D1117 0%, #1C2128 100%);
    border: 2px solid #DC143C;
    border-radius: 1rem;
    padding: 2rem;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.4);
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-menu a {
    color: #FFC0CB;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    background: rgba(220, 20, 60, 0.2);
    color: #DC143C;
}

/* Main Content */
.main-content {
    margin-top: 8rem;
    padding: 0 1.5rem 10rem 1.5rem;
}

/* Carousel */
.carousel-container {
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.carousel-slide {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.carousel-slide:hover {
    transform: scale(1.02);
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(220, 20, 60, 0.3), rgba(139, 0, 0, 0.3));
}

/* Games Section */
.games-section {
    margin: 3rem 0;
}

.games-category {
    margin-bottom: 3rem;
}

.category-title {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #FFC0CB;
    padding: 1rem;
    border-radius: 0.8rem;
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    background: linear-gradient(135deg, #1C2128 0%, #0D1117 100%);
    border: 1px solid #DC143C;
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
    border-color: #8B0000;
}

.game-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    margin-bottom: 0.8rem;
    object-fit: cover;
}

.game-name {
    font-size: 1rem;
    color: #FFC0CB;
    font-weight: 500;
    line-height: 1.2;
}

/* Content Modules */
.content-module {
    background: linear-gradient(135deg, #1C2128 0%, #0D1117 100%);
    border: 2px solid #DC143C;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.content-module h3 {
    color: #DC143C;
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-module p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Promotional Links and Buttons */
.promo-link {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #FFC0CB;
    text-decoration: none;
    padding: 1.2rem 2rem;
    border-radius: 0.8rem;
    font-weight: bold;
    font-size: 1.4rem;
    display: inline-block;
    margin: 0.5rem;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    text-align: center;
    cursor: pointer;
    border: none;
}

.promo-link:hover {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.promo-text-link {
    color: #DC143C;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.promo-text-link:hover {
    color: #8B0000;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0D1117 0%, #1C2128 100%);
    border-top: 2px solid #DC143C;
    padding: 3rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.footer-links a {
    color: #FFC0CB;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border: 1px solid #DC143C;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    background: rgba(220, 20, 60, 0.2);
    color: #DC143C;
}

.partners-section {
    margin: 2rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.partner-logo {
    width: 100%;
    height: 40px;
    object-fit: contain;
    border-radius: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.copyright {
    color: #8B0000;
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, #0D1117 0%, #1C2128 100%);
    border-top: 2px solid #DC143C;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(220, 20, 60, 0.3);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #FFC0CB;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0.5rem;
}

.bottom-nav-item:hover {
    color: #DC143C;
    transform: translateY(-2px);
}

.bottom-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

/* RTP Analysis Table */
.rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #1C2128;
    border-radius: 0.8rem;
    overflow: hidden;
}

.rtp-table th,
.rtp-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #DC143C;
}

.rtp-table th {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #FFC0CB;
    font-weight: bold;
}

.rtp-table td {
    color: #FFC0CB;
}

/* Responsive Design */
@media (max-width: 375px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 320px) {
    body {
        font-size: 1.3rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-bold {
    font-weight: bold;
}

.margin-bottom {
    margin-bottom: 2rem;
}

.highlight {
    color: #DC143C;
    font-weight: bold;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
} 