/* Phkkk Gaming Platform CSS Theme */
/* Mobile-first responsive design with custom color palette */

/* CSS Variables for consistent theming */
:root {
    --gf8b8-primary: #C9C9FF;
    --gf8b8-secondary: #0C0C0C;
    --gf8b8-accent: #8470FF;
    --gf8b8-highlight: #FF8A80;
    --gf8b8-light: #E6E6FA;
    --gf8b8-gray: #E0E0E0;
    --gf8b8-text: #333333;
    --gf8b8-text-light: #666666;
    --gf8b8-white: #FFFFFF;
    --gf8b8-shadow: rgba(0, 0, 0, 0.1);
    --gf8b8-shadow-hover: rgba(132, 112, 255, 0.3);
    --gf8b8-gradient: linear-gradient(135deg, #C9C9FF 0%, #8470FF 100%);
    --gf8b8-border-radius: 12px;
    --gf8b8-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--gf8b8-text);
    background-color: var(--gf8b8-white);
    overflow-x: hidden;
}

/* Mobile-first responsive container */
.gf8b8-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header styles */
.gf8b8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gf8b8-gradient);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px var(--gf8b8-shadow);
}

.gf8b8-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    height: 60px;
}

.gf8b8-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--gf8b8-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gf8b8-logo i {
    font-size: 28px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.gf8b8-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gf8b8-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--gf8b8-border-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--gf8b8-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.gf8b8-btn-primary {
    background: var(--gf8b8-white);
    color: var(--gf8b8-accent);
}

.gf8b8-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gf8b8-shadow-hover);
}

.gf8b8-btn-secondary {
    background: transparent;
    color: var(--gf8b8-white);
    border: 2px solid var(--gf8b8-white);
}

.gf8b8-btn-secondary:hover {
    background: var(--gf8b8-white);
    color: var(--gf8b8-accent);
}

.gf8b8-menu-toggle {
    background: none;
    border: none;
    color: var(--gf8b8-white);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    transition: var(--gf8b8-transition);
}

.gf8b8-menu-toggle:hover {
    transform: scale(1.1);
}

/* Mobile menu */
.gf8b8-mobile-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background: var(--gf8b8-white);
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 20px var(--gf8b8-shadow);
    overflow-y: auto;
}

.gf8b8-mobile-menu.active {
    right: 0;
}

.gf8b8-menu-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--gf8b8-transition);
}

.gf8b8-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gf8b8-menu-list {
    list-style: none;
    padding: 20px 0;
}

.gf8b8-menu-item {
    border-bottom: 1px solid var(--gf8b8-gray);
}

.gf8b8-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--gf8b8-text);
    text-decoration: none;
    transition: var(--gf8b8-transition);
    font-weight: 500;
}

.gf8b8-menu-link:hover {
    background: var(--gf8b8-light);
    color: var(--gf8b8-accent);
    padding-left: 24px;
}

.gf8b8-menu-link i {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

/* Main content padding for fixed header */
.gf8b8-main {
    padding-top: 60px;
    padding-bottom: 80px; /* For mobile bottom nav */
}

/* Carousel styles */
.gf8b8-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--gf8b8-border-radius);
    margin: 20px 0;
    box-shadow: 0 10px 30px var(--gf8b8-shadow);
}

.gf8b8-carousel-slide {
    display: none;
    position: relative;
}

.gf8b8-carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gf8b8-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--gf8b8-white);
}

.gf8b8-carousel-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gf8b8-carousel-desc {
    font-size: 14px;
    opacity: 0.9;
}

.gf8b8-carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.gf8b8-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--gf8b8-transition);
}

.gf8b8-carousel-indicator.active {
    background: var(--gf8b8-white);
    width: 24px;
    border-radius: 4px;
}

/* Section styles */
.gf8b8-section {
    padding: 40px 0;
}

.gf8b8-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gf8b8-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gf8b8-section-title i {
    color: var(--gf8b8-accent);
    font-size: 28px;
}

/* Game grid */
.gf8b8-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.gf8b8-game-card {
    background: var(--gf8b8-white);
    border-radius: var(--gf8b8-border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--gf8b8-shadow);
    transition: var(--gf8b8-transition);
    cursor: pointer;
}

.gf8b8-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--gf8b8-shadow-hover);
}

.gf8b8-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: var(--gf8b8-transition);
}

.gf8b8-game-card:hover .gf8b8-game-image {
    transform: scale(1.05);
}

.gf8b8-game-info {
    padding: 12px;
}

.gf8b8-game-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gf8b8-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gf8b8-game-category {
    font-size: 12px;
    color: var(--gf8b8-text-light);
    text-transform: capitalize;
}

.gf8b8-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(132, 112, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--gf8b8-transition);
}

.gf8b8-game-card:hover .gf8b8-play-overlay {
    opacity: 1;
}

.gf8b8-play-btn {
    background: var(--gf8b8-white);
    color: var(--gf8b8-accent);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--gf8b8-transition);
}

.gf8b8-play-btn:hover {
    transform: scale(1.1);
}

/* Content modules */
.gf8b8-content-module {
    background: var(--gf8b8-light);
    border-radius: var(--gf8b8-border-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px var(--gf8b8-shadow);
}

.gf8b8-content-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gf8b8-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gf8b8-content-text {
    font-size: 14px;
    color: var(--gf8b8-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.gf8b8-content-link {
    color: var(--gf8b8-accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--gf8b8-transition);
}

.gf8b8-content-link:hover {
    color: var(--gf8b8-highlight);
    gap: 8px;
}

/* Partners section */
.gf8b8-partners {
    background: var(--gf8b8-secondary);
    padding: 40px 0;
    margin-top: 40px;
}

.gf8b8-partners-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gf8b8-white);
    text-align: center;
    margin-bottom: 24px;
}

.gf8b8-partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: center;
}

.gf8b8-partner-logo {
    width: 100%;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--gf8b8-transition);
}

.gf8b8-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Footer */
.gf8b8-footer {
    background: var(--gf8b8-secondary);
    color: var(--gf8b8-white);
    padding: 40px 0 20px;
    text-align: center;
}

.gf8b8-footer-content {
    margin-bottom: 24px;
}

.gf8b8-footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gf8b8-primary);
}

.gf8b8-footer-text {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

.gf8b8-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
}

.gf8b8-footer-link {
    color: var(--gf8b8-white);
    text-decoration: none;
    font-size: 14px;
    transition: var(--gf8b8-transition);
}

.gf8b8-footer-link:hover {
    color: var(--gf8b8-primary);
}

.gf8b8-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 12px;
    opacity: 0.6;
}

/* Scroll to top button */
.gf8b8-scroll-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gf8b8-gradient);
    color: var(--gf8b8-white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    transition: var(--gf8b8-transition);
    display: none;
    box-shadow: 0 5px 20px var(--gf8b8-shadow-hover);
}

.gf8b8-scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px var(--gf8b8-shadow-hover);
}

/* Mobile bottom navigation */
.gf8b8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gf8b8-white);
    border-top: 1px solid var(--gf8b8-gray);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding: 8px 0;
    box-shadow: 0 -5px 20px var(--gf8b8-shadow);
}

.gf8b8-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 44px;
    text-decoration: none;
    color: var(--gf8b8-text-light);
    transition: var(--gf8b8-transition);
    cursor: pointer;
}

.gf8b8-bottom-nav-item:hover,
.gf8b8-bottom-nav-item.active {
    color: var(--gf8b8-accent);
    transform: translateY(-2px);
}

.gf8b8-bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    transition: var(--gf8b8-transition);
}

.gf8b8-bottom-nav-item:hover .gf8b8-bottom-nav-icon {
    transform: scale(1.2);
}

.gf8b8-bottom-nav-text {
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(132, 112, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(132, 112, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(132, 112, 255, 0);
    }
}

/* Utility classes */
.gf8b8-text-center { text-align: center; }
.gf8b8-text-left { text-align: left; }
.gf8b8-text-right { text-align: right; }
.gf8b8-mb-20 { margin-bottom: 20px; }
.gf8b8-mt-20 { margin-top: 20px; }
.gf8b8-hidden { display: none; }
.gf8b8-flex { display: flex; }
.gf8b8-items-center { align-items: center; }
.gf8b8-justify-center { justify-content: center; }
.gf8b8-justify-between { justify-content: space-between; }

/* Responsive breakpoints */
@media (min-width: 769px) {
    .gf8b8-container {
        max-width: 1200px;
        padding: 0 20px;
    }

    .gf8b8-main {
        padding-bottom: 0;
    }

    .gf8b8-bottom-nav {
        display: none;
    }

    .gf8b8-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gf8b8-carousel-slide img {
        height: 400px;
    }

    .gf8b8-carousel-title {
        font-size: 32px;
    }

    .gf8b8-carousel-desc {
        font-size: 16px;
    }

    .gf8b8-partners-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .gf8b8-menu-toggle {
        display: none;
    }

    .gf8b8-desktop-nav {
        display: flex;
        align-items: center;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .gf8b8-desktop-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .gf8b8-game-grid {
        gap: 12px;
    }

    .gf8b8-game-image {
        height: 100px;
    }

    .gf8b8-section-title {
        font-size: 20px;
    }

    .gf8b8-carousel-slide img {
        height: 160px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --gf8b8-text: #E0E0E0;
        --gf8b8-text-light: #B0B0B0;
        --gf8b8-white: #1A1A1A;
        --gf8b8-light: #2A2A2A;
        --gf8b8-gray: #404040;
        --gf8b8-shadow: rgba(0, 0, 0, 0.3);
    }

    body {
        background-color: var(--gf8b8-white);
    }

    .gf8b8-mobile-menu {
        background: var(--gf8b8-white);
    }
}