/**
 * PH Jili Website Stylesheet
 * Prefix: sa7c-
 * Color Palette: #48D1CC | #00B8D4 | #CC99FF | #2C2C2C | #B2DFDB | #A9A9A9
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --sa7c-primary: #48D1CC;
    --sa7c-secondary: #00B8D4;
    --sa7c-accent: #CC99FF;
    --sa7c-bg-dark: #2C2C2C;
    --sa7c-bg-light: #B2DFDB;
    --sa7c-text-muted: #A9A9A9;
    --sa7c-text-light: #FFFFFF;
    --sa7c-gradient: linear-gradient(135deg, #48D1CC 0%, #00B8D4 50%, #CC99FF 100%);
    --sa7c-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --sa7c-radius: 12px;
    --sa7c-radius-sm: 8px;
}

/* Base Styles */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--sa7c-bg-dark);
    color: var(--sa7c-text-light);
    line-height: 1.5rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2.0rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }
p { font-size: 1.4rem; margin-bottom: 1rem; }

a {
    color: var(--sa7c-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sa7c-secondary);
}

/* Container */
.sa7c-container {
    width: 100%;
    padding: 0 1.5rem;
    margin: 0 auto;
}

.sa7c-wrapper {
    padding: 2rem 0;
}

/* Header */
.sa7c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--sa7c-bg-dark) 0%, rgba(44, 44, 44, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1rem;
    max-width: 430px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(72, 209, 204, 0.2);
}

.sa7c-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sa7c-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sa7c-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.sa7c-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--sa7c-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sa7c-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sa7c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: var(--sa7c-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sa7c-btn-primary {
    background: var(--sa7c-gradient);
    color: var(--sa7c-text-light);
}

.sa7c-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--sa7c-shadow);
}

.sa7c-btn-outline {
    background: transparent;
    border: 2px solid var(--sa7c-primary);
    color: var(--sa7c-primary);
}

.sa7c-btn-outline:hover {
    background: var(--sa7c-primary);
    color: var(--sa7c-bg-dark);
}

.sa7c-menu-btn {
    background: transparent;
    border: none;
    color: var(--sa7c-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.sa7c-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--sa7c-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 1px solid rgba(72, 209, 204, 0.2);
}

.sa7c-menu-active {
    right: 0;
}

.sa7c-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sa7c-overlay-active {
    opacity: 1;
    visibility: visible;
}

.sa7c-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(72, 209, 204, 0.2);
}

.sa7c-menu-close {
    background: transparent;
    border: none;
    color: var(--sa7c-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.sa7c-menu-nav {
    list-style: none;
}

.sa7c-menu-nav li {
    margin-bottom: 1.5rem;
}

.sa7c-menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--sa7c-text-light);
    font-size: 1.5rem;
    padding: 0.8rem;
    border-radius: var(--sa7c-radius-sm);
    transition: all 0.3s ease;
}

.sa7c-menu-nav a:hover {
    background: rgba(72, 209, 204, 0.1);
    color: var(--sa7c-primary);
}

.sa7c-menu-nav i {
    width: 24px;
    text-align: center;
}

/* Carousel */
.sa7c-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--sa7c-radius);
    margin-top: 60px;
}

.sa7c-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.sa7c-slide {
    min-width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.sa7c-slide-active {
    opacity: 1;
    position: relative;
}

.sa7c-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.sa7c-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.sa7c-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sa7c-dot-active {
    background: var(--sa7c-primary);
    width: 24px;
    border-radius: 5px;
}

/* Game Section */
.sa7c-section {
    padding: 2rem 0;
}

.sa7c-section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sa7c-section-title i {
    color: var(--sa7c-accent);
}

.sa7c-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.sa7c-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sa7c-game-item:hover {
    transform: translateY(-5px);
}

.sa7c-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--sa7c-radius-sm);
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.sa7c-game-item:hover .sa7c-game-img {
    border-color: var(--sa7c-primary);
}

.sa7c-game-name {
    font-size: 1.1rem;
    color: var(--sa7c-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Sections */
.sa7c-content-box {
    background: rgba(72, 209, 204, 0.1);
    border-radius: var(--sa7c-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--sa7c-primary);
}

.sa7c-content-box h3 {
    color: var(--sa7c-primary);
    margin-bottom: 1rem;
}

.sa7c-content-box ul {
    list-style: none;
    padding-left: 0;
}

.sa7c-content-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.sa7c-content-box li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--sa7c-accent);
}

/* FAQ Section */
.sa7c-faq-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--sa7c-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.sa7c-faq-question {
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sa7c-faq-answer {
    padding: 0 1.5rem 1rem;
    color: var(--sa7c-text-muted);
    font-size: 1.3rem;
}

/* Bottom Navigation */
.sa7c-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(44, 44, 44, 0.98) 0%, var(--sa7c-bg-dark) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(72, 209, 204, 0.2);
    max-width: 430px;
    margin: 0 auto;
}

.sa7c-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;
    color: var(--sa7c-text-muted);
}

.sa7c-nav-item:hover,
.sa7c-nav-item.active {
    color: var(--sa7c-primary);
    transform: scale(1.1);
}

.sa7c-nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.sa7c-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Footer */
.sa7c-footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem 1rem;
    margin-bottom: 64px;
}

.sa7c-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.sa7c-footer-link {
    font-size: 1.2rem;
    color: var(--sa7c-text-muted);
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.sa7c-footer-link:hover {
    color: var(--sa7c-primary);
}

.sa7c-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.sa7c-partner-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sa7c-partner-img:hover {
    opacity: 1;
}

.sa7c-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--sa7c-text-muted);
}

/* Promo Link Styles */
.sa7c-promo-text {
    color: var(--sa7c-primary);
    font-weight: 600;
    cursor: pointer;
}

.sa7c-promo-text:hover {
    color: var(--sa7c-secondary);
    text-decoration: underline;
}

.sa7c-promo-btn {
    display: inline-block;
    background: var(--sa7c-gradient);
    color: var(--sa7c-text-light);
    padding: 1rem 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: var(--sa7c-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.sa7c-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(72, 209, 204, 0.5);
}

/* Responsive */
@media (min-width: 769px) {
    .sa7c-bottom-nav {
        display: none;
    }

    .sa7c-footer {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Main Content */
main {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* Utility Classes */
.sa7c-text-center { text-align: center; }
.sa7c-text-gradient {
    background: var(--sa7c-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sa7c-mb-1 { margin-bottom: 1rem; }
.sa7c-mb-2 { margin-bottom: 2rem; }
.sa7c-mt-1 { margin-top: 1rem; }
.sa7c-mt-2 { margin-top: 2rem; }

/* Animations */
@keyframes sa7c-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sa7c-animate-pulse {
    animation: sa7c-pulse 2s infinite;
}
