/* ========================================
   TATIN - BÚSQUEDA
   Estilos retro Vista/XP
   ======================================== */

/* ==========================================
   CONTAINER FIX FOR HEADER
   ========================================== */
.tatin-container {
    padding-top: 100px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.search-hero {
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.2), 
        rgba(102, 126, 234, 0.2));
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.search-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2196F3, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.search-hero .hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
}

/* ==========================================
   SEARCH FORM
   ========================================== */
.search-form {
    max-width: 800px;
    margin: 0 auto;
}

.search-box-large {
    display: flex;
    gap: 15px;
    background: white;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(33, 150, 243, 0.2);
}

.search-input-large {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 1.2rem;
    background: transparent;
}

.search-input-large:focus {
    outline: none;
}

.search-btn-large {
    padding: 15px 40px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #2196F3, #667eea);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.search-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(33, 150, 243, 0.4);
}

/* ==========================================
   FILTERS
   ========================================== */
.search-filters {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(240, 248, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 25px;
    border: 2px solid rgba(33, 150, 243, 0.3);
    background: white;
    color: #2196F3;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.05);
}

.filter-tab.active {
    background: linear-gradient(135deg, #2196F3, #667eea);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.tab-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.filter-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    font-weight: 600;
    color: #2196F3;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.filter-select:hover {
    border-color: #2196F3;
}

.filter-select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* ==========================================
   RESULTS
   ========================================== */
.search-results {
    margin-bottom: 50px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(33, 150, 243, 0.2);
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2196F3, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.results-count {
    font-size: 1rem;
    color: #999;
    font-weight: 600;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.results-section {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(240, 248, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(33, 150, 243, 0.2);
}

/* ==========================================
   POSTS GRID
   ========================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ==========================================
   USUARIOS LIST
   ========================================== */
.usuarios-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.usuario-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.usuario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.usuario-avatar {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #2196F3, #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    flex-shrink: 0;
}

.usuario-info {
    flex: 1;
}

.usuario-nombre {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 5px;
}

.usuario-rango {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.usuario-stats {
    font-size: 0.9rem;
    color: #666;
}

/* ==========================================
   SUGGESTED SEARCHES
   ========================================== */
.suggested-searches {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(240, 248, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2196F3, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
}

.suggestions-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.suggestion-chip {
    padding: 12px 25px;
    border: 2px solid rgba(33, 150, 243, 0.3);
    background: white;
    color: #2196F3;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-chip:hover {
    background: linear-gradient(135deg, #2196F3, #667eea);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.recent-searches {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(33, 150, 243, 0.2);
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-item {
    padding: 12px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(33, 150, 243, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-item:hover {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.05);
}

.recent-query {
    color: #2C3E50;
    font-weight: 600;
}

.recent-time {
    font-size: 0.85rem;
    color: #999;
}

/* ==========================================
   EMPTY STATES
   ========================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.empty-state-hint {
    font-size: 1rem;
    color: #999;
}

/* ==========================================
   LOADING
   ========================================== */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1.1rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .usuarios-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .tatin-container {
        padding-top: 80px;
    }

    .search-hero {
        padding: 40px 20px;
    }

    .search-hero .hero-title {
        font-size: 2rem;
    }

    .search-hero .hero-subtitle {
        font-size: 1rem;
    }

    .search-box-large {
        flex-direction: column;
        gap: 10px;
    }

    .search-btn-large {
        width: 100%;
    }

    .filter-tabs {
        flex-direction: column;
    }

    .filter-tab {
        width: 100%;
        justify-content: center;
    }

    .filter-options {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .results-header h2 {
        font-size: 1.5rem;
    }

    .posts-grid,
    .usuarios-list {
        grid-template-columns: 1fr;
    }

    .suggestions-grid {
        flex-direction: column;
    }

    .suggestion-chip {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .search-hero .hero-title {
        font-size: 1.8rem;
    }

    .search-input-large {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .search-btn-large {
        font-size: 1rem;
        padding: 12px 30px;
    }

    .usuario-card {
        flex-direction: column;
        text-align: center;
    }

    .usuario-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}