/*
 * Theme Name: Movies
 */


/* Основен стил за тялото и страницата */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0b0c15 !important;
    color: #ddd;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

/* Контейнер за филмите и сериалите */
.movies-container, .tvshows-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto; 
}

.movie-item, .tvshow-item {
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.movie-item:hover, .tvshow-item:hover {
    transform: scale(1.01);
}

.movie-item img, .tvshow-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}


@media (max-width: 768px) {
    .movie-item img, .tvshow-item img {
        height: 430px;
    }
}

@media (max-width: 427px) {
    .movie-item img, .tvshow-item img {
        height: 240px;
    }
}


.movie-item .title, .tvshow-item .title {
    padding-top: 8px;
    font-weight: 400;
    text-align: left;
    font-size: 14px;
    color: #fff;
    margin: 0;
    text-decoration: none;
}

.movie-item .date {
    color: #6e6e6e;
    display: block;
    margin-top: 5px;
}
.movie-item .year, .tvshow-item .year {
    color: #888;
    font-size: 13px;
    margin-top: 3px;
}

.movie-item a, .tvshow-item a {
    color: #fff;
    text-decoration: none;
}

/* Стилове за навигацията */
nav {
    background-color: #1f1f1f;
    padding: 15px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: #ddd;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: #fff;
}

/* Заглавия на секциите */
h1, h2 {
    text-align: left;
    margin: 25px auto 15px;
    max-width: 1300px;
    font-weight: 500;
    color: #ffffff;
}

/* Бутон за търсене */
.search-button {
    background-color: #282828;
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-button:hover {
    background-color: #333;
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    .movies-container, .tvshows-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .movies-container, .tvshows-container {
        grid-template-columns: repeat(2, 1fr);
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

.pagination {
    margin: 20px auto;
    text-align: center;
    display: flex;
    justify-content: center;
}


.pagination a,
.pagination > span {
    display: flex;
    width: 35px;
    height: 35px;
    justify-content: center;
    align-items: center;
    margin: 0 2px;
    padding: 0 !important;
    color: #ddd;
    background-color: #0b0c15;
    border-radius: 5px;
    text-decoration: none;
    border: 2px solid #333;
    font-size: 16px;
    transition: background-color 0.2s;
}

@media (max-width: 1000px) {
    .pagination {
        flex-wrap: wrap;
    }   
    .pagination a,
    .pagination > span {
        margin-bottom: 10px !important;
        min-height: 35px;
        font-size: 18px;
    }
}

.pagination a.next,
.pagination a.prev {
    width: auto !important;
    height: auto !important;
    padding: 0 10px !important;
    line-height: 1em;
}

.pagination a:hover {
    background-color: #212121;
    color: #fff;
}

.pagination .current {
    background-color: #212121;
    color: #fff;
}

}
