/**
 * Playtime App - Gaming Platform CSS Styles
 * All classes use g70f- prefix for namespace isolation
 * Mobile-first responsive design with coral/pink aesthetic
 * Version: 1.0
 */

/* CSS Variables - Coral/Pink Color Palette */
:root {
    --g70f-primary: #AD1457;
    --g70f-secondary: #34495E;
    --g70f-accent: #FFB347;
    --g70f-highlight: #FFF176;
    --g70f-light: #FFCCCB;

    --g70f-bg-dark: #2C1810;
    --g70f-bg-medium: #4A2C2A;
    --g70f-bg-light: #6B3E3E;

    --g70f-text-primary: #FFFFFF;
    --g70f-text-secondary: #FFE5E5;
    --g70f-text-muted: #FFB3BA;

    --g70f-success: #4CAF50;
    --g70f-warning: #FF9800;
    --g70f-danger: #F44336;
    --g70f-info: #2196F3;

    --g70f-shadow: 0 4px 20px rgba(173, 20, 87, 0.3);
    --g70f-shadow-sm: 0 2px 8px rgba(173, 20, 87, 0.2);
    --g70f-border-radius: 16px;
    --g70f-border-radius-sm: 12px;
    --g70f-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dynamic viewport height for mobile browsers */
    --vh: 1vh;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--g70f-text-primary);
    background: linear-gradient(135deg, var(--g70f-bg-dark) 0%, var(--g70f-bg-medium) 50%, var(--g70f-bg-light) 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Add subtle pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 204, 203, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(173, 20, 87, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Container and Layout */
.g70f-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.g70f-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px; /* Space for bottom navigation */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.6rem;
    color: var(--g70f-text-primary);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 3.2rem;
    background: linear-gradient(135deg, var(--g70f-light) 0%, var(--g70f-highlight) 50%, var(--g70f-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.8rem;
    color: var(--g70f-highlight);
}

h3 {
    font-size: 2.4rem;
    color: var(--g70f-accent);
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.6rem;
    color: var(--g70f-text-secondary);
}

a {
    color: var(--g70f-accent);
    text-decoration: none;
    transition: var(--g70f-transition);
    font-weight: 500;
}

a:hover {
    color: var(--g70f-highlight);
    transform: translateY(-1px);
}

/* Header */
.g70f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--g70f-primary);
    z-index: 1000;
    transition: var(--g70f-transition);
    box-shadow: var(--g70f-shadow);
}

.g70f-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    max-width: 430px;
    margin: 0 auto;
}

.g70f-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g70f-text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.g70f-logo img {
    width: 32px;
    height: 32px;
    border-radius: var(--g70f-border-radius-sm);
    border: 2px solid var(--g70f-primary);
}

.g70f-header-buttons {
    display: flex;
    gap: 8px;
}

.g70f-btn {
    padding: 10px 16px;
    border-radius: var(--g70f-border-radius-sm);
    border: none;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--g70f-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.g70f-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.g70f-btn:hover::before {
    left: 100%;
}

.g70f-btn-primary {
    background: linear-gradient(135deg, var(--g70f-primary) 0%, var(--g70f-accent) 100%);
    color: var(--g70f-text-primary);
    box-shadow: 0 4px 15px rgba(173, 20, 87, 0.4);
}

.g70f-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(173, 20, 87, 0.6);
}

.g70f-btn-secondary {
    background: transparent;
    color: var(--g70f-text-primary);
    border: 2px solid var(--g70f-accent);
}

.g70f-btn-secondary:hover {
    background: var(--g70f-accent);
    color: var(--g70f-bg-dark);
    transform: translateY(-2px);
}

.g70f-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--g70f-text-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--g70f-border-radius-sm);
    transition: var(--g70f-transition);
}

.g70f-menu-toggle:hover {
    background: rgba(255, 179, 186, 0.2);
    transform: rotate(90deg);
}

/* Mobile Menu */
.g70f-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, var(--g70f-bg-dark) 0%, var(--g70f-bg-medium) 100%);
    z-index: 9999;
    transition: var(--g70f-transition);
    overflow-y: auto;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
}

.g70f-mobile-menu.active {
    left: 0;
}

.g70f-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 2px solid var(--g70f-primary);
    background: rgba(173, 20, 87, 0.1);
}

.g70f-menu-close {
    background: none;
    border: none;
    color: var(--g70f-text-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--g70f-border-radius-sm);
    transition: var(--g70f-transition);
}

.g70f-menu-close:hover {
    background: rgba(255, 179, 186, 0.2);
    transform: rotate(90deg);
}

.g70f-menu-nav {
    padding: 16px 0;
}

.g70f-menu-item {
    display: block;
    padding: 14px 16px;
    color: var(--g70f-text-primary);
    font-size: 1.6rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: var(--g70f-transition);
    cursor: pointer;
    border-left: 4px solid transparent;
    position: relative;
}

.g70f-menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 179, 186, 0.3), transparent);
}

.g70f-menu-item:hover {
    background: rgba(255, 179, 186, 0.1);
    padding-left: 24px;
    border-left-color: var(--g70f-accent);
    color: var(--g70f-highlight);
}

.g70f-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--g70f-transition);
}

.g70f-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.g70f-main {
    flex: 1;
    padding-top: 80px;
    position: relative;
    z-index: 2;
}

.g70f-section {
    padding: 40px 0;
}

.g70f-section-title {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.g70f-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--g70f-primary), var(--g70f-accent));
    border-radius: 2px;
}

/* Carousel */
.g70f-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--g70f-border-radius);
    margin-bottom: 32px;
    box-shadow: var(--g70f-shadow);
}

.g70f-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.g70f-slide.active {
    opacity: 1;
}

.g70f-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g70f-carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.g70f-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--g70f-transition);
    border: 2px solid transparent;
}

.g70f-indicator.active {
    background: var(--g70f-highlight);
    transform: scale(1.2);
    border-color: var(--g70f-accent);
}

/* Game Grid */
.g70f-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.g70f-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: var(--g70f-border-radius-sm);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: var(--g70f-transition);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(255, 179, 186, 0.2);
    position: relative;
    overflow: hidden;
}

.g70f-game-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 179, 186, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.g70f-game-item:hover::before {
    opacity: 1;
}

.g70f-game-item:hover {
    background: rgba(255, 179, 186, 0.15);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(173, 20, 87, 0.4);
    border-color: var(--g70f-accent);
}

.g70f-game-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--g70f-border-radius-sm);
    object-fit: cover;
    border: 2px solid var(--g70f-primary);
}

.g70f-game-name {
    font-size: 1.2rem;
    color: var(--g70f-text-secondary);
    text-align: center;
    line-height: 1.2;
    max-height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 500;
}

/* Cards */
.g70f-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--g70f-border-radius);
    padding: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 179, 186, 0.2);
    transition: var(--g70f-transition);
    position: relative;
    overflow: hidden;
}

.g70f-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--g70f-primary), var(--g70f-accent), var(--g70f-highlight));
}

.g70f-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: var(--g70f-shadow);
}

.g70f-card-header {
    margin-bottom: 16px;
}

.g70f-card-title {
    color: var(--g70f-highlight);
    font-size: 1.8rem;
}

.g70f-card-content {
    color: var(--g70f-text-secondary);
}

/* Features */
.g70f-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.g70f-feature {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--g70f-border-radius);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: var(--g70f-transition);
    border: 1px solid rgba(255, 179, 186, 0.1);
    position: relative;
    overflow: hidden;
}

.g70f-feature::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--g70f-primary), var(--g70f-accent));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.g70f-feature:hover::after {
    transform: scaleX(1);
}

.g70f-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(173, 20, 87, 0.3);
}

.g70f-feature-icon {
    font-size: 4rem;
    color: var(--g70f-accent);
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.g70f-feature-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--g70f-text-primary);
}

.g70f-feature-description {
    font-size: 1.4rem;
    color: var(--g70f-text-secondary);
}

/* Bottom Navigation */
.g70f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--g70f-bg-dark) 0%, var(--g70f-bg-medium) 100%);
    border-top: 2px solid var(--g70f-primary);
    z-index: 1000;
    height: 64px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(173, 20, 87, 0.3);
}

.g70f-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--g70f-text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--g70f-transition);
    padding: 8px;
    border-radius: var(--g70f-border-radius-sm);
    min-width: 60px;
    cursor: pointer;
    border: none;
    background: none;
    position: relative;
}

.g70f-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 179, 186, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.3s;
}

.g70f-nav-item:hover::before {
    transform: translateX(-50%) scale(1);
}

.g70f-nav-item:hover,
.g70f-nav-item.active {
    color: var(--g70f-highlight);
    background: rgba(255, 179, 186, 0.1);
}

.g70f-nav-icon {
    font-size: 2.4rem;
}

.g70f-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.g70f-footer {
    background: linear-gradient(135deg, var(--g70f-bg-dark) 0%, var(--g70f-bg-medium) 100%);
    border-top: 2px solid var(--g70f-primary);
    padding: 40px 0 80px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.g70f-footer-content {
    text-align: center;
    margin-bottom: 32px;
}

.g70f-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.g70f-footer-link {
    color: var(--g70f-text-muted);
    font-size: 1.4rem;
    transition: var(--g70f-transition);
    padding: 4px 8px;
    border-radius: var(--g70f-border-radius-sm);
}

.g70f-footer-link:hover {
    color: var(--g70f-accent);
    background: rgba(255, 179, 186, 0.1);
}

.g70f-partners {
    margin: 32px 0;
}

.g70f-partners-title {
    text-align: center;
    margin-bottom: 24px;
    color: var(--g70f-text-secondary);
}

.g70f-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.g70f-partner-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--g70f-border-radius-sm);
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7;
    transition: var(--g70f-transition);
    border: 1px solid rgba(255, 179, 186, 0.2);
}

.g70f-partner-logo:hover {
    filter: grayscale(0%) opacity:1;
    transform: scale(1.1);
    border-color: var(--g70f-accent);
}

.g70f-copyright {
    text-align: center;
    color: var(--g70f-text-muted);
    font-size: 1.2rem;
    padding: 16px;
    border-top: 1px solid rgba(255, 179, 186, 0.2);
    margin-top: 24px;
}

/* Animations */
.g70f-animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.g70f-animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes g70f-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes g70f-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes g70f-slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes g70f-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(173, 20, 87, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(173, 20, 87, 0.8);
    }
}

/* Loading Spinner */
.g70f-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.g70f-loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid var(--g70f-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (min-width: 768px) {
    .g70f-mobile-menu {
        display: none;
    }

    .g70f-menu-overlay {
        display: none;
    }

    .g70f-menu-toggle {
        display: block;
    }

    .g70f-bottom-nav {
        display: none;
    }

    .g70f-wrapper {
        padding-bottom: 0;
    }

    .g70f-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .g70f-game-icon {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 767px) {
    .g70f-header-buttons .g70f-btn {
        display: none;
    }

    .g70f-menu-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .g70f-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .g70f-game-icon {
        width: 50px;
        height: 50px;
    }

    .g70f-game-name {
        font-size: 1.1rem;
    }

    .g70f-container {
        padding: 0 12px;
    }
}

/* Utility Classes */
.g70f-text-center {
    text-align: center;
}

.g70f-text-left {
    text-align: left;
}

.g70f-text-right {
    text-align: right;
}

.g70f-mb-0 { margin-bottom: 0; }
.g70f-mb-1 { margin-bottom: 8px; }
.g70f-mb-2 { margin-bottom: 16px; }
.g70f-mb-3 { margin-bottom: 24px; }
.g70f-mb-4 { margin-bottom: 32px; }

.g70f-mt-0 { margin-top: 0; }
.g70f-mt-1 { margin-top: 8px; }
.g70f-mt-2 { margin-top: 16px; }
.g70f-mt-3 { margin-top: 24px; }
.g70f-mt-4 { margin-top: 32px; }

.g70f-p-1 { padding: 8px; }
.g70f-p-2 { padding: 16px; }
.g70f-p-3 { padding: 24px; }
.g70f-p-4 { padding: 32px; }

.g70f-hidden {
    display: none;
}

.g70f-visible {
    display: block;
}

/* Accessibility */
.g70f-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.g70f-btn:focus,
.g70f-nav-item:focus,
.g70f-game-item:focus {
    outline: 2px solid var(--g70f-accent);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .g70f-header,
    .g70f-bottom-nav,
    .g70f-mobile-menu,
    .g70f-menu-overlay {
        display: none;
    }

    .g70f-wrapper {
        padding-bottom: 0;
    }

    body {
        background: white;
        color: black;
    }
}