/**
 * Playtime Login - Main Stylesheet
 * Website: playtimelogin.click
 * Prefix: v478-
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
    --v478-primary: #5D5D5D;
    --v478-secondary: #3A3A3A;
    --v478-bg: #5D5D5D;
    --v478-bg-light: #ECF0F1;
    --v478-text: #3A3A3A;
    --v478-text-light: #ECF0F1;
    --v478-accent: #FFD700;
    --v478-accent-hover: #FFC107;
    --v478-success: #2ECC71;
    --v478-danger: #E74C3C;
    --v478-gradient: linear-gradient(135deg, #5D5D5D 0%, #3A3A3A 100%);
    --v478-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --v478-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --v478-radius: 12px;
    --v478-radius-sm: 8px;
    --v478-transition: all 0.3s ease;
    --vh: 1vh;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background-color: var(--v478-bg);
    color: var(--v478-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.v478-menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--v478-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--v478-bg-light);
}

/* Container */
.v478-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.v478-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--v478-gradient);
    padding: 12px 16px;
    z-index: 1000;
    box-shadow: var(--v478-shadow);
}

.v478-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.v478-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v478-logo img {
    height: 36px;
    width: auto;
}

.v478-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--v478-text-light);
}

.v478-header-actions {
    display: flex;
    gap: 10px;
}

.v478-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--v478-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v478-transition);
    gap: 6px;
}

.v478-btn-primary {
    background: var(--v478-accent);
    color: var(--v478-secondary);
}

.v478-btn-primary:hover {
    background: var(--v478-accent-hover);
    transform: translateY(-2px);
}

.v478-btn-secondary {
    background: transparent;
    border: 2px solid var(--v478-text-light);
    color: var(--v478-text-light);
}

.v478-btn-secondary:hover {
    background: var(--v478-text-light);
    color: var(--v478-secondary);
}

.v478-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--v478-text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* Mobile Menu */
.v478-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v478-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 60px 20px 20px;
    overflow-y: auto;
}

.v478-mobile-menu.v478-active {
    right: 0;
}

.v478-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--v478-transition);
}

.v478-menu-overlay.v478-active {
    opacity: 1;
    visibility: visible;
}

.v478-mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--v478-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.v478-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v478-mobile-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--v478-text-light);
    border-radius: var(--v478-radius-sm);
    transition: var(--v478-transition);
}

.v478-mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.v478-hero {
    position: relative;
    margin-top: 60px;
    height: calc(var(--vh, 1vh) * 45);
    min-height: 280px;
    overflow: hidden;
}

.v478-hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.v478-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.v478-hero-slide.v478-active {
    opacity: 1;
}

.v478-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v478-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.v478-hero-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: #fff;
}

.v478-hero-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.v478-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.v478-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--v478-transition);
}

.v478-carousel-dot.v478-active {
    background: var(--v478-accent);
    width: 24px;
    border-radius: 4px;
}

/* Main Content */
.v478-main {
    padding-bottom: 80px;
}

/* Section Styles */
.v478-section {
    padding: 30px 16px;
}

.v478-section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--v478-text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.v478-section-title i {
    color: var(--v478-accent);
}

/* Category Tabs */
.v478-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.v478-category-tabs::-webkit-scrollbar {
    display: none;
}

.v478-category-tab {
    flex-shrink: 0;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    color: var(--v478-text-light);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--v478-transition);
    white-space: nowrap;
}

.v478-category-tab.v478-active {
    background: var(--v478-accent);
    color: var(--v478-secondary);
}

/* Games Grid */
.v478-games-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.v478-games-grid.v478-active {
    display: grid;
}

.v478-game-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--v478-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--v478-transition);
    aspect-ratio: 1;
}

.v478-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v478-shadow);
}

.v478-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v478-game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.v478-game-card-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info Section */
.v478-info-section {
    background: var(--v478-secondary);
    padding: 30px 16px;
    margin: 20px 0;
}

.v478-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--v478-radius);
    padding: 20px;
    margin-bottom: 16px;
}

.v478-info-card h3 {
    color: var(--v478-accent);
    margin-bottom: 12px;
}

.v478-info-card ul {
    padding-left: 20px;
}

.v478-info-card li {
    margin-bottom: 8px;
    color: var(--v478-bg-light);
    position: relative;
    padding-left: 16px;
}

.v478-info-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--v478-accent);
    border-radius: 50%;
}

/* Features Grid */
.v478-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.v478-feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--v478-radius);
    padding: 20px;
    text-align: center;
    transition: var(--v478-transition);
}

.v478-feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.v478-feature-icon {
    font-size: 2rem;
    color: var(--v478-accent);
    margin-bottom: 12px;
}

.v478-feature-title {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--v478-text-light);
}

.v478-feature-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Partner Logos */
.v478-partners {
    padding: 30px 16px;
    background: var(--v478-secondary);
}

.v478-partners-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.v478-partner-logo {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--v478-radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.v478-partner-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Footer */
.v478-footer {
    background: var(--v478-secondary);
    padding: 30px 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.v478-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.v478-footer-links a {
    color: var(--v478-bg-light);
    font-size: 0.875rem;
    padding: 8px 0;
}

.v478-footer-links a:hover {
    color: var(--v478-accent);
}

.v478-footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* Mobile Bottom Navigation */
.v478-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--v478-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.v478-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 8px;
    color: var(--v478-bg-light);
    cursor: pointer;
    transition: var(--v478-transition);
    border-radius: 12px;
    position: relative;
}

.v478-nav-item:hover,
.v478-nav-item.v478-active {
    color: var(--v478-accent);
}

.v478-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.v478-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.v478-nav-item.v478-active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 20px;
    height: 3px;
    background: var(--v478-accent);
    border-radius: 2px;
}

/* CTA Section */
.v478-cta {
    background: var(--v478-gradient);
    padding: 30px 16px;
    text-align: center;
    margin: 20px 0;
}

.v478-cta-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--v478-text-light);
}

.v478-cta-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.v478-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Animations */
.v478-animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.v478-animate-on-scroll.v478-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.v478-text-center { text-align: center; }
.v478-mt-20 { margin-top: 20px; }
.v478-mb-20 { margin-bottom: 20px; }
.v478-hidden { display: none !important; }

/* Desktop Styles */
@media (min-width: 769px) {
    .v478-bottom-nav {
        display: none;
    }

    .v478-main {
        padding-bottom: 0;
    }

    .v478-container {
        max-width: 1200px;
    }

    .v478-header-inner {
        max-width: 1200px;
    }

    .v478-menu-toggle {
        display: block;
    }

    .v478-games-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .v478-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .v478-partners-grid {
        grid-template-columns: repeat(14, 1fr);
    }

    .v478-footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--v478-accent);
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: var(--v478-accent);
    color: var(--v478-secondary);
}
