/* kkkkph777 Theme Styles */
/* Mobile-first responsive design for Philippine gaming platform */

/* CSS Variables */
:root {
    --g31f-primary: #333333;
    --g31f-secondary: #BF360C;
    --g31f-accent: #D3D3D3;
    --g31f-highlight: #9400D3;
    --g31f-gold: #FFCC02;
    --g31f-light: #F8F8FF;
    --g31f-dark: #1a1a1a;
    --g31f-success: #4CAF50;
    --g31f-error: #f44336;
    --g31f-warning: #ff9800;
    --g31f-info: #2196F3;
    --g31f-border: #e0e0e0;
    --g31f-shadow: rgba(0, 0, 0, 0.1);
    --g31f-radius: 8px;
    --g31f-transition: all 0.3s ease;
}

/* 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;
    font-size: 14px;
    line-height: 1.6;
    color: var(--g31f-primary);
    background-color: var(--g31f-light);
    overflow-x: hidden;
}

body.mobile {
    padding-bottom: 80px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--g31f-transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--g31f-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Utility Classes */
.g31f-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.g31f-flex {
    display: flex;
    align-items: center;
}

.g31f-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g31f-text-center {
    text-align: center;
}

.g31f-text-primary {
    color: var(--g31f-primary);
}

.g31f-text-secondary {
    color: var(--g31f-secondary);
}

.g31f-text-highlight {
    color: var(--g31f-highlight);
}

.g31f-text-gold {
    color: var(--g31f-gold);
}

.g31f-bg-primary {
    background-color: var(--g31f-primary);
}

.g31f-bg-secondary {
    background-color: var(--g31f-secondary);
}

.g31f-bg-light {
    background-color: var(--g31f-light);
}

.g31f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--g31f-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--g31f-transition);
    cursor: pointer;
    white-space: nowrap;
}

.g31f-btn-primary {
    background: linear-gradient(135deg, var(--g31f-secondary), var(--g31f-highlight));
    color: white;
    box-shadow: 0 4px 15px rgba(191, 54, 12, 0.3);
}

.g31f-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 54, 12, 0.4);
}

.g31f-btn-outline {
    border: 2px solid var(--g31f-secondary);
    color: var(--g31f-secondary);
    background: transparent;
}

.g31f-btn-outline:hover {
    background: var(--g31f-secondary);
    color: white;
}

/* Header */
.g31f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--g31f-primary), var(--g31f-dark));
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--g31f-shadow);
}

.g31f-header-content {
    padding: 15px;
}

.g31f-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--g31f-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.g31f-nav {
    display: none;
}

.g31f-header-actions {
    display: flex;
    gap: 10px;
}

.g31f-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    padding: 0;
}

.g31f-menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--g31f-transition);
}

.g31f-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.g31f-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.g31f-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.g31f-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--g31f-primary);
    color: white;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.g31f-mobile-menu.active {
    right: 0;
}

.g31f-menu-header {
    padding: 20px;
    background: var(--g31f-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g31f-menu-close {
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.g31f-menu-nav {
    padding: 20px 0;
}

.g31f-menu-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g31f-menu-nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    transition: var(--g31f-transition);
}

.g31f-menu-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--g31f-gold);
}

.g31f-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--g31f-transition);
}

.g31f-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.g31f-main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Carousel */
.g31f-carousel {
    position: relative;
    overflow: hidden;
    background: var(--g31f-dark);
    border-radius: 0 0 var(--g31f-radius) var(--g31f-radius);
}

.g31f-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.g31f-slide {
    flex: 0 0 100%;
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g31f-slide-content {
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--g31f-radius);
    max-width: 90%;
}

.g31f-slide-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--g31f-gold);
}

.g31f-slide-text {
    font-size: 14px;
    margin-bottom: 20px;
}

.g31f-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.g31f-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--g31f-transition);
}

.g31f-indicator.active {
    background: var(--g31f-gold);
    width: 30px;
    border-radius: 5px;
}

/* Game Sections */
.g31f-games-section {
    padding: 40px 0;
}

.g31f-section-header {
    margin-bottom: 30px;
    text-align: center;
}

.g31f-section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--g31f-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.g31f-section-subtitle {
    font-size: 16px;
    color: var(--g31f-accent);
}

/* Game Filters */
.g31f-game-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.g31f-filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--g31f-border);
    border-radius: 25px;
    background: white;
    color: var(--g31f-accent);
    font-weight: 600;
    transition: var(--g31f-transition);
}

.g31f-filter-btn:hover,
.g31f-filter-btn.active {
    background: var(--g31f-secondary);
    color: white;
    border-color: var(--g31f-secondary);
}

/* Game Grid */
.g31f-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.g31f-game-item {
    background: white;
    border-radius: var(--g31f-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px var(--g31f-shadow);
    transition: var(--g31f-transition);
    cursor: pointer;
}

.g31f-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--g31f-shadow);
}

.g31f-game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.g31f-game-info {
    padding: 15px;
    text-align: center;
}

.g31f-game-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--g31f-primary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g31f-game-category {
    font-size: 12px;
    color: var(--g31f-accent);
    text-transform: uppercase;
}

/* Content Modules */
.g31f-content-module {
    background: white;
    border-radius: var(--g31f-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px var(--g31f-shadow);
}

.g31f-module-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--g31f-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.g31f-module-content {
    color: var(--g31f-accent);
    line-height: 1.8;
}

.g31f-module-content p {
    margin-bottom: 15px;
}

.g31f-module-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--g31f-secondary);
    margin: 20px 0 10px;
}

.g31f-module-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.g31f-module-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.g31f-module-content li::before {
    content: '•';
    color: var(--g31f-secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Partners Section */
.g31f-partners {
    background: var(--g31f-light);
    padding: 40px 0;
    margin-top: 40px;
}

.g31f-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    align-items: center;
}

.g31f-partner-item {
    background: white;
    padding: 15px;
    border-radius: var(--g31f-radius);
    box-shadow: 0 2px 5px var(--g31f-shadow);
    text-align: center;
    transition: var(--g31f-transition);
}

.g31f-partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--g31f-shadow);
}

.g31f-partner-logo {
    width: 80px;
    height: 40px;
    object-fit: contain;
    margin: 0 auto;
}

/* Bottom Navigation */
.g31f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--g31f-primary), var(--g31f-dark));
    box-shadow: 0 -2px 10px var(--g31f-shadow);
    z-index: 1000;
    display: none;
}

.g31f-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding: 0 10px;
}

.g31f-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--g31f-transition);
    cursor: pointer;
    border: none;
    background: none;
}

.g31f-nav-item:hover,
.g31f-nav-item.active {
    color: var(--g31f-gold);
    transform: translateY(-2px);
}

.g31f-nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.g31f-nav-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Footer */
.g31f-footer {
    background: var(--g31f-dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.g31f-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.g31f-footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--g31f-gold);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.g31f-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.g31f-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--g31f-transition);
}

.g31f-footer-links a:hover {
    color: var(--g31f-gold);
    padding-left: 5px;
}

.g31f-footer-bottom {
    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: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .g31f-bottom-nav {
        display: block;
    }

    .g31f-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .g31f-game-image {
        height: 120px;
    }

    .g31f-section-title {
        font-size: 24px;
    }

    .g31f-slide {
        height: 180px;
    }

    .g31f-slide-title {
        font-size: 20px;
    }

    .g31f-content-module {
        padding: 20px;
    }
}

@media (min-width: 769px) {
    .g31f-header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .g31f-nav {
        display: flex;
        gap: 30px;
    }

    .g31f-nav a {
        color: white;
        font-weight: 600;
        transition: var(--g31f-transition);
        position: relative;
    }

    .g31f-nav a:hover {
        color: var(--g31f-gold);
    }

    .g31f-nav a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--g31f-gold);
        transition: width 0.3s ease;
    }

    .g31f-nav a:hover::after {
        width: 100%;
    }

    .g31f-menu-toggle {
        display: none;
    }

    .g31f-slide {
        height: 300px;
    }

    .g31f-slide-title {
        font-size: 36px;
    }

    .g31f-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .g31f-game-image {
        height: 180px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.g31f-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Loading */
.g31f-loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.g31f-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(191, 54, 12, 0.3);
    border-top-color: var(--g31f-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}