/* Nustar PH CSS Stylesheet */
/* All classes use s028- prefix for namespace isolation */

/* CSS Variables */
:root {
    --s028-primary: #40E0D0;
    --s028-secondary: #9AFF9A;
    --s028-accent: #AFEEEE;
    --s028-light: #FFFACD;
    --s028-gray: #E5E5E5;
    --s028-dark: #333333;
    --s028-success: #28a745;
    --s028-warning: #ffc107;
    --s028-error: #dc3545;
    --s028-border-radius: 8px;
    --s028-transition: all 0.3s ease;
    --s028-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --s028-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--s028-dark);
    background-color: var(--s028-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and Layout */
.s028-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.s028-wrapper {
    min-height: 100vh;
    padding-bottom: 80px;
}

.s028-section {
    padding: 20px 0;
    margin-bottom: 20px;
}

/* Header Styles */
.s028-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--s028-primary), var(--s028-secondary));
    box-shadow: var(--s028-shadow);
    z-index: 1000;
}

.s028-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    height: 60px;
}

.s028-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.s028-logo img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 4px;
}

.s028-header-buttons {
    display: flex;
    gap: 10px;
}

.s028-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--s028-border-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--s028-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.s028-btn-primary {
    background: var(--s028-light);
    color: var(--s028-dark);
}

.s028-btn-primary:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: var(--s028-shadow-hover);
}

.s028-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.s028-btn-secondary:hover {
    background: white;
    color: var(--s028-primary);
}

.s028-menu-button {
    background: transparent;
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 5px;
    display: none;
}

/* Mobile Menu */
.s028-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--s028-shadow);
    z-index: 9999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: var(--s028-transition);
}

.s028-mobile-menu.s028-menu-open {
    opacity: 1;
    transform: translateY(0);
}

.s028-mobile-menu-content {
    padding: 20px;
}

.s028-menu-link {
    display: block;
    padding: 15px 20px;
    color: var(--s028-dark);
    text-decoration: none;
    font-size: 1.6rem;
    border-bottom: 1px solid #eee;
    transition: var(--s028-transition);
}

.s028-menu-link:hover {
    background: var(--s028-gray);
    color: var(--s028-primary);
}

/* Main Content */
.s028-main {
    margin-top: 60px;
    padding: 20px 0;
}

/* Carousel Styles */
.s028-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--s028-border-radius);
    margin-bottom: 30px;
    box-shadow: var(--s028-shadow);
}

.s028-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.s028-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s028-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.s028-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--s028-transition);
}

.s028-carousel-indicator.s028-active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

/* Game Styles */
.s028-game-section {
    margin-bottom: 30px;
}

.s028-section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--s028-dark);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.s028-section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--s028-primary), var(--s028-secondary));
    border-radius: 2px;
}

.s028-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.s028-game-item {
    background: white;
    border-radius: var(--s028-border-radius);
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--s028-transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--s028-dark);
}

.s028-game-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--s028-shadow-hover);
}

.s028-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 5px;
}

.s028-game-name {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Styles */
.s028-card {
    background: white;
    border-radius: var(--s028-border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--s028-shadow);
    transition: var(--s028-transition);
}

.s028-card:hover {
    box-shadow: var(--s028-shadow-hover);
}

.s028-card-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--s028-dark);
    margin-bottom: 10px;
}

.s028-card-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #666;
}

/* Feature Styles */
.s028-feature-list {
    list-style: none;
    margin: 15px 0;
}

.s028-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.s028-feature-icon {
    color: var(--s028-primary);
    margin-right: 10px;
    font-size: 1.6rem;
}

/* Promotion Styles */
.s028-promo-box {
    background: linear-gradient(135deg, var(--s028-primary), var(--s028-secondary));
    color: white;
    padding: 20px;
    border-radius: var(--s028-border-radius);
    text-align: center;
    margin-bottom: 20px;
}

.s028-promo-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.s028-promo-description {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.s028-promo-btn {
    background: white;
    color: var(--s028-primary);
    padding: 12px 24px;
    border: none;
    border-radius: var(--s028-border-radius);
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--s028-transition);
}

.s028-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--s028-shadow-hover);
}

/* Footer Styles */
.s028-footer {
    background: var(--s028-dark);
    color: white;
    padding: 30px 0 20px;
    margin-top: 40px;
}

.s028-footer-content {
    text-align: center;
    margin-bottom: 20px;
}

.s028-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.s028-footer-link {
    color: var(--s028-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--s028-transition);
}

.s028-footer-link:hover {
    color: var(--s028-primary);
}

.s028-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.s028-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--s028-transition);
}

.s028-partner-logo:hover {
    opacity: 1;
}

.s028-copyright {
    font-size: 1.2rem;
    color: #999;
    text-align: center;
}

/* Mobile Bottom Navigation */
.s028-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--s028-primary), var(--s028-secondary));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.s028-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding: 0 10px;
}

.s028-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--s028-transition);
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 5px;
    border-radius: var(--s028-border-radius);
}

.s028-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.s028-nav-item.s028-nav-active {
    background: rgba(255, 255, 255, 0.2);
}

.s028-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
}

.s028-nav-text {
    font-size: 1rem;
    line-height: 1;
}

/* Notification Styles */
.s028-notification {
    position: fixed;
    top: 80px;
    right: 15px;
    background: var(--s028-success);
    color: white;
    padding: 12px 20px;
    border-radius: var(--s028-border-radius);
    box-shadow: var(--s028-shadow);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: var(--s028-transition);
    font-size: 1.4rem;
}

.s028-notification.s028-notification-show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (min-width: 769px) {
    .s028-bottom-nav {
        display: none !important;
    }

    .s028-menu-button {
        display: block;
    }

    .s028-wrapper {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .s028-bottom-nav {
        display: block;
    }

    .s028-wrapper {
        padding-bottom: 80px;
    }

    .s028-header-buttons {
        display: none;
    }

    .s028-menu-button {
        display: block;
    }

    .s028-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .s028-section-title {
        font-size: 2rem;
    }

    .s028-card {
        padding: 15px;
    }

    .s028-promo-box {
        padding: 15px;
    }
}

/* Loading States */
.s028-loading {
    opacity: 0.6;
    pointer-events: none;
}

.s028-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--s028-primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: s028-spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes s028-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.s028-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.s028-focus-visible:focus {
    outline: 2px solid var(--s028-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .s028-header,
    .s028-bottom-nav,
    .s028-carousel {
        display: none;
    }

    .s028-main {
        margin-top: 0;
    }

    body {
        background: white;
        color: black;
    }
}