/**
 * FGR Theme - Main Stylesheet
 * Inspired by modern gaming platforms with dark mode support
 */

/* ============================================
   CSS Variables (Light/Dark Mode)
   ============================================ */

:root {
    /* Typography */
    --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.5;

    /* Colors - Light Mode */
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --text: #213547;
    --text-muted: #666;
    --text-muted-strong: #444;

    /* Card Styles */
    --card-bg: #ffffff;
    --card-border: #e3e3e3;
    --card-hover-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* Thumbnail */
    --thumb-bg: #f3f3f3;

    /* Prices */
    --price-color: #067d17;
    --price-original: #999;

    /* Hero Section */
    --hero-start: #f0f4ff;
    --hero-end: #e8eeff;
    --hero-text: #19233a;

    /* Header */
    --header-bg: #ffffff;
    --header-border: #e3e3e3;

    /* Buttons */
    --btn-primary-bg: #646cff;
    --btn-primary-hover: #535bf2;
    --btn-secondary-bg: #f3f3f3;
    --btn-secondary-hover: #e3e3e3;

    /* Links */
    --link-color: #646cff;
    --link-hover: #535bf2;

    /* Spacing */
    --container-max-width: 1400px;
    --container-padding: 24px;
    --gap-sm: 8px;
    --gap-md: 18px;
    --gap-lg: 24px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;

    /* Transitions */
    --transition-speed: 0.2s;
}

/* Dark Mode Variables */
html[data-theme='dark'] {
    --bg: #121212;
    --bg-secondary: #1a1a1a;
    --text: #eaeaea;
    --text-muted: #9a9a9a;
    --text-muted-strong: #c7c7c7;

    --card-bg: #1a1a1a;
    --card-border: #2a2a2a;
    --card-hover-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

    --thumb-bg: #2a2a2a;

    --price-color: #24c358;
    --price-original: #888;

    --hero-start: #1b1f2b;
    --hero-end: #252b3b;
    --hero-text: #eaeaea;

    --header-bg: #1a1a1a;
    --header-border: #2a2a2a;

    --btn-primary-bg: #646cff;
    --btn-primary-hover: #7d84ff;
    --btn-secondary-bg: #2a2a2a;
    --btn-secondary-hover: #3a3a3a;

    --link-color: #7d84ff;
    --link-hover: #9da3ff;
}

/* ============================================
   Base Styles
   ============================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text);
    background: var(--bg);
    transition: background var(--transition-speed), color var(--transition-speed);
}

/* ============================================
   Container
   ============================================ */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--link-hover);
}

/* ============================================
   Header
   ============================================ */

.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background var(--transition-speed), border-color var(--transition-speed);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 50px;
    width: auto;
    transition: opacity var(--transition-speed);
}

.site-logo:hover {
    opacity: 0.8;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.site-description {
    display: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* Navigation */
.main-navigation {
    flex-grow: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    transition: color var(--transition-speed);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--link-color);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.menu-toggle-icon {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu-wrapper {
    display: contents;
}

.platforms-menu {
    display: none;
}

.mobile-menu-header {
    display: none;
}

/* Desktop: Show platforms in nav menu */
@media (min-width: 969px) {
    .nav-menu-wrapper {
        display: flex;
        align-items: center;
        gap: 2rem;
        flex: 1;
    }

    .platforms-menu {
        display: block;
        margin-left: auto;
    }

    .platforms-menu-title {
        display: none;
    }

    .platforms-menu-list {
        display: flex;
        list-style: none;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }

    .platforms-menu-list li {
        border: none;
    }

    .platforms-menu-list a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        color: var(--text);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        border-radius: var(--radius-sm);
        background: var(--bg-secondary);
        transition: all var(--transition-speed);
    }

    .platforms-menu-list a:hover {
        background: var(--link-color);
        color: white;
        transform: translateY(-2px);
    }

    .platforms-menu-list i {
        font-size: 1rem;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.last-update {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    position: relative;
}

.update-icon {
    font-size: 0.875rem;
}

.update-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--card-border);
    z-index: 1000;
}

.update-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--card-bg);
}

.last-update.show-tooltip .update-tooltip {
    display: block;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--btn-secondary-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: all var(--transition-speed);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--btn-secondary-hover);
    transform: scale(1.05);
}

html[data-theme='light'] .theme-toggle-dark {
    display: none;
}

html[data-theme='dark'] .theme-toggle-light {
    display: none;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--hero-text);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Main Content
   ============================================ */

.site-main {
    min-height: 60vh;
    padding: var(--gap-lg) 0;
}

.entry-content {
    margin: 0;
}

.entry-content>*+* {
    margin-top: var(--gap-lg);
}

/* Content Headings */
.entry-content h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--card-border);
}

.entry-content h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ============================================
   Game Cards (Plugin Integration)
   ============================================ */

/* Override plugin styles to match app design */
.fgr-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap-md);
    margin: var(--gap-lg) 0;
}

.fgr-game-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    background: var(--card-bg);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.fgr-game-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.fgr-game-image {
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio for better Steam image display */
    position: relative;
    background: var(--thumb-bg);
    overflow: hidden;
}

.fgr-game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fgr-game-content {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    padding: 12px;
}

.fgr-game-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: var(--text);
}

.fgr-game-description {
    display: none;
    /* Hide description to match app design */
}

.fgr-game-meta {
    display: flex;
    gap: var(--gap-sm);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: none;
    margin: 0;
    padding: 0;
}

.fgr-price {
    color: var(--price-color);
    font-weight: 600;
    font-size: 13px;
}

.fgr-free {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.fgr-upcoming {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.fgr-price-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.fgr-price-info {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    flex-wrap: wrap;
}

.fgr-original-price {
    color: var(--price-original);
    font-size: 12px;
    text-decoration: line-through;
}

.fgr-final-price {
    color: var(--price-color);
    font-weight: 700;
    font-size: 14px;
}

.fgr-discount-badge {
    background: #4a9d5f !important;
    color: white !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    position: absolute;
    top: 8px;
    right: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fgr-platform-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fgr-end-date {
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
    padding: 0;
    color: #888;
    display: block;
    text-transform: none;
    letter-spacing: 0;
}

.fgr-game-actions {
    display: none;
    /* Hide action buttons to match app design */
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: var(--bg-secondary);
    margin-top: 4rem;
    border-top: 1px solid var(--card-border);
}

.footer-widgets {
    padding: 3rem 0;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    background: var(--card-bg);
    padding: 1.5rem 0;
    border-top: 1px solid var(--card-border);
}

.footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.footer-info {
    flex: 1;
}

.copyright,
.disclaimer {
    margin: 0.25rem 0;
    color: var(--text-muted);
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.footer-menu a:hover {
    color: var(--text);
}

.footer-platforms {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.platforms-label {
    font-weight: 600;
    color: var(--text-muted);
}

.platform-link {
    padding: 0.25rem 0.75rem;
    background: var(--btn-secondary-bg);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    transition: all var(--transition-speed);
}

.platform-link:hover {
    background: var(--btn-primary-bg);
    color: white;
}

/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--btn-primary-bg);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-4px);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
    :root {
        --container-padding: 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .header-container {
        flex-wrap: nowrap;
    }

    .main-navigation {
        order: 0;
        width: auto;
        flex: 0;
    }

    .header-actions {
        order: 3;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 9998;
        pointer-events: none;
    }

    .main-navigation.menu-open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--header-bg);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        transition: left 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
        padding: 2rem 0;
        display: block;
    }

    .nav-menu-wrapper.active {
        left: 0;
    }

    .mobile-menu-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        border-bottom: 2px solid var(--card-border);
        margin-bottom: 1rem;
    }

    .mobile-menu-logo {
        height: 30px;
        width: auto;
    }

    .mobile-menu-close {
        background: transparent;
        border: none;
        color: var(--text);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-sm);
        transition: all var(--transition-speed);
    }

    .mobile-menu-close:hover {
        background: var(--btn-secondary-bg);
        color: var(--link-color);
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 1.5rem;
        margin-bottom: 2rem;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--card-border);
    }

    .nav-menu li a {
        padding: 1rem 0;
    }

    .platforms-menu {
        display: block;
        padding: 0 1.5rem;
    }

    .platforms-menu-title {
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--text-muted);
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .platforms-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .platforms-menu-list li {
        border-bottom: 1px solid var(--card-border);
    }

    .platforms-menu-list li:last-child {
        border-bottom: none;
    }

    .platforms-menu-list a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 0;
        color: var(--text);
        text-decoration: none;
        font-weight: 500;
        transition: color var(--transition-speed);
    }

    .platforms-menu-list a:hover {
        color: var(--link-color);
    }

    .platforms-menu-list i {
        font-size: 1.25rem;
        width: 24px;
        text-align: center;
    }

    .last-update .update-text {
        display: none;
    }

    .last-update {
        cursor: pointer;
        padding: 0.5rem;
    }

    .site-logo {
        height: 40px;
    }
}

@media (max-width: 640px) {
    .fgr-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .fgr-game-title {
        font-size: 12px;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-platforms {
        justify-content: center;
    }

    .site-logo {
        height: 35px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.no-content {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

/* ============================================
   HOME GAMING TEMPLATE STYLES
   ============================================ */

/* Hero Gaming con esferas animadas */
.hero-gaming {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-sphere-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.sphere-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #646cff 0%, #7d84ff 100%);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    bottom: -200px;
    right: -200px;
    animation-delay: -7s;
}

.sphere-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a5a0 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    75% {
        transform: translate(40px, 40px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.hero-info {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--link-color) 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.stat-label-short {
    display: none;
}

/* Update stat special styling */
.stat-update {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-update-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label-update {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    color: var(--text-muted);
}

.stat-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.stat-platforms {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--card-border);
}

.platform-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    text-decoration: none;
    transition: all var(--transition-speed);
    font-size: 1rem;
}

.platform-link:hover {
    background: var(--link-color);
    color: white;
    border-color: var(--link-color);
    transform: translateY(-2px);
}

/* Secciones de juegos */
.games-section {
    padding: 4rem 0;
    position: relative;
}

.games-section:nth-child(even) {
    background: var(--bg-alt, rgba(0, 0, 0, 0.02));
}

[data-theme="dark"] .games-section:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* Section header block */
.section-header-block {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-header-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.section-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    font-size: 2rem;
    border: 1px solid var(--card-border);
}

.section-icon i {
    color: var(--link-color);
}

.section-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.section-title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.section-description {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin: 0;
}

/* Carousel Styles */
.games-carousel {
    position: relative;
}

.games-carousel .fgr-games-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--link-color) var(--card-border);
    padding-bottom: 1rem;
}

.games-carousel .fgr-games-container::-webkit-scrollbar {
    height: 8px;
}

.games-carousel .fgr-games-container::-webkit-scrollbar-track {
    background: var(--card-border);
    border-radius: 4px;
}

.games-carousel .fgr-games-container::-webkit-scrollbar-thumb {
    background: var(--link-color);
    border-radius: 4px;
}

.games-carousel .fgr-games-container::-webkit-scrollbar-thumb:hover {
    background: var(--link-hover, #7d84ff);
}

.games-carousel .fgr-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    display: flex;
    gap: var(--gap-md);
    margin: 0;
}

.games-carousel .fgr-game-card {
    flex: 0 0 280px;
    max-width: 280px;
}

/* Botones de navegación del carousel */
.carousel-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.carousel-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    color: var(--text);
}

.carousel-nav-btn:hover {
    background: var(--link-color);
    color: white;
    border-color: var(--link-color);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Info Section */
.info-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--link-color) 0%, var(--link-hover) 100%);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.info-card p {
    opacity: 0.8;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .hero-gaming {
        padding: 3rem 0;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-info {
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .platform-hero {
        padding: 3rem 0;
    }

    .platform-hero-content {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .platform-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .games-carousel .fgr-game-card {
        flex: 0 0 220px;
        max-width: 220px;
    }

    .section-header-block {
        gap: 1rem;
        padding: 1rem;
    }

    .section-icon {
        width: 45px;
        height: 45px;
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 0.85rem;
    }

    .btn-view-all {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
}

@media (max-width: 640px) {
    .hero-gaming {
        padding: 2rem 0;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-info {
        margin-bottom: 1.25rem;
    }

    .hero-stats {
        gap: 1rem;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 0 0 auto;
        min-width: 0;
    }

    .stat-item:not(.stat-update) {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .stat-label-full {
        display: none;
    }

    .stat-label-short {
        display: block;
    }

    .stat-update {
        width: 100%;
        min-width: auto;
        padding: 0.65rem 0.85rem;
    }

    .stat-label-update {
        font-size: 0.65rem;
    }

    .stat-date {
        font-size: 0.8rem;
    }

    .platform-hero {
        padding: 2rem 0;
    }

    .platform-hero-content {
        padding: 1rem;
        gap: 1rem;
    }

    .platform-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }

    .games-section {
        padding: 2rem 0;
    }

    .games-carousel .fgr-game-card {
        flex: 0 0 160px;
        max-width: 160px;
    }

    .section-header-block {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .section-description {
        font-size: 0.8rem;
    }

    .btn-view-all {
        font-size: 0.7rem;
        padding: 4px 10px;
        gap: 4px;
    }

    .btn-view-all i {
        font-size: 0.7rem;
    }

    .info-section {
        padding: 3rem 0;
    }

    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .info-card h3 {
        font-size: 1.25rem;
    }

    .info-card p {
        font-size: 0.9rem;
    }

    .sphere {
        filter: blur(60px);
    }

    .sphere-1 {
        width: 300px;
        height: 300px;
    }

    .sphere-2 {
        width: 250px;
        height: 250px;
    }

    .sphere-3 {
        width: 200px;
        height: 200px;
    }
}

/* ============================================
   Platform Pages Styles
   ============================================ */

/* Platform Hero */
.platform-hero {
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
    margin-bottom: 0;
}

.platform-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.platform-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-hero-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}

.platform-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--link-color);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
}

.platform-info {
    flex: 1;
}

.platform-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.platform-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.125rem);
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Platform Filters */
.platform-filters {
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.02);
}

.filters-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.filter-label {
    font-weight: 600;
    color: var(--text);
    min-width: 100px;
    font-size: 0.95rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    flex: 1;
    scrollbar-width: none;
    /* Cleaner look */
    -ms-overflow-style: none;
}

.filter-buttons::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--btn-primary-bg);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--btn-primary-bg);
    color: white;
    border-color: var(--btn-primary-bg);
}

.filter-btn i {
    font-size: 0.85rem;
}

.alpha-buttons {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    /* Space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--link-color) var(--card-border);
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
    gap: 8px;
    width: 100%;
}

.alpha-buttons::-webkit-scrollbar {
    height: 4px;
}

.alpha-buttons::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.alpha-buttons::-webkit-scrollbar-thumb {
    background: var(--link-color);
    border-radius: 4px;
}

.alpha-buttons .filter-btn {
    min-width: 40px;
    flex: 0 0 auto;
    justify-content: center;
    padding: 8px 12px;
}

.results-count {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 8px 0;
    font-weight: 500;
}

.results-count #games-count {
    font-weight: 700;
    color: var(--btn-primary-bg);
}

/* Platform Games Grid */
.platform-games {
    padding: 40px 0 80px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.games-grid .game-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.games-grid .game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--btn-primary-bg);
}

.games-grid .game-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: var(--thumb-bg);
    overflow: hidden;
}

.games-grid .game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.games-grid .game-card:hover .game-image img {
    transform: scale(1.05);
}

.games-grid .game-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-free {
    background: linear-gradient(135deg, #24c358, #1fa84a);
    color: white;
}

.badge-upcoming {
    background: linear-gradient(135deg, #ff9500, #ff7b00);
    color: white;
}

.badge-expired {
    background: linear-gradient(135deg, #666, #555);
    color: white;
    opacity: 0.8;
}

.badge-discount {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
}

.badge-f2p {
    background: linear-gradient(135deg, #646cff, #535bf2);
    color: white;
}

.games-grid .game-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.games-grid .game-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin: 0;
}

.games-grid .game-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.games-grid .game-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted-strong);
}

.games-grid .game-dates i {
    color: var(--btn-primary-bg);
}

.games-grid .game-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-original {
    text-decoration: line-through;
    color: var(--price-original);
    font-size: 0.9rem;
}

.price-final {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--price-color);
}

.games-grid .game-link-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--btn-primary-bg);
    font-weight: 500;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--card-border);
}

.games-grid .game-link-indicator i {
    font-size: 0.75rem;
}

/* No Games Message */
.no-games {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-games i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-games p {
    font-size: 1.1rem;
    margin: 0;
}

/* View All Button in Section Headers */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--btn-primary-bg);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all var(--transition-speed);
    white-space: nowrap;
}

.btn-view-all:hover {
    background: var(--btn-primary-hover);
    transform: translateX(4px);
}

.btn-view-all i {
    font-size: 0.85rem;
    transition: transform var(--transition-speed);
}

.btn-view-all:hover i {
    transform: translateX(4px);
}

.section-header-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.section-header-block .section-info {
    flex: 1;
    min-width: 250px;
}

/* Responsive Adjustments for Platform Pages */
@media (max-width: 968px) {
    .platform-title {
        font-size: 2.5rem;
    }

    .platform-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-label {
        min-width: auto;
    }

    .section-header-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-view-all {
        align-self: flex-start;
    }
}

@media (max-width: 640px) {
    .platform-hero {
        min-height: 300px;
    }

    .platform-title {
        font-size: 2rem;
    }

    .platform-subtitle {
        font-size: 1rem;
    }

    .platform-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .games-grid .game-info {
        padding: 12px;
        gap: 8px;
    }

    .games-grid .game-title {
        font-size: 0.95rem;
    }

    .games-grid .game-description {
        font-size: 0.8rem;
    }

    .platform-filters {
        padding: 20px 0;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .alpha-buttons .filter-btn {
        min-width: 35px;
        padding: 6px 8px;
    }
}

/* ============================================
   Previously Free Games Section
   ============================================ */

.previously-free-games {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    margin-top: 3rem;
}

.previously-free-games .section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.previously-free-games .section-title i {
    color: var(--link-color);
}

.previously-free-games .section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 2rem 0;
}

.previously-free-table-wrapper {
    overflow-x: auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.previously-free-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.previously-free-table thead {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--card-border);
}

.previously-free-table thead th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.previously-free-table thead th.col-game {
    width: 70%;
}

.previously-free-table thead th.col-date {
    width: 30%;
    text-align: right;
}

.previously-free-table tbody tr {
    border-bottom: 1px solid var(--card-border);
    transition: background-color 0.2s ease;
}

.previously-free-table tbody tr:last-child {
    border-bottom: none;
}

.previously-free-table tbody tr:hover {
    background: var(--bg-secondary);
}

.previously-free-table tbody td {
    padding: 1rem 1.5rem;
    color: var(--text);
    vertical-align: middle;
}

.previously-free-table .game-name {
    font-weight: 500;
}

.previously-free-table .game-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.previously-free-table .game-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.previously-free-table .game-thumbnail-placeholder {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.previously-free-table .game-thumbnail-placeholder i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.previously-free-table .game-title-text {
    flex: 1;
    color: var(--text);
    font-weight: 500;
    line-height: 1.4;
}

.previously-free-table .game-date {
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    text-align: right;
}

.previously-free-table .game-date i {
    color: var(--text-muted);
}

.no-previous-games {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
}

.no-previous-games i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: block;
}

.no-previous-games p {
    font-size: 1rem;
    margin: 0;
}

/* Responsive Table */
@media (max-width: 768px) {
    .previously-free-games {
        padding: 2rem 0;
    }

    .previously-free-table thead th {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .previously-free-table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .previously-free-table .game-thumbnail,
    .previously-free-table .game-thumbnail-placeholder {
        width: 50px;
        height: 50px;
    }

    .previously-free-table .game-title-text {
        font-size: 0.85rem;
    }

    .previously-free-table .game-date {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {

    .previously-free-table thead th,
    .previously-free-table tbody td {
        padding: 0.5rem 0.75rem;
    }

    .previously-free-table .game-thumbnail,
    .previously-free-table .game-thumbnail-placeholder {
        width: 40px;
        height: 40px;
    }

    .previously-free-table .game-thumbnail-placeholder i {
        font-size: 1rem;
    }

    .previously-free-table .game-info-row {
        gap: 0.5rem;
    }

    .previously-free-table .game-title-text {
        font-size: 0.8rem;
    }

    .previously-free-table .game-date i {
        display: none;
    }

    .previously-free-table .game-date {
        font-size: 0.75rem;
    }
}