/* ================================================
   ESPANOLGAMES.ES — SEARCH
   File: assets/css/search.css
   ================================================ */

:root {
    --orange: #ff4400;
    --dark: #0a0a0a;
    --card-bg: #111;
    --border: #2a2a2a;
    --text-light: #f0f0f0;
    --text-dim: #a0a0a0;
}

.search-page {
    background: var(--dark);
    min-height: 100vh;
    padding: 40px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== HERO ===== */
.search-hero {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--orange);
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--text-dim);
    text-decoration: none;
}

.hero-content h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-content h1 i {
    color: var(--orange);
}

.highlight {
    color: var(--orange);
}

/* ===== SEARCH FORM ===== */
.search-form {
    margin-bottom: 25px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.search-box input {
    flex: 1;
    padding: 16px 20px 16px 50px;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: white;
    font-size: 16px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--orange);
}

.btn-search {
    padding: 16px 32px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
}

.search-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 20px;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: white;
    cursor: pointer;
}

.btn-clear {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s;
}

.btn-clear:hover {
    border-color: var(--orange);
    color: white;
}

.results-stats {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* ===== GRID ===== */
.search-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* ===== GAMES GRID ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.game-card:hover {
    border-color: var(--orange);
    transform: translateY(-5px);
}

.game-card a {
    text-decoration: none;
    color: inherit;
}

.game-cover {
    position: relative;
    padding-top: 133%;
    overflow: hidden;
}

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

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 68, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-overlay i {
    color: white;
    font-size: 48px;
}

.badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 14px;
    background: var(--orange);
    border-radius: 50px;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.game-info {
    padding: 15px;
}

.game-info h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 8px;
}

.game-category {
    display: block;
    color: var(--orange);
    font-size: 12px;
    margin-bottom: 8px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 12px;
}

.game-meta i {
    color: var(--orange);
}

/* ===== POPULAR SECTION ===== */
.popular-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.popular-section h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-tag {
    padding: 10px 20px;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-dim);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.popular-tag:hover {
    border-color: var(--orange);
    color: white;
}

.tag-count {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
}

/* ===== NO RESULTS ===== */
.no-results {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
}

.no-results i {
    font-size: 60px;
    color: var(--orange);
    margin-bottom: 20px;
}

.no-results h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-dim);
    margin-bottom: 30px;
}

.suggestions {
    text-align: left;
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    background: var(--dark);
    border-radius: 16px;
}

.suggestions h3 {
    color: white;
    margin-bottom: 10px;
}

.suggestions ul {
    color: var(--text-dim);
    padding-left: 20px;
}

.btn-home {
    display: inline-block;
    padding: 16px 32px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
}

/* ===== SIDEBAR ===== */
.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-card h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--dark);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.trending-item:hover {
    background: var(--orange);
}

.trending-rank {
    width: 30px;
    height: 30px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.trending-item:hover .trending-rank {
    background: white;
    color: var(--orange);
}

.trending-query {
    color: var(--text-dim);
    font-weight: 600;
}

.trending-item:hover .trending-query {
    color: white;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    color: var(--text-dim);
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

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

.tips-list i {
    color: #00c853;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-link {
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    border-color: var(--orange);
    color: white;
}

.page-link.active {
    background: var(--orange);
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .search-hero { padding: 30px 20px; }
    .hero-content h1 { font-size: 2rem; }
    .search-box { flex-direction: column; }
    .btn-search { width: 100%; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}