/* Categoria Page Styles */
.category-section {
    padding: 20px 0;
}

/* Category Dropdown Menu */
.category-dropdown {
    position: relative;
    display: inline-block;
}

.category-dropdown .dropdown-toggle {
    background: #251f35;
    color: #fefefe;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-dropdown .dropdown-toggle:hover {
    background: #15121e;
    border-color: #ce9fff;
}

.category-dropdown .dropdown-toggle i {
    transition: transform 0.3s ease;
}

.category-dropdown.show .dropdown-toggle i {
    transform: rotate(180deg);
}

.category-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #251f35;
    border-radius: 5px;
    padding: 8px 0;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.category-dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-dropdown .dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #b8b2c3;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-dropdown .dropdown-menu a:hover {
    background: #15121e;
    color: #ce9fff;
}

.category-dropdown .dropdown-menu a.active {
    color: #ce9fff;
    background: #15121e;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 20px;
}

.movie-grid .movie-card {
    position: relative;
    background: var(--secondary);
    border-radius: .5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid #302845;
    width: 13%;
}

@media (max-width: 767.98px) {
    .movie-grid .movie-card {
        width: 31.5%;
    }
}

.movie-grid .movie-card .poster {
    display: block;
    position: relative;
    padding-top: 150%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .3s;
}

.movie-grid .movie-card:hover .poster {
    transform: scale(1.1) translateY(-1rem);
}

.movie-grid .movie-card .info {
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(0deg, #251f35 20%, rgba(37, 31, 53, 0) 100%);
    transition: transform .3s ease-in-out;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.movie-grid .movie-card .info .title {
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.2rem;
    color: #fefefe;
    font-weight: 600;
    margin-top: .4rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-height: 1.7rem;
    max-height: 3.4rem;
    overflow: hidden;
    margin-bottom: .5rem;
}

.movie-grid .movie-card .info .meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.movie-grid .movie-card .info .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}


.movie-grid .movie-card-cat {
    position: relative;
    background: var(--secondary);
    border-radius: .5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid #302845;
}

.movie-grid .movie-card-cat .poster {
    display: block;
    position: relative;
    padding-top: 150%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .3s;
}

.movie-grid .movie-card-cat:hover .poster {
    transform: scale(1.1) translateY(-1rem);
}

.movie-grid .movie-card-cat .info {
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(0deg, #251f35 20%, rgba(37, 31, 53, 0) 100%);
    transition: transform .3s ease-in-out;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.movie-grid .movie-card-cat .info .title {
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.2rem;
    color: #fefefe;
    font-weight: 600;
    margin-top: .4rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-height: 1.7rem;
    max-height: 3.4rem;
    overflow: hidden;
    margin-bottom: .5rem;
}

.movie-grid .movie-card-cat .info .meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.movie-grid .movie-card-cat .info .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--secondary);
    color: var(--major-color);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: var(--primary);
    color: var(--major-color);
}

.page-item:not(.disabled):hover .page-link {
    background: var(--primary);
    color: var(--major-color);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 1399.98px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    }
}

@media (max-width: 991.98px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .movie-grid .movie-card .info .title {
        font-size: 13px;
    }
    
    .movie-grid .movie-card .info .meta {
        font-size: 11px;
    }
}

@media (max-width: 639.9px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(163px, 2fr));
        gap: 10px;
    }
}

/* Genre Select Styles */
.genre-select {
    position: relative;
    margin-bottom: 2rem;
}

.genre-button {
    background: var(--secondary);
    color: #fefefe;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    min-width: 200px;
    width: 100%;
}

.genre-button:hover {
    background: #15121e;
    border-color: #ce9fff;
}

.genre-button i {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.genre-select.active .genre-button i {
    transform: rotate(180deg);
}

.genre-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary);
    border-radius: 5px;
    margin-top: 5px;
    padding: 10px;
    width: 100%;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.genre-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.genre-item {
    display: block;
    padding: 8px 15px;
    color: #b8b2c3;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border-radius: 5px;
    background: transparent;
    border: 1px solid transparent;
}

.movie-grid .movie-card:hover{
    border-bottom: 1px solid #fff;
}

.genre-item:hover {
    background: #15121e;
    color: #ce9fff;
    border-color: #ce9fff;
}

.genre-item.active {
    color: #ce9fff;
    background: #15121e;
    border-color: #ce9fff;
} 