/**
 * Desk Game PH - Layout Stylesheet
 * Prefix: g86f-
 * Colors: #FFB74D (light orange), #FF9500 (deep orange), #2E4057 (dark blue-gray)
 */

/* CSS Variables */
:root {
    --g86f-primary: #FF9500;
    --g86f-secondary: #FFB74D;
    --g86f-bg-dark: #2E4057;
    --g86f-bg-light: #1a2744;
    --g86f-text-light: #FFB74D;
    --g86f-text-white: #ffffff;
    --g86f-border: rgba(255, 183, 77, 0.3);
    --g86f-shadow: rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--g86f-bg-dark);
    color: var(--g86f-text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.g86f-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--g86f-bg-dark) 0%, var(--g86f-bg-light) 100%);
    border-bottom: 2px solid var(--g86f-primary);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px var(--g86f-shadow);
}

.g86f-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--g86f-primary);
}

.g86f-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.g86f-nav-buttons {
    display: flex;
    gap: 12px;
}

.g86f-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.g86f-btn-primary {
    background: linear-gradient(135deg, var(--g86f-primary) 0%, var(--g86f-secondary) 100%);
    color: var(--g86f-bg-dark);
}

.g86f-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4);
}

.g86f-btn-secondary {
    background: transparent;
    color: var(--g86f-text-light);
    border: 2px solid var(--g86f-primary);
}

.g86f-btn-secondary:hover {
    background: var(--g86f-primary);
    color: var(--g86f-bg-dark);
}

/* Mobile Menu Toggle */
.g86f-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--g86f-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu Overlay */
.g86f-menu-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;
}

.g86f-menu-overlay.g86f-active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.g86f-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--g86f-bg-dark);
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    transition: right 0.3s ease;
    border-left: 2px solid var(--g86f-primary);
}

.g86f-mobile-menu.g86f-active {
    right: 0;
}

.g86f-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--g86f-text-light);
    font-size: 28px;
    cursor: pointer;
}

.g86f-mobile-menu ul {
    list-style: none;
    margin-top: 50px;
}

.g86f-mobile-menu li {
    margin: 15px 0;
}

.g86f-mobile-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--g86f-text-white);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.g86f-mobile-menu a:hover {
    background: var(--g86f-primary);
    color: var(--g86f-bg-dark);
}

/* Main Content */
main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.g86f-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-bottom: 3px solid var(--g86f-primary);
}

.g86f-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.g86f-slide.g86f-active {
    opacity: 1;
}

.g86f-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g86f-slide-content {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--g86f-text-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.g86f-slide-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--g86f-secondary);
}

/* Section */
.g86f-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.g86f-section-title {
    font-size: 28px;
    color: var(--g86f-primary);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.g86f-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--g86f-primary);
}

/* Game Grid */
.g86f-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.g86f-game-card {
    background: var(--g86f-bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.g86f-game-card:hover {
    transform: translateY(-5px);
    border-color: var(--g86f-primary);
    box-shadow: 0 8px 20px rgba(255, 149, 0, 0.3);
}

.g86f-game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.g86f-game-card-info {
    padding: 12px;
}

.g86f-game-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--g86f-text-light);
    text-align: center;
}

/* Content Blocks */
.g86f-content-block {
    background: var(--g86f-bg-light);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid var(--g86f-primary);
}

.g86f-content-block h3 {
    color: var(--g86f-primary);
    font-size: 24px;
    margin-bottom: 15px;
}

.g86f-content-block p {
    color: var(--g86f-text-white);
    line-height: 1.8;
    margin-bottom: 15px;
}

.g86f-content-block a {
    color: var(--g86f-secondary);
    text-decoration: underline;
}

.g86f-content-block a:hover {
    color: var(--g86f-primary);
}

/* Feature List */
.g86f-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.g86f-feature-item {
    background: var(--g86f-bg-light);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--g86f-border);
    transition: all 0.3s ease;
}

.g86f-feature-item:hover {
    border-color: var(--g86f-primary);
    box-shadow: 0 4px 15px var(--g86f-shadow);
}

.g86f-feature-item h4 {
    color: var(--g86f-primary);
    font-size: 18px;
    margin-bottom: 10px;
}

/* Footer */
.g86f-footer {
    background: var(--g86f-bg-light);
    border-top: 3px solid var(--g86f-primary);
    padding: 40px 20px;
    margin-top: 50px;
}

.g86f-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.g86f-footer-links a {
    color: var(--g86f-text-light);
    transition: color 0.3s ease;
}

.g86f-footer-links a:hover {
    color: var(--g86f-primary);
}

.g86f-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.g86f-partners img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

.g86f-partners img:hover {
    filter: brightness(1);
    transform: scale(1.1);
}

.g86f-copyright {
    text-align: center;
    color: var(--g86f-text-light);
    margin-top: 20px;
    font-size: 14px;
}

/* Bottom Navigation */
.g86f-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g86f-bg-dark) 0%, #1a2744 100%);
    border-top: 2px solid var(--g86f-primary);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px var(--g86f-shadow);
}

.g86f-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 5px;
    color: var(--g86f-text-light);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.g86f-nav-item:hover {
    color: var(--g86f-primary);
    background: rgba(255, 149, 0, 0.1);
}

.g86f-nav-item i,
.g86f-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 3px;
}

.g86f-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .g86f-menu-toggle {
        display: none;
    }

    .g86f-mobile-menu,
    .g86f-menu-overlay {
        display: none;
    }

    .g86f-bottom-nav {
        display: none;
    }

    .g86f-carousel {
        height: 500px;
    }

    .g86f-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .g86f-nav-buttons {
        display: none;
    }

    .g86f-menu-toggle {
        display: block;
    }

    .g86f-carousel {
        height: 300px;
    }

    .g86f-slide-content h2 {
        font-size: 24px;
    }

    .g86f-section {
        padding: 30px 15px;
    }

    .g86f-section-title {
        font-size: 24px;
    }

    .g86f-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .g86f-content-block {
        padding: 20px;
    }

    .g86f-feature-list {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.g86f-text-center {
    text-align: center;
}

.g86f-mt-20 {
    margin-top: 20px;
}

.g86f-mb-20 {
    margin-bottom: 20px;
}

.g86f-hidden {
    display: none;
}

/* Body class when menu is open */
body.g86f-menu-open {
    overflow: hidden;
}
