
/* Estilos personalizados para el sistema web de cinéfilos */

/* Avatar de usuario en el header */
.header__user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff55a5;
    background-image: linear-gradient(90deg, #ff55a5 0%, #ff5860 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 88, 96, 0.5);
    transition: all 0.4s ease;
}

.header__user-avatar:hover {
    box-shadow: 0 0 30px rgba(255, 88, 96, 0.7);
    transform: scale(1.05);
}

.header__user-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff55a5;
    box-shadow: 0 0 20px rgba(255, 88, 96, 0.5);
    transition: all 0.4s ease;
}

.header__user-img:hover {
    box-shadow: 0 0 30px rgba(255, 88, 96, 0.7);
    transform: scale(1.05);
}

/* Menú de usuario */
.header__user-menu .dropdown-menu {
    margin-top: 10px !important;
}

/* Estilos para formularios de autenticación */
.sign__form .alert {
    margin-bottom: 20px;
}

.sign__form .form-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 5px;
}

/* Estilos para el buscador */
.header__search-wrapper, .menu__search-wrapper {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.header__search-results, .menu__search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: 400px;
    background-color: #2b2b31;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 25px 0 rgba(0, 0, 0, 0.3);
    z-index: 1100;
    display: none;
    overflow: hidden;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.header__search-content, .menu__search-content {
    padding: 10px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-poster {
    width: 60px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.search-result-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex-grow: 1;
    overflow: hidden;
}

.search-result-title {
    display: block;
    font-size: 16px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.search-result-title:hover {
    color: #ff55a5;
}

.search-result-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.search-result-year {
    margin-right: 10px;
}

.search-result-type {
    padding: 2px 6px;
    background-color: rgba(255, 85, 165, 0.1);
    border-radius: 4px;
    color: #ff55a5;
    font-size: 10px;
    text-transform: uppercase;
}

.search-result-rating {
    margin-left: auto;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    color: #ffffff;
}

.header__search-more, .menu__search-more {
    padding: 10px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.header__search-more a, .menu__search-more a {
    display: block;
    color: #ff55a5;
    font-size: 14px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.header__search-more a:hover, .menu__search-more a:hover {
    color: #ff5860;
}

.search-no-results {
    padding: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Mostrar resultados de búsqueda cuando el input está enfocado o hay resultados */
.header__search-results.show,
.menu__search-results.show {
    display: block;
}

/* Estilos para la paginación del hero */
.splide__pagination {
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.splide__pagination__page {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
}

.splide__pagination__page.is-active {
    width: 14px;
    height: 14px;
    background-color: #ff55a5;
    opacity: 1;
}

/* Estilos para el botón Ver más en el hero */
.hero__actions .btn-more {
    position: relative;
    z-index: 100 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: rgba(255, 85, 165, 0.8);
    color: white;
    border: none;
}

.hero__actions .btn-more:hover {
    background-color: rgba(255, 85, 165, 1);
    transform: scale(1.05);
}

.hero__actions .btn-more i {
    margin-right: 10px;
}

.hero__slide {
    pointer-events: auto !important;
}

.hero__content {
    pointer-events: auto !important;
}

.hero__actions {
    pointer-events: auto !important;
}

/* Estilos para favoritos */
.favorite-btn {
    background: linear-gradient(90deg, #ff55a5 0%, #ff5860 100%);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.favorite-btn:hover {
    opacity: 0.85;
}

.favorite-btn.is-favorite {
    background: #2b2b31;
}

.favorite-btn.is-favorite:hover {
    background: #ff5860;
}

.favorite-btn i {
    font-size: 16px;
}

.item__favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(20, 20, 30, 0.8);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s;
}

.item__favorite:hover {
    background-color: rgba(255, 88, 96, 0.8);
}

.item__favorite.is-favorite {
    background-color: rgba(255, 88, 96, 0.8);
}

.item__favorite.is-favorite:hover {
    background-color: rgba(20, 20, 30, 0.8);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.notification--success {
    background-color: rgba(76, 175, 80, 0.9);
}

.notification--error {
    background-color: rgba(244, 67, 54, 0.9);
}

.notification--show {
    opacity: 1;
    transform: translateY(0);
}

/* Filtros de favoritos */
.filter__tabs {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter__tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.filter__tab:hover {
    color: #fff;
}

.filter__tab--active {
    color: #fff;
    background: linear-gradient(90deg, #ff55a5 0%, #ff5860 100%);
}

.no-items {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.no-items h3 {
    color: #fff;
    margin-bottom: 15px;
}

.no-items p {
    margin-bottom: 20px;
}

/* Indicador de tipo de contenido */
.item__type {
    position: absolute;
    top: -50px;
    left: 10px;
    background-color: rgba(255, 85, 165, 0.8);
    color: #fff;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 3;
}

/* Responsive */
@media (max-width: 768px) {
    .header__search-results, 
    .menu__search-results {
        max-width: 100%;
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .filter__tabs {
        flex-wrap: wrap;
    }
}