/**
 * PHJL Login - Main Stylesheet
 * @version 1.0.0
 * @description Core CSS styles for phjl login website
 * All classes use prefix 'v752-' to avoid conflicts
 */

/* CSS Variables */
:root {
    --v752-primary: #006400;
    --v752-secondary: #228B22;
    --v752-accent: #FF5722;
    --v752-bg-dark: #2E4057;
    --v752-bg-light: #1a2a3a;
    --v752-text-light: #A9A9A9;
    --v752-text-pink: #FFCCCB;
    --v752-text-white: #ffffff;
    --v752-border-radius: 8px;
    --v752-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --v752-transition: all 0.3s ease;
}

/* Reset & Base */
* {
    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;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--v752-bg-dark);
    color: var(--v752-text-light);
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Container */
.v752-container {
    width: 100%;
    padding: 0 1.5rem;
    margin: 0 auto;
}

/* Header */
.v752-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--v752-bg-dark) 0%, var(--v752-bg-light) 100%);
    padding: 1rem 1.5rem;
    z-index: 1000;
    box-shadow: var(--v752-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v752-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.v752-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.v752-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v752-text-white);
    background: linear-gradient(90deg, var(--v752-primary), var(--v752-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v752-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.v752-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--v752-border-radius);
    cursor: pointer;
    transition: var(--v752-transition);
    border: none;
    min-height: 36px;
}

.v752-btn-primary {
    background: linear-gradient(135deg, var(--v752-primary) 0%, var(--v752-secondary) 100%);
    color: var(--v752-text-white);
}

.v752-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 100, 0, 0.4);
}

.v752-btn-accent {
    background: linear-gradient(135deg, var(--v752-accent) 0%, #ff7043 100%);
    color: var(--v752-text-white);
}

.v752-btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.v752-menu-toggle {
    background: none;
    border: none;
    color: var(--v752-text-white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.v752-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--v752-bg-dark);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.v752-menu-active {
    right: 0;
}

.v752-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.v752-menu-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v752-text-white);
}

.v752-menu-close {
    background: none;
    border: none;
    color: var(--v752-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.v752-menu-list {
    list-style: none;
}

.v752-menu-item {
    margin-bottom: 0.5rem;
}

.v752-menu-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--v752-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: var(--v752-border-radius);
    transition: var(--v752-transition);
}

.v752-menu-link:hover {
    background: rgba(0, 100, 0, 0.3);
    color: var(--v752-text-white);
}

/* Overlay */
.v752-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;
}

.v752-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.v752-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel */
.v752-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 1.5rem 1.5rem;
}

.v752-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.v752-slide-active {
    opacity: 1;
}

.v752-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v752-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.v752-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.v752-dot-active {
    background: var(--v752-accent);
}

/* Sections */
.v752-section {
    padding: 2rem 1.5rem;
}

.v752-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v752-text-white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.v752-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, var(--v752-primary), var(--v752-accent));
    border-radius: 2px;
}

/* Game Grid */
.v752-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v752-game-card {
    background: var(--v752-bg-light);
    border-radius: var(--v752-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--v752-transition);
    text-align: center;
}

.v752-game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--v752-shadow);
}

.v752-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.v752-game-name {
    font-size: 1.1rem;
    color: var(--v752-text-light);
    padding: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.v752-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v752-text-white);
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v752-category-icon {
    color: var(--v752-accent);
}

/* Content Cards */
.v752-card {
    background: var(--v752-bg-light);
    border-radius: var(--v752-border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.v752-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--v752-text-white);
    margin-bottom: 1rem;
}

.v752-card-text {
    color: var(--v752-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Promo Links */
.v752-promo-link {
    color: var(--v752-accent);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--v752-transition);
}

.v752-promo-link:hover {
    color: var(--v752-text-white);
    text-decoration: underline;
}

/* Footer */
.v752-footer {
    background: var(--v752-bg-light);
    padding: 2rem 1.5rem;
    padding-bottom: 8rem;
}

.v752-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.v752-footer-link {
    color: var(--v752-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--v752-transition);
}

.v752-footer-link:hover {
    color: var(--v752-accent);
}

.v752-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.v752-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--v752-transition);
}

.v752-partner-logo:hover {
    opacity: 1;
}

.v752-copyright {
    text-align: center;
    color: var(--v752-text-light);
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Bottom Navigation */
.v752-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--v752-bg-dark) 0%, #1a2a3a 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.v752-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--v752-transition);
    text-decoration: none;
    color: var(--v752-text-light);
}

.v752-nav-item:hover {
    color: var(--v752-accent);
    transform: scale(1.1);
}

.v752-nav-item-active {
    color: var(--v752-primary);
}

.v752-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.v752-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive - Hide bottom nav on desktop */
@media (min-width: 769px) {
    .v752-bottom-nav {
        display: none;
    }
    .v752-main {
        padding-bottom: 2rem;
    }
    .v752-footer {
        padding-bottom: 2rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .v752-main {
        padding-bottom: 80px;
    }
}

/* Utilities */
.v752-text-center {
    text-align: center;
}

.v752-mb-1 {
    margin-bottom: 1rem;
}

.v752-mb-2 {
    margin-bottom: 2rem;
}

.v752-highlight {
    color: var(--v752-accent);
    font-weight: 600;
}

/* Touch device optimizations */
.v752-touch-device .v752-game-card,
.v752-touch-device .v752-nav-item,
.v752-touch-device .v752-btn {
    min-height: 44px;
}

/* Animation */
@keyframes v752-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v752-animate-in {
    animation: v752-fadeIn 0.5s ease forwards;
}
