/**
 * PhSky App Login - Main Stylesheet
 * Website: phskyapplogin.sbs
 * Prefix: g5cd-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --g5cd-primary: #ECF0F1;
    --g5cd-secondary: #BDC3C7;
    --g5cd-accent: #778899;
    --g5cd-bg: #1A1A2E;
    --g5cd-bg-light: #252542;
    --g5cd-text: #ECF0F1;
    --g5cd-text-muted: #BDC3C7;
    --g5cd-border: #3a3a5c;
    --g5cd-success: #27ae60;
    --g5cd-warning: #f39c12;
    --g5cd-danger: #e74c3c;
    --g5cd-gradient: linear-gradient(135deg, #1A1A2E 0%, #252542 100%);
    --g5cd-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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(--g5cd-bg);
    color: var(--g5cd-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.g5cd-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.g5cd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--g5cd-bg);
    border-bottom: 1px solid var(--g5cd-border);
    padding: 1rem 0;
}

.g5cd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.g5cd-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--g5cd-text);
}

.g5cd-logo img {
    width: 28px;
    height: 28px;
}

.g5cd-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--g5cd-primary);
}

.g5cd-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g5cd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.g5cd-btn-primary {
    background: var(--g5cd-success);
    color: #fff;
}

.g5cd-btn-primary:hover {
    background: #219a52;
    transform: translateY(-1px);
}

.g5cd-btn-secondary {
    background: var(--g5cd-accent);
    color: #fff;
}

.g5cd-btn-secondary:hover {
    background: #6a7a8a;
    transform: translateY(-1px);
}

.g5cd-menu-toggle {
    background: none;
    border: none;
    color: var(--g5cd-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.g5cd-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g5cd-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.g5cd-menu-active {
    right: 0;
}

.g5cd-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: all 0.3s ease;
}

.g5cd-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g5cd-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--g5cd-border);
}

.g5cd-menu-close {
    background: none;
    border: none;
    color: var(--g5cd-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.g5cd-menu-nav {
    list-style: none;
}

.g5cd-menu-nav li {
    margin-bottom: 1rem;
}

.g5cd-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--g5cd-text);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.g5cd-menu-nav a:hover {
    background: var(--g5cd-bg);
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.g5cd-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.g5cd-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g5cd-slide-active {
    opacity: 1;
}

.g5cd-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g5cd-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.g5cd-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease;
}

.g5cd-dot-active {
    background: var(--g5cd-primary);
}

/* Section Styles */
.g5cd-section {
    padding: 2rem 1.5rem;
}

.g5cd-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--g5cd-primary);
    text-align: center;
}

.g5cd-section-subtitle {
    font-size: 1.4rem;
    color: var(--g5cd-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.g5cd-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.g5cd-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.g5cd-game-item:hover {
    transform: scale(1.05);
}

.g5cd-game-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--g5cd-border);
}

.g5cd-game-name {
    font-size: 1rem;
    color: var(--g5cd-text);
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Section */
.g5cd-category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding: 0 0.5rem;
}

.g5cd-category-icon {
    font-size: 2rem;
    color: var(--g5cd-warning);
}

.g5cd-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g5cd-primary);
}

/* Cards & Features */
.g5cd-card {
    background: var(--g5cd-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--g5cd-border);
}

.g5cd-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g5cd-primary);
    margin-bottom: 1rem;
}

.g5cd-card-text {
    font-size: 1.3rem;
    color: var(--g5cd-text-muted);
    line-height: 1.6;
}

.g5cd-feature-list {
    list-style: none;
}

.g5cd-feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--g5cd-border);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.g5cd-feature-list li:last-child {
    border-bottom: none;
}

.g5cd-feature-icon {
    color: var(--g5cd-success);
    font-size: 1.4rem;
    margin-top: 0.2rem;
}

/* CTA Button */
.g5cd-cta-btn {
    display: block;
    width: 100%;
    padding: 1.4rem;
    background: linear-gradient(135deg, var(--g5cd-success) 0%, #219a52 100%);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.g5cd-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--g5cd-shadow);
}

/* Footer */
.g5cd-footer {
    background: var(--g5cd-bg-light);
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--g5cd-border);
}

.g5cd-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.g5cd-footer-desc {
    font-size: 1.2rem;
    color: var(--g5cd-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.g5cd-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.g5cd-footer-link {
    padding: 0.6rem 1.2rem;
    background: var(--g5cd-bg);
    color: var(--g5cd-text);
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.g5cd-footer-link:hover {
    background: var(--g5cd-accent);
}

.g5cd-footer-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--g5cd-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--g5cd-border);
}

/* Bottom Navigation */
.g5cd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--g5cd-bg);
    border-top: 1px solid var(--g5cd-border);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

@media (min-width: 769px) {
    .g5cd-bottom-nav {
        display: none;
    }
}

.g5cd-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    background: none;
    border: none;
    color: var(--g5cd-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.g5cd-bottom-nav-btn:hover,
.g5cd-bottom-nav-btn.g5cd-active {
    color: var(--g5cd-warning);
}

.g5cd-bottom-nav-btn i,
.g5cd-bottom-nav-btn span.iconify {
    font-size: 22px;
    margin-bottom: 0.3rem;
}

.g5cd-bottom-nav-btn span.material-icons-outlined {
    font-size: 24px;
    margin-bottom: 0.3rem;
}

.g5cd-bottom-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Promotional Links */
.g5cd-promo-link {
    color: var(--g5cd-warning);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.g5cd-promo-link:hover {
    color: var(--g5cd-success);
    text-decoration: underline;
}

/* Partners */
.g5cd-partners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
}

.g5cd-partner-logo {
    height: 24px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.g5cd-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 430px) {
    .g5cd-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .g5cd-game-img {
        width: 60px;
        height: 60px;
    }

    .g5cd-game-name {
        font-size: 0.9rem;
    }
}

/* Utilities */
.g5cd-text-center { text-align: center; }
.g5cd-mb-1 { margin-bottom: 1rem; }
.g5cd-mb-2 { margin-bottom: 2rem; }
.g5cd-mt-2 { margin-top: 2rem; }
.g5cd-hidden { display: none; }
