/**
 * Table Games Online - Layout Styles
 * @description Main stylesheet for tablegamesonline.club
 * @version 1.0.0
 * Prefix: g125-
 */

/* CSS Variables - Color Palette */
:root {
    --g125-primary: #D4AF37;
    --g125-secondary: #B8860B;
    --g125-accent: #BDB76B;
    --g125-bg-dark: #2C3E50;
    --g125-bg-darker: #1a252f;
    --g125-text-light: #FFFFFF;
    --g125-text-muted: #bdc3c7;
    --g125-shadow: rgba(0, 0, 0, 0.3);
    --g125-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #B8860B 50%, #BDB76B 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--g125-bg-dark);
    color: var(--g125-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.g125-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g125-bg-darker) 0%, rgba(44, 62, 80, 0.95) 100%);
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--g125-primary);
}

.g125-header.g125-scrolled {
    background: rgba(26, 37, 47, 0.98);
    box-shadow: 0 4px 20px var(--g125-shadow);
}

.g125-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.g125-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.g125-logo img {
    height: 40px;
    width: auto;
}

.g125-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--g125-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g125-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.g125-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.g125-btn-login {
    background: transparent;
    border: 2px solid var(--g125-primary);
    color: var(--g125-primary);
}

.g125-btn-login:hover {
    background: var(--g125-primary);
    color: var(--g125-bg-dark);
}

.g125-btn-register {
    background: var(--g125-gold-gradient);
    color: var(--g125-bg-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.g125-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.g125-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--g125-primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}

/* Desktop Navigation */
.g125-desktop-nav {
    display: flex;
    gap: 30px;
}

.g125-desktop-nav a {
    color: var(--g125-text-light);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.g125-desktop-nav a:hover {
    color: var(--g125-primary);
}

.g125-desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--g125-primary);
    transition: width 0.3s ease;
}

.g125-desktop-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Overlay */
.g125-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.g125-menu-overlay.x0912-active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Panel */
.g125-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--g125-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 80px 20px 30px;
    border-left: 2px solid var(--g125-primary);
}

.g125-mobile-menu.x0912-active {
    right: 0;
}

.g125-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--g125-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.g125-mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.g125-mobile-menu-links a {
    display: block;
    padding: 15px 20px;
    color: var(--g125-text-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.g125-mobile-menu-links a:hover {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: var(--g125-primary);
    color: var(--g125-primary);
}

.g125-mobile-menu-links .g125-menu-heading {
    color: var(--g125-accent);
    font-weight: 700;
    margin-top: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

/* Hero Carousel */
.g125-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-top: 70px;
}

.g125-slides-container {
    position: relative;
    height: 100%;
}

.g125-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.g125-slide.x0912-active {
    opacity: 1;
}

.g125-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g125-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 40px;
    background: linear-gradient(transparent, rgba(26, 37, 47, 0.95));
}

.g125-slide-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--g125-primary);
}

.g125-slide-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--g125-text-light);
}

.g125-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.g125-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.g125-dot.x0912-active,
.g125-dot:hover {
    background: var(--g125-primary);
    transform: scale(1.2);
}

/* Main Content */
.g125-main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Styles */
.g125-section {
    margin-bottom: 50px;
}

.g125-section-title {
    font-size: 1.8rem;
    color: var(--g125-primary);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--g125-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.g125-section-title i {
    font-size: 1.5rem;
}

/* Game Grid */
.g125-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.g125-game-card {
    background: var(--g125-bg-darker);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.g125-game-card:hover {
    transform: translateY(-5px);
    border-color: var(--g125-primary);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.g125-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.g125-game-card-title {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--g125-text-light);
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.1));
}

/* Feature Cards */
.g125-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.g125-feature-card {
    background: linear-gradient(145deg, var(--g125-bg-darker), rgba(44, 62, 80, 0.8));
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.g125-feature-card:hover {
    border-color: var(--g125-primary);
    transform: translateY(-3px);
}

.g125-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--g125-gold-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.g125-feature-icon i {
    font-size: 1.8rem;
    color: var(--g125-bg-dark);
}

.g125-feature-card h3 {
    font-size: 1.2rem;
    color: var(--g125-primary);
    margin-bottom: 12px;
}

.g125-feature-card p {
    color: var(--g125-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Mobile Bottom Navigation */
.g125-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(26, 37, 47, 0.98), var(--g125-bg-darker));
    border-top: 2px solid var(--g125-primary);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 10px;
}

.g125-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 8px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.g125-bottom-nav-item:hover {
    background: rgba(212, 175, 55, 0.15);
}

.g125-bottom-nav-item i {
    font-size: 24px;
    color: var(--g125-text-muted);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.g125-bottom-nav-item span {
    font-size: 10px;
    color: var(--g125-text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.g125-bottom-nav-item:hover i,
.g125-bottom-nav-item:hover span {
    color: var(--g125-primary);
}

.g125-bottom-nav-item.g125-active i,
.g125-bottom-nav-item.g125-active span {
    color: var(--g125-primary);
}

/* Footer */
.g125-footer {
    background: var(--g125-bg-darker);
    padding: 50px 20px 30px;
    border-top: 2px solid var(--g125-primary);
}

.g125-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.g125-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.g125-footer-section h4 {
    color: var(--g125-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.g125-footer-section ul {
    list-style: none;
}

.g125-footer-section ul li {
    margin-bottom: 12px;
}

.g125-footer-section ul li a {
    color: var(--g125-text-muted);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.g125-footer-section ul li a:hover {
    color: var(--g125-primary);
}

.g125-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.g125-partners img {
    height: 35px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g125-partners img:hover {
    opacity: 1;
}

.g125-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.g125-footer-bottom p {
    color: var(--g125-text-muted);
    font-size: 0.9rem;
}

/* CTA Section */
.g125-cta {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(184, 134, 11, 0.2));
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    margin: 40px 0;
    border: 1px solid var(--g125-primary);
}

.g125-cta h2 {
    font-size: 1.8rem;
    color: var(--g125-primary);
    margin-bottom: 15px;
}

.g125-cta p {
    color: var(--g125-text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Internal Links Section */
.g125-internal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.g125-internal-links a {
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    color: var(--g125-text-light);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.g125-internal-links a:hover {
    background: var(--g125-primary);
    color: var(--g125-bg-dark);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .g125-header {
        padding: 10px 15px;
    }

    .g125-desktop-nav {
        display: none;
    }

    .g125-menu-toggle {
        display: block;
    }

    .g125-hero {
        height: 350px;
        margin-top: 60px;
    }

    .g125-slide-content h2 {
        font-size: 1.4rem;
    }

    .g125-slide-content p {
        font-size: 0.95rem;
    }

    .g125-main {
        padding: 30px 15px;
        padding-bottom: 80px;
    }

    .g125-section-title {
        font-size: 1.4rem;
    }

    .g125-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .g125-game-card-title {
        padding: 8px;
        font-size: 0.75rem;
    }

    .g125-bottom-nav {
        display: flex;
    }

    .g125-features-grid {
        grid-template-columns: 1fr;
    }

    .g125-cta {
        padding: 30px 20px;
    }

    .g125-cta h2 {
        font-size: 1.4rem;
    }

    .g125-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
}

@media (max-width: 430px) {
    .g125-logo-text {
        font-size: 1.1rem;
    }

    .g125-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    .g125-hero {
        height: 280px;
    }

    .g125-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (min-width: 769px) {
    .g125-bottom-nav {
        display: none;
    }
}

/* Body class for menu open state */
body.x0912-menu-open {
    overflow: hidden;
}
