/* Estilos para a página de busca */

/* Header da Busca */
.search-header {
    background: linear-gradient(to right, #f01c3d, #ff8a95);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.search-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Formulário de Busca */
.search-form-container {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    background-color: #ffffff;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-form {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.search-inputs {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-field {
    flex: 3;
}

.genre-field {
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #f01c3d;
    box-shadow: 0 0 0 3px rgba(253, 108, 130, 0.1);
    outline: none;
}

.genre-select {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.genre-select:focus {
    border-color: #f01c3d;
    box-shadow: 0 0 0 3px rgba(253, 108, 130, 0.1);
    outline: none;
}

.search-button {
    padding: 0.8rem 1.5rem;
    background-color: #f01c3d;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background-color: #0c70d3;
    transform: translateY(-1px);
}

.search-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Grid de Resultados */
.search-results {
    padding: 2rem 0;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.series-item {
    transition: transform 0.3s ease;
}

.series-item:hover {
    transform: translateY(-5px);
}

.series-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.series-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.series-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.series-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.series-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(253, 108, 108, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.series-info {
    padding: 1rem;
}

.series-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.series-genres {
    font-size: 0.85rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mensagem de Nenhum Resultado */
.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results h4 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.no-results p {
    color: #666;
    margin-bottom: 0.5rem;
}

.no-results .btn-primary {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #f01c3d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-results .btn-primary:hover {
    background-color: #f01c3d;
    transform: translateY(-1px);
}

/* Responsividade */
@media (max-width: 768px) {
    .search-header {
        padding: 2rem 0;
    }

    .search-header h1 {
        font-size: 1.8rem;
    }

    .search-inputs {
        flex-direction: column;
    }

    .search-field,
    .genre-field {
        width: 100%;
    }

    .series-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .series-info {
        padding: 0.8rem;
    }

    .series-title {
        font-size: 0.9rem;
    }

    .series-genres {
        font-size: 0.8rem;
    }
}

/* Dark Mode */
[data-theme="dark"] .search-form-container {
    background-color: #2c2c2c;
}

[data-theme="dark"] .search-input,
[data-theme="dark"] .genre-select {
    background-color: #1a1a1a;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .series-card {
    background-color: #2c2c2c;
}

[data-theme="dark"] .series-title {
    color: #e0e0e0;
}

[data-theme="dark"] .series-genres {
    color: #bbb;
}

[data-theme="dark"] .no-results h4 {
    color: #e0e0e0;
}

[data-theme="dark"] .no-results p {
    color: #bbb;
}

[data-theme="dark"] .search-header {
    background: linear-gradient(to right, #1a1a1a, #2c2c2c);
}

.genre-page-header {
    background: #f01c3d;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 0 solid rgba(255, 255, 255, .1);
  }
  
  .genre-page-header h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: .25rem;
  }
  .genre-page-header p {
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
  }