/* ============================================
   TUKIH - MAIN STYLESHEET
   Color Palette: Purple Theme
   ============================================ */

/* CSS Variables - Purple Palette */
:root {
    /* Primary Purple Colors */
    --purple-900: #10002B;
    --purple-800: #240046;
    --purple-700: #3C096C;
    --purple-600: #5A189A;
    --purple-500: #7B2CBF;
    --purple-400: #9D4EDD;
    --purple-300: #C77DFF;
    --purple-200: #E0AAFF;
    --purple-100: #F3E5FF;
    
    /* Semantic Colors */
    --bg-primary: #10002B;
    --bg-secondary: #240046;
    --bg-card: #1A0035;
    --bg-card-hover: #2A0055;
    
    --text-primary: #FFFFFF;
    --text-secondary: #E0AAFF;
    --text-muted: #9D4EDD;
    
    --accent: #C77DFF;
    --accent-hover: #E0AAFF;
    
    /* Status Colors */
    --success: #22C55E;
    --warning: #EAB308;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(16, 0, 43, 0.3);
    --shadow-md: 0 4px 8px rgba(16, 0, 43, 0.4);
    --shadow-lg: 0 8px 16px rgba(16, 0, 43, 0.5);
    --shadow-glow: 0 0 20px rgba(157, 78, 221, 0.3);
    
    /* Borders */
    --border-color: rgba(157, 78, 221, 0.3);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   FLOATING HEARTS BACKGROUND
   ============================================ */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 24px;
    color: var(--purple-600);
    opacity: 0.3;
    animation: floatHeart 15s infinite linear;
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-top: 140px; /* Account for fixed header */
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo:hover {
    color: var(--text-primary);
}

.logo-icon {
    color: var(--purple-400);
    font-size: 2rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--purple-300), var(--purple-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Navigation */
.nav-main {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(157, 78, 221, 0.1);
}

.nav-link.active {
    border-bottom: 2px solid var(--accent);
}

.nav-link i {
    font-size: 0.75rem;
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 5px 0;
}

/* Dropdown Noticias */
.nav-dropdown-noticias {
    min-width: 350px;
    max-height: 400px;
    overflow-y: auto;
    right: 0;
    left: auto;
}

.dropdown-item-noticia {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item-noticia:last-child {
    border-bottom: none;
}

.noticia-imagen {
    flex-shrink: 0;
    width: 70px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.noticia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-info {
    flex: 1;
    min-width: 0;
}

.noticia-titulo {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.noticia-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.no-noticias {
    flex-direction: column;
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}

.no-noticias i {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Random Button */
.nav-link-random {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-400));
    color: var(--text-primary) !important;
    border-radius: var(--border-radius-sm);
    margin-left: 10px;
}

.nav-link-random:hover {
    background: linear-gradient(135deg, var(--purple-400), var(--purple-300));
    transform: scale(1.02);
}

.nav-link-random i {
    font-size: 1rem;
}

/* Search */
.nav-search {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.search-input {
    width: 200px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-btn:hover {
    color: var(--accent);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.user-menu-btn:hover {
    border-color: var(--accent);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--purple-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple-400), var(--purple-500));
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(157, 78, 221, 0.1);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752C4;
    color: white;
}

.btn-patreon {
    background: #FF424D;
    color: white;
}

.btn-patreon:hover {
    background: #E73B45;
    color: white;
}

.btn-social {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--border-radius);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(16, 0, 43, 0.95) 0%,
        rgba(16, 0, 43, 0.7) 50%,
        rgba(16, 0, 43, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 80px 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--purple-200), var(--purple-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tag {
    padding: 6px 14px;
    background: rgba(157, 78, 221, 0.2);
    border: 1px solid var(--purple-500);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--purple-300);
}

.tag-version {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--success);
    color: var(--success);
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active,
.indicator:hover {
    background: var(--accent);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(16, 0, 43, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow:hover {
    background: var(--purple-700);
    border-color: var(--accent);
}

.hero-arrow-prev {
    left: 20px;
}

.hero-arrow-next {
    right: 20px;
}

/* ============================================
   MAIN GRID LAYOUT
   ============================================ */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 40px 0;
}

.content-main {
    min-width: 0;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.title-bar {
    width: 4px;
    height: 28px;
    background: linear-gradient(to bottom, var(--purple-400), var(--purple-600));
    border-radius: 2px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-tab {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-tab.active {
    background: var(--purple-600);
    border-color: var(--purple-600);
    color: var(--text-primary);
}

/* ============================================
   GAME CARDS
   ============================================ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.games-grid-sm {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.game-card-link {
    display: block;
    color: inherit;
}

.game-card-link:hover {
    color: inherit;
}

.game-card-image {
    position: relative;

    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1);
}

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 0, 43, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.game-card-overlay i {
    font-size: 3rem;
    color: var(--accent);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
}

.badge-new {
    background: var(--purple-500);
    color: white;
}

.game-card-content {
    padding: 16px;
}

.game-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.platform-tag,
.version-tag {
    padding: 3px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    background: var(--purple-800);
    color: var(--purple-300);
}

.version-tag {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.game-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.game-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.widget-title-bar {
    width: 3px;
    height: 20px;
    background: var(--purple-500);
    border-radius: 2px;
}

.sidebar-game {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: inherit;
}

.sidebar-game:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-game:hover {
    color: inherit;
}

.sidebar-game:hover .sidebar-game-title {
    color: var(--accent);
}

.sidebar-game-image {
    width: 60px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-game-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-game-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    transition: var(--transition-fast);
}

.sidebar-game-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Discord Widget */
.discord-widget {
    background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
    text-align: center;
}

.discord-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.discord-header i {
    font-size: 1.5rem;
    color: #5865F2;
}

.discord-widget p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.discord-widget .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   GAME DETAIL PAGE
   ============================================ */
.game-detail {
    padding: 40px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb .separator {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.breadcrumb .current {
    color: var(--text-secondary);
}

.game-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.game-header {
    margin-bottom: 30px;
}

.game-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.game-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-platform {
    background: var(--purple-600);
    border-color: var(--purple-600);
    color: white;
}

.tag-lang {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--info);
    color: var(--info);
}

/* Gallery */
.game-gallery {
    margin-bottom: 40px;
}

.gallery-main {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumb {
    width: 100px;
    height: 70px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    background: transparent;
    padding: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--accent);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Game Section */
.game-section {
    margin-bottom: 40px;
}

.game-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Download Links */
.download-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: var(--transition);
}

.download-link:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.download-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background: var(--purple-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.download-mega .download-icon {
    background: rgba(209, 52, 56, 0.2);
    color: #D13438;
}

.download-gdrive .download-icon {
    background: rgba(66, 133, 244, 0.2);
    color: #4285F4;
}

.download-mediafire .download-icon {
    background: rgba(255, 116, 0, 0.2);
    color: #FF7400;
}

.download-info {
    flex: 1;
}

.download-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.download-size {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.download-action {
    color: var(--text-muted);
}

/* Info Card */
.info-card,
.share-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.info-card-title,
.share-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 500;
}

.info-platforms,
.info-categories {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.info-platforms .info-label,
.info-categories .info-label {
    margin-bottom: 12px;
}

.platform-icons {
    display: flex;
    gap: 10px;
}

.platform-icon {
    width: 40px;
    height: 40px;
    background: var(--purple-700);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    padding: 6px 12px;
    background: var(--purple-800);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--purple-300);
}

.category-tag:hover {
    background: var(--purple-700);
    color: var(--purple-200);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-twitter {
    background: rgba(29, 161, 242, 0.2);
    color: #1DA1F2;
}

.share-facebook {
    background: rgba(24, 119, 242, 0.2);
    color: #1877F2;
}

.share-telegram {
    background: rgba(0, 136, 204, 0.2);
    color: #0088CC;
}

.share-copy {
    background: var(--purple-800);
    color: var(--purple-300);
}

.share-btn:hover {
    transform: translateY(-3px);
}

/* ============================================
   LIST PAGE
   ============================================ */
.page-header {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-muted);
}

.list-page-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

/* Filters Sidebar */
.filters-sidebar {
    position: sticky;
    top: 160px;
    height: fit-content;
}

.filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-option:hover {
    background: var(--bg-card-hover);
}

.filter-option input[type="radio"] {
    accent-color: var(--accent);
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.pagination-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.pagination-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.pagination-num:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.pagination-num.active {
    background: var(--purple-600);
    color: var(--text-primary);
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-logo .logo-icon {
  font-size: 2.5rem;
  color: white;
  }

/* Logo Image - Para usar imagen en lugar del corazon */
.auth-logo .logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Variante: imagen que ocupa todo el circulo sin fondo morado */
.auth-logo.logo-full {
  background: none;
  padding: 0;
}

.auth-logo.logo-full .logo-image {
  width: 70px;
  height: 70px;
}
  
  .auth-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
}

.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-error {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--error);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input {
    accent-color: var(--accent);
}

.forgot-link {
    font-size: 0.9rem;
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    background: var(--bg-card);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-auth {
    display: flex;
    gap: 12px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
}

/* ============================================
   AUTH - OTRAS OPCIONES (Patreon)
   ============================================ */
.auth-other-options {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.other-options-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.other-options-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.other-options-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.btn-patreon-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    margin: 0 auto;
    padding: 10px 24px;
    background: #1a1a1a;
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-patreon-alt:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.btn-patreon-alt .patreon-icon {
    width: 18px;
    height: 18px;
    color: #FF424D;
    flex-shrink: 0;
}

.auth-other-options {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================
   MESSAGES / ALERTS
   ============================================ */
.messages-container {
    max-width: 1400px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-info {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--info);
    color: var(--info);
}

.alert-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--purple-600);
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    color: var(--purple-400);
}

.footer-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--purple-600);
    border-color: var(--purple-600);
    color: white;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr 280px;
    }
    
    .game-detail-grid {
        grid-template-columns: 1fr 300px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .game-detail-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .list-page-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 15px 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding-top: 120px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .game-detail-sidebar {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-description {
        max-width: none;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .auth-card {
        padding: 30px 24px;
    }
    
    .social-auth {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .header-actions .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-arrow {
        width: 40px;
        height: 40px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .game-card-content {
        padding: 12px;
    }
    
    .game-card-title {
        font-size: 0.85rem;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .gallery-main img {
        height: 250px;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
