/* 7game5 CSS Styles */
/* All classes use prefix: pgef- */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-size: 62.5%; /* 1rem = 10px */
    --pgef-primary: #00695C;
    --pgef-secondary: #26A69A;
    --pgef-accent: #FFCC02;
    --pgef-dark: #1C2833;
    --pgef-light: #48D1CC;
    --pgef-white: #ffffff;
    --pgef-black: #000000;
    --pgef-gray: #666666;
    --pgef-light-gray: #f5f5f5;
    --pgef-border: #e0e0e0;
    --pgef-shadow: rgba(0, 0, 0, 0.1);
    --pgef-danger: #e74c3c;
    --pgef-success: #27ae60;
    --pgef-warning: #f39c12;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--pgef-dark);
    background-color: var(--pgef-white);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Typography */
.pgef-h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--pgef-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.pgef-h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--pgef-primary);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.pgef-h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--pgef-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.pgef-text {
    font-size: 1.6rem;
    color: var(--pgef-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pgef-text-small {
    font-size: 1.4rem;
    color: var(--pgef-gray);
    line-height: 1.5;
}

.pgef-text-large {
    font-size: 1.8rem;
    color: var(--pgef-dark);
    line-height: 1.7;
}

/* Container and Layout */
.pgef-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.pgef-main {
    min-height: calc(100vh - 120px);
    padding-bottom: 8rem; /* Space for bottom nav on mobile */
}

/* Header */
.pgef-header {
    background: linear-gradient(135deg, var(--pgef-primary) 0%, var(--pgef-secondary) 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--pgef-shadow);
}

.pgef-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pgef-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--pgef-white);
}

.pgef-logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    background: var(--pgef-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--pgef-dark);
}

.pgef-logo-text {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--pgef-white);
}

.pgef-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pgef-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}

.pgef-btn-primary {
    background: var(--pgef-accent);
    color: var(--pgef-dark);
}

.pgef-btn-primary:hover {
    background: #e6b802;
    transform: translateY(-2px);
}

.pgef-btn-secondary {
    background: transparent;
    color: var(--pgef-white);
    border: 2px solid var(--pgef-white);
}

.pgef-btn-secondary:hover {
    background: var(--pgef-white);
    color: var(--pgef-primary);
}

.pgef-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.pgef-hamburger span {
    width: 30px;
    height: 3px;
    background: var(--pgef-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Navigation */
.pgef-nav {
    background: var(--pgef-white);
    border-bottom: 1px solid var(--pgef-border);
    padding: 1rem 0;
    position: sticky;
    top: 70px;
    z-index: 999;
}

.pgef-nav-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pgef-nav-item {
    position: relative;
}

.pgef-nav-link {
    color: var(--pgef-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: block;
}

.pgef-nav-link:hover,
.pgef-nav-link.active {
    background: var(--pgef-light);
    color: var(--pgef-primary);
}

/* Mobile Menu */
#site45a-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--pgef-white);
    box-shadow: -5px 0 15px var(--pgef-shadow);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

#site45a-mobile-menu.active {
    right: 0;
}

#site45a-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

#site45a-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pgef-mobile-menu-header {
    background: var(--pgef-primary);
    color: var(--pgef-white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pgef-mobile-menu-close {
    background: none;
    border: none;
    color: var(--pgef-white);
    font-size: 2.4rem;
    cursor: pointer;
}

.pgef-mobile-menu-content {
    padding: 2rem 1.5rem;
}

.pgef-mobile-menu-item {
    margin-bottom: 1rem;
}

.pgef-mobile-menu-link {
    color: var(--pgef-dark);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    padding: 1rem 0;
    display: block;
    border-bottom: 1px solid var(--pgef-border);
    transition: color 0.3s ease;
}

.pgef-mobile-menu-link:hover {
    color: var(--pgef-primary);
}

/* Carousel */
.pgef-carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem;
    margin: 2rem 0;
}

.pgef-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pgef-carousel-slide.active {
    opacity: 1;
}

.pgef-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgef-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--pgef-white);
    padding: 2rem 1.5rem 1.5rem;
}

.pgef-carousel-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pgef-carousel-description {
    font-size: 1.4rem;
    opacity: 0.9;
}

.pgef-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.pgef-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgef-carousel-dot.active {
    background: var(--pgef-accent);
    transform: scale(1.2);
}

/* Game Grid */
.pgef-games-section {
    padding: 2rem 0;
}

.pgef-games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pgef-category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pgef-category-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--pgef-border);
    background: var(--pgef-white);
    color: var(--pgef-gray);
    border-radius: 2rem;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgef-category-btn:hover,
.pgef-category-btn.active {
    background: var(--pgef-primary);
    color: var(--pgef-white);
    border-color: var(--pgef-primary);
}

.pgef-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.pgef-game-item {
    background: var(--pgef-white);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px var(--pgef-shadow);
}

.pgef-game-item:hover {
    transform: translateY(-5px);
    border-color: var(--pgef-accent);
    box-shadow: 0 5px 20px var(--pgef-shadow);
}

.pgef-game-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.pgef-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgef-game-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--pgef-dark);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Sections */
.pgef-section {
    padding: 3rem 0;
}

.pgef-section-light {
    background: var(--pgef-light-gray);
}

.pgef-section-dark {
    background: var(--pgef-dark);
    color: var(--pgef-white);
}

.pgef-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pgef-section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--pgef-primary);
    margin-bottom: 1rem;
}

.pgef-section-subtitle {
    font-size: 1.6rem;
    color: var(--pgef-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.pgef-card {
    background: var(--pgef-white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px var(--pgef-shadow);
    transition: all 0.3s ease;
}

.pgef-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--pgef-shadow);
}

.pgef-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pgef-card-icon {
    width: 40px;
    height: 40px;
    background: var(--pgef-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pgef-white);
    margin-right: 1rem;
    font-size: 1.8rem;
}

.pgef-card-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--pgef-primary);
    margin: 0;
}

.pgef-card-content {
    color: var(--pgef-gray);
    line-height: 1.6;
}

/* Buttons */
.pgef-btn-large {
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    min-width: 120px;
}

.pgef-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.pgef-btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.pgef-footer {
    background: var(--pgef-dark);
    color: var(--pgef-white);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.pgef-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pgef-footer-section h3 {
    color: var(--pgef-accent);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.pgef-footer-links {
    list-style: none;
    padding: 0;
}

.pgef-footer-links li {
    margin-bottom: 0.5rem;
}

.pgef-footer-links a {
    color: var(--pgef-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pgef-footer-links a:hover {
    color: var(--pgef-accent);
}

.pgef-footer-bottom {
    border-top: 1px solid var(--pgef-gray);
    padding-top: 2rem;
    text-align: center;
    color: var(--pgef-light);
    font-size: 1.4rem;
}

/* Partners */
.pgef-partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.pgef-partner-logo {
    width: 80px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2);
    transition: all 0.3s ease;
}

.pgef-partner-logo:hover {
    filter: grayscale(0%) brightness(1);
}

/* Mobile Bottom Navigation */
.pgef-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pgef-primary) 0%, var(--pgef-secondary) 100%);
    height: 6rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -5px 15px var(--pgef-shadow);
    border-top: 2px solid var(--pgef-accent);
}

.pgef-bottom-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;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--pgef-white);
    opacity: 0.7;
}

.pgef-bottom-nav-item:hover,
.pgef-bottom-nav-item.active {
    opacity: 1;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

.pgef-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.pgef-bottom-nav-item.active .pgef-bottom-nav-icon {
    color: var(--pgef-accent);
    transform: scale(1.1);
}

.pgef-bottom-nav-label {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pgef-main {
        padding-bottom: 8rem; /* Space for bottom nav */
    }

    .pgef-hamburger {
        display: flex;
    }

    .pgef-header-actions {
        display: none;
    }

    .pgef-nav {
        display: none;
    }

    .pgef-games-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.8rem;
    }

    .pgef-game-icon {
        width: 40px;
        height: 40px;
    }

    .pgef-game-name {
        font-size: 1rem;
    }

    .pgef-carousel-container {
        height: 160px;
    }

    .pgef-h1 {
        font-size: 2.8rem;
    }

    .pgef-h2 {
        font-size: 2.2rem;
    }

    .pgef-section-title {
        font-size: 2.4rem;
    }

    .pgef-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .pgef-bottom-nav {
        display: none;
    }

    .pgef-main {
        padding-bottom: 0;
    }

    .pgef-container {
        max-width: 1200px;
    }

    .pgef-games-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .pgef-carousel-container {
        height: 250px;
    }
}

/* Utility Classes */
.pgef-text-center {
    text-align: center;
}

.pgef-text-left {
    text-align: left;
}

.pgef-text-right {
    text-align: right;
}

.pgef-mb-1 {
    margin-bottom: 1rem;
}

.pgef-mb-2 {
    margin-bottom: 2rem;
}

.pgef-mb-3 {
    margin-bottom: 3rem;
}

.pgef-mt-1 {
    margin-top: 1rem;
}

.pgef-mt-2 {
    margin-top: 2rem;
}

.pgef-mt-3 {
    margin-top: 3rem;
}

.pgef-p-1 {
    padding: 1rem;
}

.pgef-p-2 {
    padding: 2rem;
}

.pgef-p-3 {
    padding: 3rem;
}

.pgef-hidden {
    display: none;
}

.pgef-visible {
    display: block;
}

.pgef-flex {
    display: flex;
}

.pgef-grid {
    display: grid;
}

.pgef-inline {
    display: inline;
}

.pgef-inline-block {
    display: inline-block;
}

/* Loading States */
.pgef-loading {
    position: relative;
    pointer-events: none;
}

.pgef-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--pgef-border);
    border-top: 2px solid var(--pgef-primary);
    border-radius: 50%;
    animation: pgef-spin 1s linear infinite;
}

@keyframes pgef-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Copy Success Message */
.pgef-copy-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--pgef-success);
    color: var(--pgef-white);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px var(--pgef-shadow);
}

/* Form Styles */
.pgef-form-group {
    margin-bottom: 1.5rem;
}

.pgef-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--pgef-dark);
}

.pgef-form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--pgef-border);
    border-radius: 0.5rem;
    font-size: 1.6rem;
    transition: border-color 0.3s ease;
}

.pgef-form-input:focus {
    outline: none;
    border-color: var(--pgef-primary);
}

.pgef-form-input.error {
    border-color: var(--pgef-danger);
}

/* Search Box */
.pgef-search-box {
    position: relative;
    margin-bottom: 2rem;
}

.pgef-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 4rem;
    border: 2px solid var(--pgef-border);
    border-radius: 2rem;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.pgef-search-input:focus {
    outline: none;
    border-color: var(--pgef-primary);
    box-shadow: 0 0 0 3px rgba(0, 105, 92, 0.1);
}

.pgef-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pgef-gray);
    font-size: 1.8rem;
}

/* Animations */
@keyframes pgef-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pgef-fade-in {
    animation: pgef-fadeIn 0.6s ease-out;
}

@keyframes pgef-slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.pgef-slide-in {
    animation: pgef-slideIn 0.3s ease-out;
}

/* Accessibility */
.pgef-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 for keyboard navigation */
.pgef-btn:focus,
.pgef-nav-link:focus,
.pgef-category-btn:focus,
.pgef-game-item:focus,
.pgef-bottom-nav-item:focus {
    outline: 2px solid var(--pgef-accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --pgef-shadow: rgba(0, 0, 0, 0.3);
        --pgef-border: #333333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}