/**
 * PhSky App Login - Main Stylesheet
 * CSS Class prefix: w2144-
 * Website: phskyapplogin.club
 * Color Palette: #FFB347 | #0F0F23 | #98FB98 | #7CFC00 | #F8F9FA | #9AFF9A
 */

/* ========================================
   CSS Variables
======================================== */
:root {
    --w2144-primary: #FFB347;
    --w2144-secondary: #7CFC00;
    --w2144-accent: #98FB98;
    --w2144-bg-dark: #0F0F23;
    --w2144-bg-light: #F8F9FA;
    --w2144-text-light: #F8F9FA;
    --w2144-text-dark: #0F0F23;
    --w2144-success: #9AFF9A;
    --w2144-gradient: linear-gradient(135deg, #FFB347 0%, #7CFC00 100%);
    --w2144-shadow: 0 4px 15px rgba(255, 179, 71, 0.3);
    --w2144-radius: 12px;
    --w2144-radius-sm: 8px;
    --w2144-transition: all 0.3s ease;
}

/* ========================================
   Reset & Base Styles
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w2144-bg-dark);
    color: var(--w2144-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--w2144-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ========================================
   Header Styles
======================================== */
.w2144-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--w2144-bg-dark) 0%, rgba(15, 15, 35, 0.95) 100%);
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 179, 71, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--w2144-transition);
}

.w2144-header-scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: var(--w2144-shadow);
}

.w2144-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w2144-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.w2144-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--w2144-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w2144-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w2144-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--w2144-radius-sm);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w2144-transition);
    border: none;
    min-height: 36px;
}

.w2144-btn-primary {
    background: var(--w2144-gradient);
    color: var(--w2144-text-dark);
}

.w2144-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.4);
}

.w2144-btn-outline {
    background: transparent;
    border: 2px solid var(--w2144-primary);
    color: var(--w2144-primary);
}

.w2144-btn-outline:hover {
    background: var(--w2144-primary);
    color: var(--w2144-text-dark);
}

/* Hamburger Menu */
.w2144-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
    cursor: pointer;
    z-index: 10001;
}

.w2144-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--w2144-primary);
    border-radius: 2px;
    transition: var(--w2144-transition);
}

.w2144-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.w2144-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.w2144-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   Mobile Menu
======================================== */
.w2144-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--w2144-transition);
}

.w2144-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w2144-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w2144-bg-dark);
    z-index: 9999;
    padding: 6rem 2rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 179, 71, 0.2);
}

.w2144-menu-active {
    right: 0;
}

.w2144-mobile-menu a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--w2144-text-light);
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255, 179, 71, 0.1);
    transition: var(--w2144-transition);
}

.w2144-mobile-menu a:hover {
    background: rgba(255, 179, 71, 0.1);
    color: var(--w2144-primary);
    padding-left: 1.5rem;
}

/* ========================================
   Main Content
======================================== */
.w2144-main {
    padding-top: 60px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .w2144-main {
        padding-bottom: 80px;
    }
}

.w2144-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Carousel/Slider
======================================== */
.w2144-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--w2144-radius);
    margin-bottom: 2rem;
}

.w2144-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.w2144-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w2144-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.w2144-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--w2144-transition);
}

.w2144-dot-active {
    background: var(--w2144-primary);
    transform: scale(1.2);
}

/* ========================================
   Section Styles
======================================== */
.w2144-section {
    padding: 2rem 0;
}

.w2144-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--w2144-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.w2144-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--w2144-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 179, 71, 0.1);
    transition: var(--w2144-transition);
}

.w2144-card:hover {
    border-color: var(--w2144-primary);
    transform: translateY(-3px);
}

/* ========================================
   Game Grid
======================================== */
.w2144-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.w2144-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--w2144-transition);
}

.w2144-game-item:hover {
    transform: scale(1.05);
}

.w2144-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--w2144-radius-sm);
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: var(--w2144-transition);
}

.w2144-game-item:hover img {
    border-color: var(--w2144-primary);
    box-shadow: var(--w2144-shadow);
}

.w2144-game-name {
    font-size: 1.1rem;
    color: var(--w2144-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.w2144-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--w2144-primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--w2144-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w2144-category-title i {
    font-size: 1.8rem;
}

/* ========================================
   Bottom Navigation
======================================== */
.w2144-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.98) 0%, var(--w2144-bg-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 179, 71, 0.3);
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 769px) {
    .w2144-bottom-nav {
        display: none;
    }
}

.w2144-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--w2144-transition);
    color: var(--w2144-text-light);
    opacity: 0.7;
}

.w2144-nav-item:hover,
.w2144-nav-item.w2144-active {
    opacity: 1;
    color: var(--w2144-primary);
    transform: scale(1.1);
}

.w2144-nav-item i,
.w2144-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.w2144-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* ========================================
   Footer
======================================== */
.w2144-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 179, 71, 0.2);
}

@media (max-width: 768px) {
    .w2144-footer {
        padding-bottom: 80px;
    }
}

.w2144-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w2144-footer-links a {
    color: var(--w2144-accent);
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: var(--w2144-transition);
}

.w2144-footer-links a:hover {
    background: rgba(255, 179, 71, 0.2);
    color: var(--w2144-primary);
}

.w2144-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.w2144-partners img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    opacity: 0.7;
    transition: var(--w2144-transition);
}

.w2144-partners img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.w2144-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Promo Links & Buttons
======================================== */
.w2144-promo-link {
    color: var(--w2144-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--w2144-transition);
}

.w2144-promo-link:hover {
    color: var(--w2144-secondary);
    text-decoration: underline;
}

.w2144-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--w2144-gradient);
    color: var(--w2144-text-dark);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: var(--w2144-radius);
    cursor: pointer;
    transition: var(--w2144-transition);
    text-align: center;
}

.w2144-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 179, 71, 0.5);
}

/* ========================================
   Content Styles
======================================== */
.w2144-content {
    padding: 1.5rem 0;
}

.w2144-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: var(--w2144-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w2144-content h2 {
    font-size: 1.8rem;
    color: var(--w2144-primary);
    margin: 1.5rem 0 1rem;
}

.w2144-content h3 {
    font-size: 1.5rem;
    color: var(--w2144-accent);
    margin: 1rem 0 0.8rem;
}

.w2144-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.w2144-content ul,
.w2144-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.w2144-content li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.w2144-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--w2144-primary);
    border-radius: 50%;
}

.w2144-content ol {
    list-style: decimal;
    padding-left: 2rem;
}

.w2144-content ol li {
    padding-left: 0;
}

/* ========================================
   Toast Notification
======================================== */
.w2144-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--w2144-primary);
    color: var(--w2144-text-dark);
    padding: 1rem 2rem;
    border-radius: var(--w2144-radius);
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: var(--w2144-transition);
}

.w2144-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   Responsive Utilities
======================================== */
@media (max-width: 430px) {
    .w2144-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .w2144-game-name {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .w2144-container {
        max-width: 600px;
    }

    .w2144-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .w2144-header {
        padding: 1rem 2rem;
    }
}

/* ========================================
   Animation Classes
======================================== */
.w2144-fade-in {
    animation: w2144fadeIn 0.5s ease forwards;
}

@keyframes w2144fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.w2144-pulse {
    animation: w2144pulse 2s infinite;
}

@keyframes w2144pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
