/**
 * Nustar PH - Design Stylesheet
 * All classes use the prefix: sfd5-
 * Mobile-first responsive design (max-width: 430px)
 * Color scheme: #C0C0C0 | #1A1A2E | #E91E63 | #FF69B4 | #BAE1FF | #BBBBBB
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1A1A2E;
    color: #C0C0C0;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== CONTAINER & LAYOUT ===== */
.sfd5-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
}

.sfd5-section {
    padding: 30px 0;
}

.sfd5-wrapper {
    width: 100%;
    overflow: hidden;
}

/* ===== HEADER & NAVIGATION ===== */
.sfd5-header {
    background: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 100%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.2);
}

.sfd5-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
}

.sfd5-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: bold;
    color: #E91E63;
}

.sfd5-logo img {
    width: 32px;
    height: 32px;
}

.sfd5-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sfd5-hamburger {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 10001;
    cursor: pointer;
}

.sfd5-hamburger span {
    width: 24px;
    height: 3px;
    background-color: #E91E63;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.sfd5-hamburger.sfd5-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sfd5-hamburger.sfd5-active span:nth-child(2) {
    opacity: 0;
}

.sfd5-hamburger.sfd5-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.sfd5-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #1A1A2E 0%, #0F0F1E 100%);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-top: 70px;
}

.sfd5-mobile-menu.sfd5-menu-open {
    transform: translateX(0);
}

.sfd5-menu-list {
    list-style: none;
    padding: 20px;
}

.sfd5-menu-item {
    margin-bottom: 15px;
}

.sfd5-menu-link {
    display: block;
    padding: 12px 15px;
    color: #BAE1FF;
    font-size: 1.1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sfd5-menu-link:hover {
    color: #E91E63;
    border-left-color: #E91E63;
    background: rgba(233, 30, 99, 0.1);
}

/* ===== BUTTONS ===== */
.sfd5-btn {
    display: inline-block;
    padding: 12px 24px;
    min-width: 120px;
    min-height: 44px;
    text-align: center;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sfd5-btn-primary {
    background: linear-gradient(135deg, #E91E63 0%, #FF69B4 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.sfd5-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6);
}

.sfd5-btn-secondary {
    background: linear-gradient(135deg, #BAE1FF 0%, #A0D1EF 100%);
    color: #1A1A2E;
    box-shadow: 0 4px 15px rgba(186, 225, 255, 0.3);
}

.sfd5-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 225, 255, 0.5);
}

.sfd5-btn-outline {
    background: transparent;
    border: 2px solid #E91E63;
    color: #E91E63;
}

.sfd5-btn-outline:hover {
    background: #E91E63;
    color: #FFFFFF;
}

/* ===== CAROUSEL/SLIDER ===== */
.sfd5-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin: 20px 0;
}

.sfd5-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.sfd5-carousel-slide {
    min-width: 100%;
    position: relative;
}

.sfd5-carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    cursor: pointer;
}

.sfd5-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(233, 30, 99, 0.8);
    color: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
}

.sfd5-carousel-prev {
    left: 10px;
}

.sfd5-carousel-next {
    right: 10px;
}

/* ===== GAME GRID ===== */
.sfd5-game-section {
    margin: 30px 0;
}

.sfd5-section-title {
    font-size: 1.5rem;
    color: #E91E63;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E91E63;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sfd5-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.sfd5-game-item {
    background: linear-gradient(135deg, #2D2D44 0%, #1A1A2E 100%);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(233, 30, 99, 0.2);
}

.sfd5-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4);
    border-color: #E91E63;
}

.sfd5-game-icon {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 6px;
}

.sfd5-game-name {
    font-size: 0.75rem;
    color: #BAE1FF;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===== CONTENT SECTIONS ===== */
.sfd5-content-box {
    background: linear-gradient(135deg, #2D2D44 0%, #1A1A2E 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(233, 30, 99, 0.2);
}

.sfd5-content-title {
    font-size: 1.3rem;
    color: #E91E63;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sfd5-content-text {
    color: #C0C0C0;
    line-height: 1.8;
    margin-bottom: 15px;
}

.sfd5-content-list {
    list-style: none;
    padding-left: 0;
}

.sfd5-content-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #BAE1FF;
}

.sfd5-content-list li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #E91E63;
    font-weight: bold;
}

/* ===== FOOTER ===== */
.sfd5-footer {
    background: linear-gradient(135deg, #0F0F1E 0%, #1A1A2E 100%);
    padding: 30px 0 80px;
    margin-top: 50px;
}

.sfd5-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.sfd5-footer-link {
    color: #BAE1FF;
    padding: 10px;
    text-align: center;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sfd5-footer-link:hover {
    background: rgba(233, 30, 99, 0.2);
    color: #E91E63;
}

.sfd5-partners {
    margin: 25px 0;
}

.sfd5-partners-title {
    font-size: 1.2rem;
    color: #E91E63;
    margin-bottom: 15px;
    text-align: center;
}

.sfd5-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.sfd5-partner-logo {
    width: 100%;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border-radius: 5px;
}

.sfd5-partner-logo:hover {
    opacity: 1;
}

.sfd5-copyright {
    text-align: center;
    color: #BBBBBB;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(233, 30, 99, 0.2);
}

/* ===== BOTTOM NAV BAR (Mobile) ===== */
.sfd5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1A1A2E 0%, #0F0F1E 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(233, 30, 99, 0.3);
}

.sfd5-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    color: #BAE1FF;
    transition: all 0.3s ease;
}

.sfd5-nav-item:hover,
.sfd5-nav-item.sfd5-active {
    color: #E91E63;
}

.sfd5-nav-item i {
    font-size: 24px;
    margin-bottom: 2px;
}

.sfd5-nav-item span {
    font-size: 0.7rem;
}

/* ===== BACK TO TOP ===== */
.sfd5-back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #E91E63 0%, #FF69B4 100%);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.sfd5-back-to-top.sfd5-visible {
    opacity: 1;
    visibility: visible;
}

/* ===== ANIMATIONS ===== */
.sfd5-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.sfd5-animate.sfd5-animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FILTER BUTTONS ===== */
.sfd5-filter-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.sfd5-filter-btn {
    padding: 8px 16px;
    background: rgba(233, 30, 99, 0.2);
    color: #BAE1FF;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid rgba(233, 30, 99, 0.3);
}

.sfd5-filter-btn.sfd5-active,
.sfd5-filter-btn:hover {
    background: #E91E63;
    color: #FFFFFF;
    border-color: #E91E63;
}

/* ===== UTILITY CLASSES ===== */
.sfd5-text-center {
    text-align: center;
}

.sfd5-text-primary {
    color: #E91E63;
}

.sfd5-text-secondary {
    color: #BAE1FF;
}

.sfd5-mt-10 {
    margin-top: 10px;
}

.sfd5-mt-20 {
    margin-top: 20px;
}

.sfd5-mb-10 {
    margin-bottom: 10px;
}

.sfd5-mb-20 {
    margin-bottom: 20px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 360px) {
    .sfd5-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sfd5-partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 431px) {
    .sfd5-container {
        padding: 0 20px;
    }
}
