/**
 * Nano Gaming Layout Styles
 * File: css/layout-9773.css
 * Prefix: pg97-
 * Description: Core styles for mobile-first gaming website
 */

/* CSS Variables with prefix */
:root {
    --pg97-primary: #FFBF00;
    --pg97-secondary: #CCCCCC;
    --pg97-accent: #B03060;
    --pg97-highlight: #6495ED;
    --pg97-bg-dark: #212F3D;
    --pg97-bg-light: #B0E0E6;
    --pg97-text-light: #FFFFFF;
    --pg97-text-dark: #212F3D;
    --pg97-gradient-start: #212F3D;
    --pg97-gradient-end: #2C3E50;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--pg97-gradient-start), var(--pg97-gradient-end));
    color: var(--pg97-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

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

.pg97-wrapper {
    padding: 1rem;
}

/* Header Styles */
.pg97-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--pg97-bg-dark) 0%, rgba(33, 47, 61, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.pg97-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg97-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.pg97-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pg97-primary);
    text-shadow: 0 0 10px rgba(255, 191, 0, 0.3);
}

.pg97-header-actions {
    display: flex;
    gap: 0.6rem;
}

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

.pg97-btn-primary {
    background: linear-gradient(135deg, var(--pg97-primary), #FFD700);
    color: var(--pg97-text-dark);
    box-shadow: 0 2px 8px rgba(255, 191, 0, 0.4);
}

.pg97-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 191, 0, 0.6);
}

.pg97-btn-secondary {
    background: linear-gradient(135deg, var(--pg97-highlight), #7B68EE);
    color: var(--pg97-text-light);
    box-shadow: 0 2px 8px rgba(100, 149, 237, 0.4);
}

.pg97-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 149, 237, 0.6);
}

/* Menu Toggle Button */
.pg97-menu-toggle {
    background: transparent;
    border: none;
    color: var(--pg97-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.pg97-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--pg97-bg-dark), #1a252f);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
}

.pg97-mobile-menu.web773-active {
    right: 0;
}

.pg97-mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--pg97-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.pg97-mobile-menu-list {
    list-style: none;
}

.pg97-mobile-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pg97-mobile-menu-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--pg97-text-light);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.pg97-mobile-menu-link:hover {
    background: rgba(255, 191, 0, 0.1);
    color: var(--pg97-primary);
    padding-left: 1.5rem;
}

/* Overlay */
.pg97-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;
}

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

/* Main Content */
.pg97-main {
    padding-top: 6rem;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .pg97-main {
        padding-bottom: 8rem;
    }
}

/* Hero Section */
.pg97-hero {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    margin-bottom: 1.5rem;
}

.pg97-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

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

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

.pg97-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.pg97-slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg97-primary);
    margin-bottom: 0.5rem;
}

.pg97-slide-desc {
    font-size: 1.2rem;
    color: var(--pg97-text-light);
}

/* Section Styles */
.pg97-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.pg97-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg97-primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--pg97-accent);
}

.pg97-section-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pg97-highlight);
    margin: 1.2rem 0 0.8rem;
}

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

.pg97-game-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg97-game-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 191, 0, 0.15);
    box-shadow: 0 4px 15px rgba(255, 191, 0, 0.3);
}

.pg97-game-img {
    width: 100%;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

.pg97-game-name {
    font-size: 0.9rem;
    color: var(--pg97-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.pg97-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pg97-primary);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pg97-category-title i {
    color: var(--pg97-highlight);
}

/* Text Content */
.pg97-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--pg97-secondary);
    margin-bottom: 1rem;
}

.pg97-text-highlight {
    color: var(--pg97-primary);
    font-weight: 600;
}

/* List Styles */
.pg97-list {
    list-style: none;
    padding-left: 0;
}

.pg97-list-item {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.3rem;
    color: var(--pg97-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pg97-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--pg97-primary);
    border-radius: 50%;
}

/* Promo Link */
.pg97-promo-link {
    color: var(--pg97-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

/* Footer Styles */
.pg97-footer {
    background: linear-gradient(180deg, var(--pg97-bg-dark), #1a252f);
    padding: 2rem 1rem 8rem;
    margin-top: 2rem;
}

@media (min-width: 769px) {
    .pg97-footer {
        padding-bottom: 2rem;
    }
}

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

.pg97-footer-desc {
    font-size: 1.2rem;
    color: var(--pg97-secondary);
    line-height: 1.6;
    max-width: 350px;
    margin: 0 auto;
}

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

.pg97-footer-link {
    font-size: 1.2rem;
    color: var(--pg97-text-light);
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pg97-footer-link:hover {
    background: var(--pg97-primary);
    color: var(--pg97-text-dark);
}

.pg97-footer-promo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.pg97-footer-promo-btn {
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--pg97-accent), #C71585);
    color: var(--pg97-text-light);
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg97-footer-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(176, 48, 96, 0.4);
}

.pg97-footer-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--pg97-secondary);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation (Mobile Only) */
.pg97-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(33, 47, 61, 0.98), var(--pg97-bg-dark));
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.3);
}

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

.pg97-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--pg97-secondary);
}

.pg97-nav-item:hover,
.pg97-nav-item.active {
    color: var(--pg97-primary);
}

.pg97-nav-item i {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
    transition: transform 0.3s ease;
}

.pg97-nav-item:hover i {
    transform: scale(1.1);
}

.pg97-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Card Styles */
.pg97-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pg97-card:hover {
    border-color: var(--pg97-primary);
    box-shadow: 0 4px 20px rgba(255, 191, 0, 0.15);
}

/* Badge Styles */
.pg97-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--pg97-accent);
    color: var(--pg97-text-light);
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}

/* Divider */
.pg97-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 1.5rem 0;
}

/* Responsive utilities */
@media (max-width: 430px) {
    .pg97-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .pg97-game-img {
        height: 45px;
    }

    .pg97-game-name {
        font-size: 0.8rem;
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .pg97-header-inner {
        max-width: 1200px;
        padding: 0 2rem;
    }

    .pg97-container {
        max-width: 1200px;
    }

    .pg97-menu-toggle {
        display: none;
    }

    .pg97-hero {
        height: 350px;
    }

    .pg97-game-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .pg97-game-img {
        height: 80px;
    }

    .pg97-game-name {
        font-size: 1.1rem;
    }
}

/* Desktop Navigation Links */
.pg97-desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .pg97-desktop-nav {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .pg97-desktop-nav-link {
        color: var(--pg97-text-light);
        font-size: 1.3rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .pg97-desktop-nav-link:hover {
        color: var(--pg97-primary);
    }
}
