/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

/* Buttons */
.icon-btn {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.icon-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-card);
}

.profile-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 8px;
}

.profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-main);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.15);
}

.dark-theme .btn-primary {
    background-color: #fff;
    color: #000;
}

.btn-icon {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-icon:hover {
    background-color: var(--bg-card-hover);
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.view-all:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.hero-left {
    flex: 1;
}

.hero-left p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item div {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.stat-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero-right {
    flex: 1;
    min-width: 50%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.hero-banner-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.hero-banner-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Filters Bar */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    gap: 1rem;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

#search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color), 0 10px 30px rgba(34, 197, 94, 0.15);
    background-color: #1f1f23;
    transform: scale(1.02);
}

.filters-dropdowns {
    display: flex;
    gap: 1rem;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
    min-width: 220px;
}

.custom-select {
    position: relative;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-select::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-select.open::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select:hover,
.custom-select.open {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color), 0 5px 15px rgba(34, 197, 94, 0.1);
    transform: translateY(-2px);
}

.custom-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bg-input);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(34, 197, 94, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.custom-option:hover {
    background: rgba(34, 197, 94, 0.1);
    padding-left: 1.2rem;
}

.custom-option.selected {
    color: var(--primary-color);
    font-weight: 600;
}

/* Game Cards */
.game-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-width: 260px;
    max-width: 280px;
    flex: 0 0 auto;
    transition: var(--transition-medium);
    cursor: pointer;
    position: relative;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: var(--shadow-card);
    background-color: var(--bg-card-hover);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

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

.card-store-icon {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.card-content {
    padding: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-badge {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.new-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.old-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Ranked List modifiers */
.ranked-list {
    counter-reset: rank;
}

.ranked-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 320px;
    background: transparent;
    border: none;
}
.ranked-card:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.rank-number {
    counter-increment: rank;
    content: counter(rank);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    min-width: 30px;
}

.ranked-card .game-card {
    flex: 1;
}

/* Skeleton Loading */
.skeleton-card {
    min-width: 260px;
    height: 240px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    color: var(--text-primary);
}

.feature-card h3 {
    margin-bottom: 0.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.modal-hero {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-main) 0%, transparent 60%);
}

.modal-info {
    padding: 2rem;
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.modal-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20,20,22,0.8);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.modal-rating-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.modal-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-gameplay-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.modal-gameplay-img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--text-primary);
    color: var(--bg-main);
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

/* Tier List Premium Card */
.tier-card-premium {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tier-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.tier-rank {
    font-size: 1.5rem;
    font-weight: 800;
    width: 60px;
    text-align: center;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
}
.rank-1 { color: #fbbf24; font-size: 1.25rem; }
.rank-2 { color: #94a3b8; font-size: 1.25rem; }
.rank-3 { color: #b45309; font-size: 1.25rem; }

.tier-image-wrapper {
    width: 120px;
    height: 68px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.tier-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tier-card-premium:hover .tier-image-wrapper img {
    transform: scale(1.05);
}

.tier-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.tier-pricing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.tier-discount {
    background: rgba(34, 197, 94, 0.2);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.95rem;
}

.tier-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.tier-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tier-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tier-rating {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 12px;
}

.tier-sparkline {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.tier-card-premium:hover .tier-sparkline { opacity: 1; }

.sparkline-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.tier-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.tier-fav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 4px;
}

.tier-fav-btn:hover {
    color: #ef4444;
    transform: scale(1.1);
}
.tier-fav-btn.active {
    color: #ef4444;
}

.tier-buy-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.2);
}

/* Stores Grid */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.store-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
    text-align: center;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.store-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}
