/* RG777 Gaming Platform - Design Stylesheet
 * Prefix: gefc-
 * Theme: Warm Orange Cyan
 * Version: 1.0.0
 */

/* CSS Variables with gefc prefix */
:root {
    --gefc-primary: #FFB347; /* Sandy Brown */
    --gefc-secondary: #48D1CC; /* Medium Turquoise */
    --gefc-accent: #20B2AA; /* Light Sea Green */
    --gefc-highlight: #00B8D4; /* Deep Sky Blue */
    --gefc-dark: #212F3D; /* Dark Gunmetal */
    --gefc-darker: #1A252F;
    --gefc-text: #FFFFFF;
    --gefc-text-muted: #E8E8E8;
    --gefc-border: rgba(255, 179, 71, 0.2);
    --gefc-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --gefc-radius: 8px;
    --gefc-transition: all 0.3s ease;
}

/* 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;
    background-color: var(--gefc-dark);
    color: var(--gefc-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography with gefc prefix */
.gefc-h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gefc-primary), var(--gefc-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.gefc-h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--gefc-primary);
}

.gefc-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gefc-secondary);
}

/* Container */
.gefc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.gefc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--gefc-dark) 0%, rgba(33, 47, 61, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--gefc-transition);
    border-bottom: 2px solid var(--gefc-primary);
}

.gefc-header.scrolled {
    box-shadow: 0 4px 20px rgba(255, 179, 71, 0.3);
}

.gefc-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.gefc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gefc-text);
}

.gefc-logo-icon {
    width: 32px;
    height: 32px;
    color: var(--gefc-primary);
}

.gefc-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gefc-primary), var(--gefc-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gefc-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gefc-btn {
    padding: 8px 20px;
    border: none;
    border-radius: var(--gefc-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--gefc-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.gefc-btn-primary {
    background: linear-gradient(135deg, var(--gefc-primary), var(--gefc-secondary));
    color: var(--gefc-dark);
}

.gefc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.4);
}

.gefc-btn-secondary {
    background: transparent;
    color: var(--gefc-text);
    border: 2px solid var(--gefc-secondary);
}

.gefc-btn-secondary:hover {
    background: var(--gefc-secondary);
    color: var(--gefc-dark);
}

.gefc-menu-toggle {
    background: none;
    border: none;
    color: var(--gefc-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu */
.gefc-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--gefc-dark), var(--gefc-darker));
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.gefc-mobile-menu.active {
    right: 0;
}

.gefc-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.gefc-menu-overlay.active {
    display: block;
}

.gefc-menu-header {
    padding: 20px;
    border-bottom: 2px solid var(--gefc-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gefc-menu-close {
    background: none;
    border: none;
    color: var(--gefc-primary);
    font-size: 28px;
    cursor: pointer;
}

.gefc-menu-links {
    padding: 20px;
}

.gefc-menu-link {
    display: block;
    padding: 12px 15px;
    color: var(--gefc-text);
    text-decoration: none;
    border-radius: var(--gefc-radius);
    margin-bottom: 8px;
    transition: var(--gefc-transition);
    border-left: 3px solid transparent;
}

.gefc-menu-link:hover {
    background: rgba(255, 179, 71, 0.1);
    border-left-color: var(--gefc-primary);
    padding-left: 20px;
}

/* Mobile Bottom Navigation */
.gefc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(33, 47, 61, 0.98), var(--gefc-dark));
    border-top: 2px solid var(--gefc-primary);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(255, 179, 71, 0.3);
}

.gefc-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--gefc-transition);
    text-decoration: none;
    color: var(--gefc-text-muted);
    border-radius: 12px;
    position: relative;
}

.gefc-nav-item:hover {
    color: var(--gefc-primary);
    transform: translateY(-2px);
}

.gefc-nav-item.active {
    color: var(--gefc-secondary);
}

.gefc-nav-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--gefc-primary), var(--gefc-secondary));
    border-radius: 2px;
}

.gefc-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.gefc-nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* Carousel */
.gefc-carousel {
    position: relative;
    height: 400px;
    border-radius: var(--gefc-radius);
    overflow: hidden;
    margin: 80px 15px 30px;
    box-shadow: 0 10px 40px rgba(255, 179, 71, 0.2);
}

.gefc-carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gefc-carousel-slide.active {
    opacity: 1;
}

.gefc-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gefc-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(33, 47, 61, 0.9));
    padding: 30px 20px 20px;
}

.gefc-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.gefc-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--gefc-transition);
}

.gefc-carousel-dot.active {
    background: var(--gefc-primary);
    transform: scale(1.3);
}

/* Game Grid */
.gefc-game-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--gefc-border);
}

.gefc-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.gefc-game-card {
    background: linear-gradient(145deg, rgba(72, 209, 204, 0.1), rgba(32, 178, 170, 0.05));
    border-radius: var(--gefc-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--gefc-transition);
    border: 1px solid var(--gefc-border);
    text-decoration: none;
    color: var(--gefc-text);
}

.gefc-game-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 179, 71, 0.3);
    border-color: var(--gefc-primary);
}

.gefc-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-bottom: 2px solid var(--gefc-primary);
}

.gefc-game-name {
    padding: 8px 5px;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Sections */
.gefc-section {
    padding: 40px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.gefc-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gefc-feature-card {
    background: linear-gradient(145deg, rgba(255, 179, 71, 0.1), rgba(72, 209, 204, 0.05));
    border: 1px solid var(--gefc-border);
    border-radius: var(--gefc-radius);
    padding: 25px;
    transition: var(--gefc-transition);
}

.gefc-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 179, 71, 0.2);
    border-color: var(--gefc-secondary);
}

.gefc-feature-icon {
    font-size: 36px;
    color: var(--gefc-primary);
    margin-bottom: 15px;
}

/* Footer */
.gefc-footer {
    background: linear-gradient(180deg, var(--gefc-darker), #0D1117);
    padding: 40px 15px 100px;
    margin-top: 50px;
    border-top: 2px solid var(--gefc-primary);
}

.gefc-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.gefc-footer-section h4 {
    color: var(--gefc-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.gefc-footer-link {
    display: block;
    color: var(--gefc-text-muted);
    text-decoration: none;
    padding: 5px 0;
    transition: var(--gefc-transition);
}

.gefc-footer-link:hover {
    color: var(--gefc-secondary);
    padding-left: 10px;
}

.gefc-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 179, 71, 0.05);
    border-radius: var(--gefc-radius);
}

.gefc-partner-logo {
    width: 80px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--gefc-transition);
}

.gefc-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Utilities */
.gefc-text-center {
    text-align: center;
}

.gefc-text-gradient {
    background: linear-gradient(135deg, var(--gefc-primary), var(--gefc-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gefc-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gefc-primary), var(--gefc-secondary), transparent);
    margin: 30px 0;
    border-radius: 1px;
}

/* Toast Notification */
.gefc-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--gefc-primary), var(--gefc-secondary));
    color: var(--gefc-dark);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 179, 71, 0.4);
}

.gefc-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Back to Top */
.gefc-back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--gefc-primary), var(--gefc-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--gefc-transition);
    z-index: 900;
    color: var(--gefc-dark);
    box-shadow: 0 4px 15px rgba(255, 179, 71, 0.3);
}

.gefc-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.gefc-back-to-top:hover {
    transform: scale(1.1) rotate(360deg);
}

/* Animations */
@keyframes gefcfadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gefcpulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.gefc-animate {
    opacity: 0;
    transform: translateY(20px);
}

.gefc-animate.animated {
    animation: gefcfadeIn 0.6s forwards;
}

/* Responsive Design */
@media (min-width: 769px) {
    .gefc-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }

    .gefc-h1 {
        font-size: 2rem;
    }

    .gefc-h2 {
        font-size: 1.5rem;
    }

    .gefc-carousel {
        height: 300px;
    }

    .gefc-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .gefc-header-content {
        padding: 10px;
    }

    .gefc-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .gefc-logo-text {
        font-size: 1.2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gefc-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gefc-primary), var(--gefc-secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gefc-secondary), var(--gefc-primary));
}