/* sg777 pro Theme CSS - All classes use prefix 'geda-' */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #ffffff;
    background-color: #0E1621;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CSS Variables for theme colors */
:root {
    --geda-primary: #00CED1;
    --geda-secondary: #D4AF37;
    --geda-accent: #0097A7;
    --geda-dark: #0E1621;
    --geda-light: #BDB76B;
    --geda-text: #ffffff;
    --geda-text-secondary: #BDB76B;
    --geda-bg: #0E1621;
    --geda-bg-light: #1a2332;
    --geda-border: rgba(0, 206, 209, 0.3);
    --geda-gradient: linear-gradient(135deg, #00CED1 0%, #0097A7 100%);
    --geda-shadow: 0 2px 10px rgba(0, 206, 209, 0.2);
    --geda-radius: 8px;
    --geda-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Utility classes */
.geda-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.geda-wrapper {
    width: 100%;
    overflow: hidden;
}

.geda-grid {
    display: grid;
    gap: 1.5rem;
}

.geda-flex {
    display: flex;
    align-items: center;
}

.geda-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.geda-text-center {
    text-align: center;
}

.geda-text-primary {
    color: var(--geda-primary);
}

.geda-text-secondary {
    color: var(--geda-secondary);
}

.geda-text-accent {
    color: var(--geda-accent);
}

.geda-bg-primary {
    background-color: var(--geda-primary);
}

.geda-bg-secondary {
    background-color: var(--geda-secondary);
}

.geda-bg-dark {
    background-color: var(--geda-dark);
}

.geda-bg-light {
    background-color: var(--geda-bg-light);
}

/* Typography */
.geda-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--geda-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.geda-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--geda-text);
}

.geda-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--geda-text-secondary);
    margin-bottom: 1rem;
}

/* Buttons */
.geda-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.4rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--geda-radius);
    cursor: pointer;
    transition: var(--geda-transition);
    min-height: 4.4rem;
    white-space: nowrap;
}

.geda-btn-primary {
    background: var(--geda-gradient);
    color: white;
    box-shadow: var(--geda-shadow);
}

.geda-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 206, 209, 0.4);
}

.geda-btn-secondary {
    background-color: var(--geda-secondary);
    color: var(--geda-dark);
}

.geda-btn-secondary:hover {
    background-color: #e6c158;
    transform: translateY(-2px);
}

.geda-btn-outline {
    background-color: transparent;
    color: var(--geda-primary);
    border: 2px solid var(--geda-primary);
}

.geda-btn-outline:hover {
    background-color: var(--geda-primary);
    color: white;
}

/* Header */
.geda-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(14, 22, 33, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--geda-border);
    transition: var(--geda-transition);
}

.geda-header-container {
    padding: 1rem 1.5rem;
}

.geda-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--geda-text);
    text-decoration: none;
}

.geda-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    background: var(--geda-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
}

.geda-nav-actions {
    display: flex;
    gap: 1rem;
}

.geda-menu-btn {
    background: none;
    border: none;
    color: var(--geda-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 4.4rem;
    min-height: 4.4rem;
    border-radius: var(--geda-radius);
    transition: var(--geda-transition);
}

.geda-menu-btn:hover {
    background-color: var(--geda-bg-light);
}

/* Mobile Menu */
.geda-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--geda-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--geda-border);
}

.geda-menu-active {
    right: 0;
}

.geda-menu-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--geda-border);
}

.geda-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--geda-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--geda-radius);
    transition: var(--geda-transition);
}

.geda-menu-close:hover {
    background-color: var(--geda-bg-light);
}

.geda-menu-nav {
    padding: 1.5rem 0;
}

.geda-menu-nav-item {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--geda-text);
    text-decoration: none;
    font-size: 1.6rem;
    transition: var(--geda-transition);
    border-left: 3px solid transparent;
}

.geda-menu-nav-item:hover,
.geda-nav-active {
    background-color: var(--geda-bg-light);
    border-left-color: var(--geda-primary);
    color: var(--geda-primary);
}

.geda-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--geda-transition);
}

.geda-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.geda-main {
    padding-top: 7rem;
    padding-bottom: 8rem;
    min-height: 100vh;
}

/* Carousel */
.geda-carousel {
    position: relative;
    margin-bottom: 3rem;
    border-radius: var(--geda-radius);
    overflow: hidden;
    box-shadow: var(--geda-shadow);
}

.geda-carousel-container {
    position: relative;
    height: 20rem;
    overflow: hidden;
}

.geda-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.geda-slide-active {
    opacity: 1;
}

.geda-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.geda-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.geda-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--geda-transition);
}

.geda-dot-active {
    background-color: var(--geda-primary);
    width: 2rem;
    border-radius: 0.5rem;
}

/* Game Grid */
.geda-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.geda-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--geda-transition);
}

.geda-game-item:hover {
    transform: translateY(-3px);
}

.geda-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--geda-radius);
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: var(--geda-shadow);
    transition: var(--geda-transition);
}

.geda-game-icon:hover {
    box-shadow: 0 4px 20px rgba(0, 206, 209, 0.4);
}

.geda-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.geda-game-name {
    font-size: 1.1rem;
    color: var(--geda-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cards */
.geda-card {
    background-color: var(--geda-bg-light);
    border-radius: var(--geda-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--geda-border);
    transition: var(--geda-transition);
}

.geda-card:hover {
    border-color: var(--geda-primary);
    box-shadow: var(--geda-shadow);
}

/* Bottom Navigation */
.geda-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--geda-dark);
    border-top: 1px solid var(--geda-border);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6.4rem;
}

.geda-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5.4rem;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--geda-text-secondary);
    transition: var(--geda-transition);
    border-radius: var(--geda-radius);
}

.geda-bottom-nav-item:hover,
.geda-bottom-nav-active {
    color: var(--geda-primary);
    background-color: rgba(0, 206, 209, 0.1);
    transform: translateY(-2px);
}

.geda-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.geda-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.geda-footer {
    padding: 3rem 0 2rem;
    background-color: var(--geda-bg-light);
    border-top: 1px solid var(--geda-border);
}

.geda-footer-content {
    margin-bottom: 2rem;
}

.geda-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.geda-footer-link {
    color: var(--geda-text-secondary);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--geda-transition);
}

.geda-footer-link:hover {
    color: var(--geda-primary);
}

.geda-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.geda-partner-icon {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--geda-transition);
}

.geda-partner-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.geda-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--geda-text-secondary);
    padding-top: 2rem;
    border-top: 1px solid var(--geda-border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .geda-main {
        padding-bottom: 8rem;
    }
}

@media (min-width: 769px) {
    .geda-bottom-nav {
        display: none;
    }

    .geda-main {
        padding-bottom: 3rem;
    }

    .geda-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    }
}

/* Animations */
@keyframes geda-fadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.geda-fade-in {
    animation: geda-fadeIn 0.6s ease-out;
}

/* Loading states */
.geda-loading {
    position: relative;
    overflow: hidden;
}

.geda-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 206, 209, 0.3), transparent);
    animation: geda-loading 1.5s infinite;
}

@keyframes geda-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.geda-btn:focus,
.geda-menu-btn:focus,
.geda-dot:focus,
.geda-bottom-nav-item:focus {
    outline: 2px solid var(--geda-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --geda-border: rgba(0, 206, 209, 0.6);
        --geda-text-secondary: #ffffff;
    }
}