/**
 * Table Game PH - Core Stylesheet
 * Website: tablegameph.click
 * Prefix: web63-
 * Colors: #FFF8DC | #F4A460 | #B03060 | #E9967A | #3A3A3A
 * Created: 2025
 */

/* CSS Variables */
:root {
    --web63-primary: #B03060;
    --web63-secondary: #F4A460;
    --web63-accent: #E9967A;
    --web63-bg-dark: #3A3A3A;
    --web63-bg-light: #FFF8DC;
    --web63-text-light: #FFF8DC;
    --web63-text-dark: #3A3A3A;
    --web63-gradient: linear-gradient(135deg, #B03060 0%, #F4A460 100%);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--web63-bg-dark);
    color: var(--web63-text-light);
}

/* Container */
.web63-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.web63-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #3A3A3A 0%, #2a2a2a 100%);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.web63-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.web63-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.web63-logo img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.web63-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--web63-secondary);
}

.web63-nav-buttons {
    display: flex;
    gap: 1rem;
}

.web63-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.web63-btn-primary {
    background: var(--web63-gradient);
    color: var(--web63-text-light);
}

.web63-btn-secondary {
    background: transparent;
    border: 2px solid var(--web63-primary);
    color: var(--web63-primary);
}

.web63-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(176, 48, 96, 0.4);
}

.web63-menu-toggle {
    background: none;
    border: none;
    color: var(--web63-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.web63-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--web63-bg-dark);
    padding: 2rem;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.web63-mobile-menu ul {
    list-style: none;
}

.web63-mobile-menu li {
    margin-bottom: 1.5rem;
}

.web63-mobile-menu a {
    color: var(--web63-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    display: block;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.web63-mobile-menu a:hover {
    background: rgba(244, 164, 96, 0.2);
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 1rem;
}

/* Carousel */
.web63-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.web63-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.web63-slide.web63-active {
    display: block;
}

.web63-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.web63-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.web63-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 248, 220, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.web63-dot.web63-active {
    background: var(--web63-secondary);
}

/* Sections */
.web63-section {
    padding: 2rem 0;
}

.web63-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--web63-secondary);
    text-align: center;
}

/* Game Grid */
.web63-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.web63-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.web63-game-item:hover {
    transform: scale(1.05);
}

.web63-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.web63-game-name {
    font-size: 1.2rem;
    color: var(--web63-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Modules */
.web63-module {
    background: rgba(255, 248, 220, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(244, 164, 96, 0.2);
}

.web63-module-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--web63-secondary);
    margin-bottom: 1rem;
}

.web63-module-content {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--web63-text-light);
}

.web63-module-content p {
    margin-bottom: 1rem;
}

.web63-module-content a {
    color: var(--web63-accent);
    text-decoration: none;
    font-weight: 600;
}

.web63-module-content a:hover {
    text-decoration: underline;
}

/* Promo Link */
.web63-promo-link {
    display: inline-block;
    color: var(--web63-secondary);
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.web63-promo-link:hover {
    color: var(--web63-accent);
    text-decoration: underline;
}

/* Footer */
.web63-footer {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.web63-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.web63-footer-link {
    color: var(--web63-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.web63-footer-link:hover {
    background: rgba(244, 164, 96, 0.2);
}

.web63-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.web63-partner-logo {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.web63-partner-logo:hover {
    opacity: 1;
}

.web63-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 248, 220, 0.6);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 248, 220, 0.1);
}

/* Bottom Navigation */
.web63-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #3A3A3A 0%, #2a2a2a 100%);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.web63-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--web63-text-light);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.web63-nav-item:hover {
    background: rgba(244, 164, 96, 0.2);
}

.web63-nav-item i,
.web63-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 0.2rem;
}

.web63-nav-item span {
    font-size: 1.1rem;
}

.web63-nav-item.active {
    color: var(--web63-secondary);
}

/* Desktop styles */
@media (min-width: 769px) {
    .web63-bottom-nav {
        display: none;
    }

    .web63-menu-toggle {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }
}

/* Mobile padding for bottom nav */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.web63-text-center {
    text-align: center;
}

.web63-mb-2 {
    margin-bottom: 2rem;
}

.web63-mt-2 {
    margin-top: 2rem;
}
