/**
 * ph jljl13 Website Styles
 * Mobile-first responsive design
 * Prefix: s22a-
 * Colors: #FF7F50 (Coral) | #E9ECEF (Light Gray) | #34495E (Dark Blue) | #FFD700 (Gold)
 */

/* CSS Variables */
:root {
    --s22a-primary: #FF7F50;
    --s22a-secondary: #FFD700;
    --s22a-bg-dark: #34495E;
    --s22a-bg-light: #E9ECEF;
    --s22a-text-dark: #34495E;
    --s22a-text-light: #E9ECEF;
    --s22a-gradient: linear-gradient(135deg, #FF7F50 0%, #FFD700 100%);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--s22a-bg-dark);
    color: var(--s22a-text-light);
    line-height: 1.6;
    font-size: 1.6rem;
}

a {
    color: var(--s22a-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--s22a-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.s22a-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.s22a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--s22a-bg-dark);
    border-bottom: 2px solid var(--s22a-primary);
    padding: 1rem 0;
}

.s22a-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s22a-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.s22a-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.5rem;
}

.s22a-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--s22a-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s22a-header-actions {
    display: flex;
    gap: 1rem;
}

.s22a-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s22a-btn-primary {
    background: var(--s22a-gradient);
    color: var(--s22a-text-dark);
}

.s22a-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.4);
}

.s22a-btn-secondary {
    background: transparent;
    color: var(--s22a-secondary);
    border: 2px solid var(--s22a-secondary);
}

.s22a-btn-secondary:hover {
    background: var(--s22a-secondary);
    color: var(--s22a-text-dark);
}

/* Menu Toggle */
.s22a-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--s22a-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Desktop Navigation */
.s22a-nav {
    display: none;
}

/* Mobile Menu */
.s22a-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--s22a-bg-dark);
    z-index: 9999;
    transition: left 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
    border-right: 2px solid var(--s22a-primary);
}

.app22a-menu-active {
    left: 0;
}

.s22a-mobile-menu ul {
    list-style: none;
    margin-top: 3rem;
}

.s22a-mobile-menu li {
    margin-bottom: 1.5rem;
}

.s22a-mobile-menu a {
    display: block;
    color: var(--s22a-text-light);
    font-size: 1.6rem;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.s22a-mobile-menu a:hover {
    background: var(--s22a-primary);
    color: var(--s22a-text-dark);
}

/* Menu Overlay */
.s22a-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.app22a-overlay-active {
    display: block;
}

/* Main Content */
main {
    padding-top: 7rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 8rem;
    }
}

/* Carousel */
.s22a-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.s22a-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.app22a-slide-active {
    opacity: 1;
}

.s22a-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
.s22a-section {
    margin-bottom: 3rem;
}

.s22a-section-title {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    background: var(--s22a-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.s22a-section-content {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--s22a-text-light);
}

/* Game Grid */
.s22a-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.s22a-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s22a-game-item:hover {
    transform: translateY(-5px);
}

.s22a-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.8rem;
    border: 2px solid var(--s22a-primary);
    margin-bottom: 0.5rem;
}

.s22a-game-name {
    font-size: 1.2rem;
    color: var(--s22a-text-light);
    word-wrap: break-word;
}

/* Category Section */
.s22a-category-title {
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--s22a-secondary);
    font-weight: 600;
    padding-left: 1rem;
    border-left: 4px solid var(--s22a-primary);
}

/* Footer */
.s22a-footer {
    background: var(--s22a-bg-dark);
    border-top: 2px solid var(--s22a-primary);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.s22a-footer-content {
    text-align: center;
}

.s22a-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s22a-footer-links a {
    color: var(--s22a-text-light);
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    transition: all 0.3s ease;
}

.s22a-footer-links a:hover {
    background: var(--s22a-primary);
    color: var(--s22a-text-dark);
}

.s22a-partners {
    margin-bottom: 2rem;
}

.s22a-partners-title {
    font-size: 1.6rem;
    color: var(--s22a-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.s22a-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.s22a-partner-logo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.s22a-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.s22a-copyright {
    color: var(--s22a-text-light);
    font-size: 1.4rem;
    margin-top: 1.5rem;
}

/* Bottom Navigation - Mobile Only */
.s22a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--s22a-bg-dark);
    border-top: 2px solid var(--s22a-primary);
    padding: 0.5rem 0;
    display: none;
}

.s22a-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    height: 60px;
}

.s22a-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.s22a-bottom-nav-item:hover {
    background: rgba(255, 127, 80, 0.1);
    transform: scale(1.05);
}

.s22a-bottom-nav-item i,
.s22a-bottom-nav-item .material-icons {
    font-size: 24px;
    color: var(--s22a-text-light);
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.s22a-bottom-nav-item:hover i,
.s22a-bottom-nav-item:hover .material-icons {
    color: var(--s22a-primary);
}

.s22a-bottom-nav-item span {
    font-size: 1rem;
    color: var(--s22a-text-light);
    transition: color 0.3s ease;
}

.s22a-bottom-nav-item:hover span {
    color: var(--s22a-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .s22a-menu-toggle {
        display: block;
    }

    .s22a-bottom-nav {
        display: block;
    }

    .s22a-header-actions {
        display: none;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .s22a-container {
        max-width: 1200px;
    }

    .s22a-header-content {
        max-width: 1200px;
    }

    .s22a-nav {
        display: flex;
        gap: 2rem;
    }

    .s22a-nav a {
        color: var(--s22a-text-light);
        font-size: 1.5rem;
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }

    .s22a-nav a:hover {
        background: var(--s22a-primary);
        color: var(--s22a-text-dark);
    }

    .s22a-carousel {
        height: 400px;
    }

    .s22a-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .s22a-bottom-nav {
        display: none;
    }
}

/* Utility Classes */
.s22a-text-center {
    text-align: center;
}

.s22a-mb-1 {
    margin-bottom: 1rem;
}

.s22a-mb-2 {
    margin-bottom: 2rem;
}

.s22a-mb-3 {
    margin-bottom: 3rem;
}

.s22a-pb-2 {
    padding-bottom: 2rem;
}
