/* Pinoy Time Gaming Platform - CSS Styles */
/* All classes use prefix "s38b-" for namespace isolation */

/* CSS Variables for consistent theming */
:root {
    --s38b-primary: #FF69B4;
    --s38b-secondary: #DEB887;
    --s38b-accent: #C71585;
    --s38b-light: #C0C0C0;
    --s38b-dark: #1C2833;
    --s38b-white: #FFFFFF;
    --s38b-black: #000000;
    --s38b-gray: #F5F5F5;
    --s38b-text: #333333;
    --s38b-text-light: #666666;
    --s38b-border: #E0E0E0;
    --s38b-shadow: rgba(0, 0, 0, 0.1);
    --s38b-gradient: linear-gradient(135deg, #FF69B4 0%, #C71585 100%);
}

/* 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: var(--s38b-text);
    background-color: var(--s38b-dark);
    overflow-x: hidden;
}

/* Container and layout */
.s38b-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s38b-wrapper {
    min-height: 100vh;
    padding-bottom: 8rem; /* Space for bottom nav */
}

.s38b-grid {
    display: grid;
    gap: 1.5rem;
}

.s38b-flex {
    display: flex;
    align-items: center;
}

.s38b-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s38b-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header and navigation */
.s38b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--s38b-gradient);
    box-shadow: 0 2px 10px var(--s38b-shadow);
    padding: 1rem 0;
}

.s38b-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.s38b-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--s38b-white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.6rem;
}

.s38b-logo img {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
}

.s38b-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.s38b-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem; /* Touch-friendly minimum */
    min-width: 6rem;
}

.s38b-btn-primary {
    background: var(--s38b-white);
    color: var(--s38b-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.s38b-btn-primary:hover {
    background: var(--s38b-gray);
    transform: translateY(-2px);
}

.s38b-btn-secondary {
    background: transparent;
    color: var(--s38b-white);
    border: 2px solid var(--s38b-white);
}

.s38b-btn-secondary:hover {
    background: var(--s38b-white);
    color: var(--s38b-primary);
}

.s38b-menu-toggle {
    background: none;
    border: none;
    color: var(--s38b-white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.3rem;
    transition: background 0.3s ease;
}

.s38b-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile menu */
.s38b-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--s38b-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.s38b-mobile-menu.active {
    right: 0;
}

.s38b-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.s38b-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.s38b-menu-header {
    background: var(--s38b-gradient);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s38b-menu-close {
    background: none;
    border: none;
    color: var(--s38b-white);
    font-size: 2.4rem;
    cursor: pointer;
}

.s38b-menu-nav {
    padding: 1.5rem;
}

.s38b-menu-nav ul {
    list-style: none;
}

.s38b-menu-nav li {
    margin-bottom: 0.5rem;
}

.s38b-menu-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--s38b-white);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.s38b-menu-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main content */
.s38b-main {
    margin-top: 7rem; /* Space for fixed header */
    min-height: calc(100vh - 7rem);
}

.s38b-section {
    padding: 2rem 0;
}

.s38b-section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--s38b-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Carousel */
.s38b-carousel {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--s38b-shadow);
}

.s38b-carousel-container {
    position: relative;
    height: 20rem;
}

.s38b-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.s38b-carousel-slide.active {
    opacity: 1;
}

.s38b-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s38b-carousel-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.s38b-carousel-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.s38b-carousel-dot.active {
    background: var(--s38b-white);
}

.s38b-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--s38b-white);
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.s38b-carousel-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.s38b-carousel-prev {
    left: 1rem;
}

.s38b-carousel-next {
    right: 1rem;
}

/* Game grid */
.s38b-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.s38b-game-card {
    background: var(--s38b-white);
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--s38b-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.s38b-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--s38b-shadow);
}

.s38b-game-image {
    width: 100%;
    height: 8rem;
    object-fit: cover;
}

.s38b-game-title {
    padding: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: var(--s38b-text);
    background: var(--s38b-white);
}

/* Cards and content blocks */
.s38b-card {
    background: var(--s38b-white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 15px var(--s38b-shadow);
}

.s38b-card-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--s38b-primary);
    margin-bottom: 1rem;
}

.s38b-card-text {
    color: var(--s38b-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.s38b-card-list {
    list-style: none;
}

.s38b-card-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--s38b-border);
}

.s38b-card-list li:last-child {
    border-bottom: none;
}

/* Links and buttons */
.s38b-link {
    color: var(--s38b-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.s38b-link:hover {
    color: var(--s38b-accent);
    text-decoration: underline;
}

.s38b-btn-block {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

/* Partners section */
.s38b-partners {
    background: var(--s38b-white);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.s38b-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
    gap: 1rem;
    align-items: center;
}

.s38b-partner-logo {
    width: 100%;
    max-width: 8rem;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.s38b-partner-logo:hover {
    opacity: 1;
}

/* Footer */
.s38b-footer {
    background: var(--s38b-dark);
    color: var(--s38b-white);
    padding: 2rem 0;
    text-align: center;
}

.s38b-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.s38b-footer-links a {
    color: var(--s38b-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.s38b-footer-links a:hover {
    color: var(--s38b-primary);
}

.s38b-footer-text {
    font-size: 1.1rem;
    color: var(--s38b-light);
    margin-top: 1rem;
}

/* Bottom navigation */
.s38b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--s38b-dark);
    border-top: 1px solid var(--s38b-border);
    z-index: 1000;
    padding: 0.5rem 0;
}

.s38b-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.s38b-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5.6rem;
    padding: 0.5rem;
    color: var(--s38b-light);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.s38b-bottom-nav-item:hover,
.s38b-bottom-nav-item.active {
    color: var(--s38b-primary);
    background: rgba(255, 105, 180, 0.1);
    transform: translateY(-2px);
}

.s38b-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

.s38b-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .s38b-bottom-nav {
        display: block;
    }

    .s38b-wrapper {
        padding-bottom: 8rem;
    }
}

@media (min-width: 769px) {
    .s38b-bottom-nav {
        display: none;
    }

    .s38b-wrapper {
        padding-bottom: 0;
    }
}

/* Utility classes */
.s38b-text-center {
    text-align: center;
}

.s38b-text-primary {
    color: var(--s38b-primary);
}

.s38b-text-secondary {
    color: var(--s38b-secondary);
}

.s38b-bg-primary {
    background: var(--s38b-primary);
}

.s38b-bg-gradient {
    background: var(--s38b-gradient);
}

.s38b-mb-1 {
    margin-bottom: 1rem;
}

.s38b-mb-2 {
    margin-bottom: 2rem;
}

.s38b-mt-1 {
    margin-top: 1rem;
}

.s38b-mt-2 {
    margin-top: 2rem;
}

/* Animation keyframes */
@keyframes s38b-fadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes s38b-slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.s38b-fade-in {
    animation: s38b-fadeIn 0.5s ease-out;
}

.s38b-slide-in {
    animation: s38b-slideIn 0.3s ease-out;
}