/* Universal CSS for ph987.io - Mobile-First Design */
/* Base font size 62.5% for rem calculations */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

/* CSS Variables for color palette */
:root {
    --primary-dark: #3A3A3A;
    --primary-orange: #FF8000;
    --secondary-orange: #FF9500;
    --accent-teal: #4DB6AC;
    --accent-red: #FF5722;
    --text-light: #FFFFFF;
    --text-dark: #2C2C2C;
    --bg-light: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.25);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2A2A2A 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container and layout */
.container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 2rem 0;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-orange);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(58, 58, 58, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--primary-orange);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-light);
}

.logo {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.8rem;
}

.site-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-btn {
    padding: 0.8rem 1.6rem;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    color: var(--text-light);
    border: none;
    border-radius: 2.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;
    line-height: 1;
    display: flex;
    align-items: center;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 4.4rem;
    min-width: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile navigation */
.mobile-menu {
    position: fixed;
    top: 7rem;
    left: 0;
    width: 100%;
    background: rgba(58, 58, 58, 0.98);
    backdrop-filter: blur(15px);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-list {
    list-style: none;
    padding: 2rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.mobile-menu-item {
    margin-bottom: 1rem;
}

.mobile-menu-link {
    display: block;
    padding: 1.2rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-menu-link:hover {
    background: var(--primary-orange);
    color: var(--text-light);
}

/* Main content */
.main {
    margin-top: 7rem;
    padding-bottom: 8rem;
}

/* Carousel styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    cursor: pointer;
}

.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: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--primary-orange);
    transform: scale(1.2);
}

/* Game grid styles */
.games-section {
    margin: 3rem 0;
}

.games-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2rem;
    color: var(--accent-teal);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-teal);
    padding-bottom: 0.5rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.game-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 4.4rem;
}

.game-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-orange);
    background: rgba(255, 128, 0, 0.1);
}

.game-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
    object-fit: cover;
}

.game-name {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.2;
    word-wrap: break-word;
}

/* Content modules */
.content-module {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.2rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.module-title {
    font-size: 2rem;
    color: var(--secondary-orange);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.module-content {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.module-content p {
    margin-bottom: 1rem;
}

/* Promotional links */
.promo-link {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-red), #FF7043);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 2.4rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    cursor: pointer;
    min-height: 4.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.promo-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.promo-link.primary {
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
}

.promo-link.secondary {
    background: linear-gradient(45deg, var(--accent-teal), #26A69A);
}

/* Footer styles */
.footer {
    background: rgba(42, 42, 42, 0.95);
    border-top: 2px solid var(--primary-orange);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 0.6rem;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.2rem;
}

.footer-link:hover {
    background: var(--primary-orange);
    color: var(--text-light);
}

.partners-section {
    margin: 2rem 0;
}

.partners-title {
    font-size: 1.6rem;
    color: var(--accent-teal);
    text-align: center;
    margin-bottom: 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    filter: grayscale(70%);
    transition: all 0.3s ease;
    border-radius: 0.4rem;
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(58, 58, 58, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--primary-orange);
    z-index: 1000;
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.8rem;
    min-height: 4.4rem;
    min-width: 4.4rem;
    justify-content: center;
}

.bottom-nav-item:hover {
    background: rgba(255, 128, 0, 0.2);
    color: var(--primary-orange);
}

.bottom-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

/* RTP Analysis Table */
.rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
}

.rtp-table th,
.rtp-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rtp-table th {
    background: var(--primary-orange);
    color: var(--text-light);
    font-weight: 600;
}

.rtp-table td {
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ Styles */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--secondary-orange);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 149, 0, 0.1);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Utility classes */
.text-center { text-align: center; }
.text-bold { font-weight: 700; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }

/* Responsive design for larger screens */
@media (min-width: 430px) {
    .container {
        max-width: 430px;
    }
    
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.promo-link:focus,
.auth-btn:focus,
.game-item:focus {
    outline: 3px solid var(--accent-teal);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .bottom-nav,
    .carousel-container {
        display: none;
    }
    
    .main {
        margin-top: 0;
        padding-bottom: 0;
    }
} 