/* CSS Reset and Base Styles for 987ph Casino Website */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px base font size */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0D1117;
    color: #A0522D;
    line-height: 1.5;
    font-size: 1.4rem;
    overflow-x: hidden;
}

/* Container and Layout */
.container {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-wrapper {
    min-height: 100vh;
    padding-bottom: 8rem; /* Space for bottom navigation */
}

/* Typography */
h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #A0522D;
    text-align: center;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #A0522D;
}

h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #A0522D;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0D1117 0%, #1a1f2e 100%);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(160, 82, 45, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #A0522D;
}

.logo-section img {
    width: 3.2rem;
    height: 3.2rem;
    margin-right: 0.8rem;
}

.site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #A0522D;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.8rem;
}

.btn-register, .btn-login {
    padding: 0.6rem 1.2rem;
    border: 1px solid #A0522D;
    background: transparent;
    color: #A0522D;
    text-decoration: none;
    border-radius: 0.4rem;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-register:hover, .btn-login:hover {
    background: #A0522D;
    color: #0D1117;
}

.mobile-nav-toggle {
    background: none;
    border: none;
    color: #A0522D;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.4rem;
}

.mobile-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0D1117;
    border-top: 1px solid #A0522D;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(160, 82, 45, 0.2);
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem 2rem;
    color: #A0522D;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.mobile-nav-menu a:hover {
    background: rgba(160, 82, 45, 0.1);
}

/* Main Content Area */
.main-content {
    margin-top: 8rem; /* Account for fixed header */
    padding: 2rem 0;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 1rem;
    height: 20rem;
}

.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;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-indicator.active {
    background: #A0522D;
}

/* Game Grid Styles */
.game-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #A0522D;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 0.8rem;
    padding: 0.8rem;
    background: rgba(160, 82, 45, 0.1);
}

.game-item:hover {
    transform: translateY(-0.3rem);
    background: rgba(160, 82, 45, 0.2);
}

.game-item img {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 0.6rem;
    margin-bottom: 0.6rem;
    object-fit: cover;
}

.game-item span {
    font-size: 1rem;
    font-weight: 500;
    color: #A0522D;
    line-height: 1.2;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

/* Content Modules */
.content-module {
    background: rgba(160, 82, 45, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(160, 82, 45, 0.2);
}

.module-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #A0522D;
}

.module-content {
    line-height: 1.6;
}

/* Promotional Links */
.promo-link {
    display: inline-block;
    background: linear-gradient(135deg, #A0522D 0%, #d2691e 100%);
    color: #0D1117;
    padding: 1rem 2rem;
    border-radius: 0.6rem;
    text-decoration: none;
    font-weight: 600;
    margin: 0.5rem 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    text-align: center;
    min-width: 12rem;
}

.promo-link:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 4px 15px rgba(160, 82, 45, 0.3);
}

.promo-text {
    color: #A0522D;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    margin: 0 0.5rem;
}

/* Footer Styles */
.footer {
    background: #0D1117;
    border-top: 1px solid rgba(160, 82, 45, 0.3);
    padding: 3rem 0 10rem;
    margin-top: 4rem;
}

.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: #A0522D;
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid rgba(160, 82, 45, 0.3);
    border-radius: 0.4rem;
    transition: background 0.3s ease;
}

.footer-links a:hover {
    background: rgba(160, 82, 45, 0.1);
}

.partners-section {
    text-align: center;
    margin-bottom: 2rem;
}

.partners-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #A0522D;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.partner-logo {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: rgba(160, 82, 45, 0.7);
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0D1117 0%, #1a1f2e 100%);
    border-top: 1px solid rgba(160, 82, 45, 0.3);
    z-index: 1000;
    padding: 1rem 0;
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #A0522D;
    transition: color 0.3s ease;
    min-height: 4.4rem;
    padding: 0.5rem;
}

.nav-item:hover {
    color: #d2691e;
}

.nav-item i {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* RTP Analysis Table */
.rtp-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(160, 82, 45, 0.1);
    border-radius: 0.8rem;
    overflow: hidden;
    margin: 1rem 0;
}

.rtp-table th,
.rtp-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(160, 82, 45, 0.2);
}

.rtp-table th {
    background: rgba(160, 82, 45, 0.2);
    font-weight: 600;
    color: #A0522D;
}

.rtp-table td {
    color: #A0522D;
}

/* Loading Animation */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 4rem;
    height: 4rem;
    border: 0.3rem solid rgba(160, 82, 45, 0.3);
    border-top: 0.3rem solid #A0522D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 360px) {
    html {
        font-size: 58%;
    }
    
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .header-content {
        padding: 0 0.5rem;
    }
}

@media (min-width: 431px) {
    .container,
    .header-content,
    .footer-content,
    .bottom-nav-content {
        max-width: 430px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-bold { font-weight: 600; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }
.visible { display: block; } 