/* FontAwesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');
/* Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --main-color: #ffdd95;
    --black: #222;
    --light-black: #1a1a1a;
    --bg-color: #0d0d0d;
    --white: #fff;
    --light-white: #aaa;
}

*{
    box-sizing: border-box;
    padding: 0; margin: 0;
    text-decoration: none;
    outline: none; border: none;
    text-transform: capitalize;
    transition: 0.2s all linear;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
    scroll-padding-top: 7rem;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

::-webkit-scrollbar{
    width: .8rem;
}

::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}

::-webkit-scrollbar-track{
    background-color: transparent;
}

body{
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section{
    padding: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.main-content {
    flex: 1;
    width: 100%;
}

.btn{
    display: inline;
    margin-top: 1rem;
    padding: 0.6rem 1.6rem;
    font-size: 1.8rem;
    color: var(--black);
    background-color: var(--main-color);
    border-radius: 0.5rem;
    cursor: pointer;
}

.btn:hover{
    background-color: var(--white);
}

.btn i{
    margin-right: 0.5rem;
}

.header{
    position: sticky;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}

.header .flex{
    display: flex;
    align-items: center;
}

#menu-btn{
    font-size: 2.5rem;
    color: var(--main-color);
    margin-right: 1rem;
    cursor: pointer;
}

#menu-btn:hover{
    font-size: 2.5rem;
    color: var(--white);
    margin-right: 1rem;
    cursor: pointer;
}

.header .flex .logo{
    margin-right: auto;
}

.header .flex .logo a{
    font-size: 2.5rem;
    color: var(--white);
    font-weight: bolder;
    font-style: italic;
}

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

.header .flex .search-form .search-bar{
    background-color: var(--light-black);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 50rem;
}

.header .flex .search-form .search-bar input{
    width: 100%;
    background: none;
    font-size: 1.8rem;
    color: var(--white);
}

.header .flex .search-form .search-bar input::-webkit-search-cancel-button{
    appearance: none;
}

.header .flex .search-form .search-bar label{
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
}

.header .flex .search-form .search-bar label:hover{
    color: var(--main-color);
}

.header .flex .search-form a{
    display: block;
    font-size: 2rem;
    text-align: center;
    height: 4rem;
    width: 4.5rem;
    line-height: 4rem;
    border-radius: 0.5rem;
    color: var(--white);
    background-color: var(--light-black);
}

.header .flex .search-form a:hover{
    background-color: var(--main-color);
    color: var(--black);
}

.header .btn{
    margin-top: 0;
    margin-left: auto;
}

#search-toggler{
    height: 3.5rem;
    width: 4.5rem;
    line-height: 3.5rem;
    font-size: 2rem;
    color: var(--white);
    background-color: var(--light-black);
    border-radius: 0.5rem;
    margin-left: 1rem;
    text-align: center;
    display: none;
}

.header.active{
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.side-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    background-color: var(--light-black);
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0);
}

.side-bar.active {
    transform: translateX(0);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.navbar {
    padding: 2rem 0;
}

.navbar .row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 2rem;
}

.navbar a {
    display: block;
    padding: 1rem;
    font-size: 1.6rem;
    color: var(--light-white);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.navbar a.active {
    background-color: rgba(255, 221, 149, 0.15);
    color: var(--main-color);
    font-weight: 500;
    padding-left: 1.5rem;
    border-left: 3px solid var(--main-color);
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding-left: 1.5rem;
}

.navbar .title {
    font-size: 1.8rem;
    color: var(--main-color);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
    padding-left: 1rem;
    border-left: 3px solid var(--main-color);
}

#close-btn {
    background-color: var(--bg-color);
    color: var(--white);
    font-size: 1.6rem;
    border: none;
    cursor: pointer;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
}

#close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--main-color);
}

/* Sidebar için Scrollbar Stili */
.side-bar::-webkit-scrollbar {
    width: 0.5rem;
}

.side-bar::-webkit-scrollbar-track {
    background: transparent;
}

.side-bar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* Responsive Sidebar Ayarları */
@media (max-width: 768px) {
    .side-bar {
        width: 280px;
    }
    
    .navbar .row {
        padding: 0 1.5rem;
    }
    
    .navbar a {
        font-size: 1.5rem;
        padding: 0.8rem;
    }
    
    .navbar .title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .side-bar {
        width: 260px;
    }
    
    .navbar .row {
        padding: 0 1rem;
    }
    
    .navbar a {
        font-size: 1.4rem;
    }
    
    .navbar .title {
        font-size: 1.5rem;
        margin: 1.2rem 0 0.8rem;
    }
    
    #close-btn {
        font-size: 1.4rem;
    }
}

@media (max-width: 1200px){
    html{
        font-size: 55%;
    }
}

@media (max-width: 991px){
    html{
        font-size: 55%;
    }

    #search-toggler{
        display: inline-block;
    }

    .header .flex .search-form{
        position: absolute;
        top: 99%; left: 0; right: 0;
        border-top: .1rem solid var(--light-black);
        border-bottom: .1rem solid var(--light-black);
        background-color: var(--bg-color);
        padding: 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    .header .flex .search-form.active{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .header .flex .search-form .search-bar{
        width: 100%;
        margin: 1rem 0;
    }
}

@media (max-width: 768px){
    .header .flex {
        padding: 1.5rem;
        gap: 1rem;
    }

    .header .flex .logo {
        font-size: 2.2rem;
    }

    .header .search-form {
        width: 100%;
    }

    .header .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.6rem;
    }

    .posters-wrapper {
        gap: 1.5rem;
        padding: 1rem;
    }

    .poster-item {
        min-width: 140px;
    }
}

@media (max-width: 576px){
    .header .flex {
        padding: 1.2rem;
    }

    .header .flex .logo {
        font-size: 2rem;
    }

    .header .search-form {
        padding: 1rem;
    }

    .header .search-form.active {
        padding: 1.5rem;
    }

    .header .search-form form {
        gap: 1rem;
    }

    #search-toggler {
        margin-left: 0.5rem;
    }

    .header .btn {
        padding: 0.7rem 1.2rem;
        font-size: 1.4rem;
    }

    .poster-item {
        min-width: 120px;
    }

    .poster-info h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px){
    .header .flex {
        padding: 1rem;
    }

    .poster-item {
        min-width: 100px;
    }

    .header .btn {
        display: none;
    }
}

@media (max-width: 450px){
    html{
        font-size: 50%;
    }
}

.footer {
    background: #181818;
    color: #fff;
    padding: 2.5rem 1rem 1.2rem 1rem;
    margin-top: auto;
    font-size: 1.1rem;
    box-shadow: 0 -2px 16px 0 rgba(0,0,0,0.25);
}
.footer .row {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.social-links {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 0.7rem;
}
.social-links a {
    color: #fff;
    font-size: 2rem;
    transition: color 0.2s, transform 0.2s;
}
.social-links a:hover {
    color: var(--main-color);
    transform: scale(1.15);
}
.credit {
    color: #bbb;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-align: center;
}
.credit span {
    color: var(--main-color);
    font-weight: bold;
}

@media (max-width: 600px) {
    .footer .row {
        padding: 0 0.5rem;
    }
    .social-links a {
        font-size: 1.5rem;
    }
}

.footer-desc {
    color: #ccc;
    font-size: 1.05rem;
    text-align: center;
    max-width: 600px;
    margin: 0.5rem auto 0.5rem auto;
    line-height: 1.6;
}

/* Hero Section Styles */
.hero-section {
    padding: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background-color: var(--light-black);
}

.slider-container {
    position: relative;
    height: 40rem;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    height: 100%;
    padding: 2rem;
}

.poster {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 2rem;
}

.poster img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0.8rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.info {
    flex: 0 0 70%;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
}

.info h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--main-color);
}

.info .rating {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info .rating i {
    color: var(--main-color);
    font-size: 1.8rem;
    margin-right: 0.3rem;
}

.info .rating span {
    font-size: 1.6rem;
    color: var(--white);
    margin-left: 0.5rem;
}

.info .tags {
    display: flex;
    margin-bottom: 1.5rem;
}

.info .tags span {
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--main-color);
    border-radius: 2rem;
    font-size: 1.4rem;
    margin-right: 1rem;
}

.info p {
    font-size: 1.6rem;
    color: var(--light-white);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 80%;
}

.info .buttons {
    display: flex;
    gap: 1.5rem;
}

.info .buttons .btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.info .buttons .btn:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
}

.btn-outline:hover {
    background-color: var(--main-color);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.prev-btn, .next-btn {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--main-color);
    color: var(--black);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 221, 149, 0.5);
}

.dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: rgba(255, 221, 149, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background-color: var(--main-color);
}

@media (max-width: 991px) {
    .slider-container {
        height: auto;
        min-height: 60rem;
    }
    
    .slide-content {
        flex-direction: column;
    }
    
    .poster {
        flex: 0 0 40%;
        padding-right: 0;
        padding-bottom: 2rem;
    }
    
    .poster img {
        max-height: 30rem;
    }
    
    .info {
        flex: 0 0 60%;
        padding-left: 0;
    }
    
    .info p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .slider-container {
        min-height: 70rem;
    }
    
    .info h2 {
        font-size: 2.8rem;
    }
    
    .info p {
        font-size: 1.5rem;
    }
    
    .slider-controls {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .slider-container {
        min-height: 80rem;
    }
    
    .info h2 {
        font-size: 2.4rem;
    }
    
    .info .buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .prev-btn, .next-btn {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.6rem;
    }
}

/* Poster Carousel Styles */
.poster-carousel {
    padding: 0;
}

.section-title {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.posters-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 2rem 0.5rem;
    max-width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.posters-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.poster-item {
    flex: 0 0 auto;
    width: 14rem;
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.poster-item img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    vertical-align: middle;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.poster-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.poster-item:hover img {
    filter: brightness(1.2);
}

.poster-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 1.5rem 1rem 1rem;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.poster-item:hover .poster-info {
    opacity: 1;
    transform: translateY(0);
}

.poster-info h3 {
    font-size: 1.6rem;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-prev-btn, 
.carousel-next-btn {
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    font-size: 2rem;
    transition: all 0.3s ease;
    z-index: 5;
}

.carousel-prev-btn {
    margin-right: 1.5rem;
}

.carousel-next-btn {
    margin-left: 1.5rem;
}

.carousel-prev-btn:hover, 
.carousel-next-btn:hover {
    background-color: var(--main-color);
    color: var(--black);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 221, 149, 0.7);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2.4rem;
        margin-bottom: 1.5rem;
    }
    
    .poster-item {
        width: 12rem;
    }
    
    .poster-item img {
        height: 17rem;
    }
    
    .carousel-prev-btn, 
    .carousel-next-btn {
        width: 4rem;
        height: 4rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }
    
    .poster-item {
        width: 10rem;
    }
    
    .poster-item img {
        height: 14rem;
    }
    
    .carousel-prev-btn, 
    .carousel-next-btn {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.6rem;
    }
}

/* Filtreleme Sonuçları Stili */
.filter-results {
    background-color: var(--main-color);
    color: var(--black);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 500;
    margin: 1rem auto;
    max-width: 80%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .filter-results {
        font-size: 1.4rem;
        padding: 0.8rem 1.5rem;
        max-width: 90%;
    }
}

.search-form {
    position: relative;
}