:root {
    --primary-color: #e50914; /* Netflix Kırmızısı */
    --dark-color: #141414;
    --light-dark-color: #1c1c1c;
    --text-color: #f5f5f5;
    --text-muted-color: #a0a0a0;
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    font-family: "Inter", sans-serif;
    padding-top: 70px; /* Sabit navbar için boşluk */
}

/* Login sayfası için özel body stili */
body.login-page {
    padding-top: 0;
}

/* --- Navbar --- */
.navbar {
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(20, 20, 20, 0.92);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.navbar-brand span {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-link {
    color: var(--text-muted-color);
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.nav-link:hover {
    color: var(--text-color);
    opacity: 1;
}


/* Cam efekti ve alt vurgu çizgisi */




/* Navbar compact – daha şık boşluklar */
.navbar .nav-underline .nav-link {
    border-bottom: 0 !important; /* Bootstrap'in underline efektini kapat */
}

.navbar .nav-underline ,
.navbar  {
    color: var(--text-muted-color) !important; /* Aktif link hover gibi parlamasın */
    opacity: 0.9 !important;
}
.navbar-compact {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.dropdown-menu {
    background-color: var(--light-dark-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    color: var(--text-muted-color);
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* --- Flash Mesajları --- */
.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    width: auto;
}

/* --- Genel Stil ve Animasyonlar --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #f6121d;
    border-color: #f6121d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.form-control {
    background-color: var(--light-dark-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    background-color: var(--light-dark-color);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.25rem rgba(229, 9, 20, 0.25);
}

footer {
    background-color: var(--light-dark-color);
    color: var(--text-muted-color);
}

footer a {
    color: var(--text-muted-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
#heroCarousel .carousel-item {
    height: 100vh;
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(20, 20, 20, 1) 15%,
        rgba(20, 20, 20, 0) 100%
    );
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 5rem;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 6%;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 1.5rem;
    background-size: 50%;
    transition: background-color 0.2s ease;
}
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.7);
}

/* --- Anime Shelf --- */
.anime-shelf {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    background-color: #181818;
    padding: 2rem;
    border-radius: 12px;
}

.anime-shelf.visible {
    opacity: 1;
    transform: translateY(0);
}
.content-container {
    padding: 0 3rem;
}

.shelf-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.shelf-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem; /* For scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--dark-color);
}

.shelf-scroll::-webkit-scrollbar {
    height: 8px;
}

.shelf-scroll::-webkit-scrollbar-track {
    background: var(--dark-color);
}

.shelf-scroll::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.anime-card {
    flex: 0 0 auto;
    width: 200px;
    margin-right: 1rem;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.anime-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.anime-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 20%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.75rem;
}

.anime-card:hover .card-overlay {
    opacity: 1;
}

.card-scores {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.anime-card:hover .card-scores {
    opacity: 1;
    transform: translateY(0);
}

.score-badge {
    background-color: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(5px);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.score-badge .fa-star {
    color: #ffc107;
    margin-right: 5px;
}

.mal-score {
    background-color: #2e51a2;
    border: 1px solid #3e61b2;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.anime-card:hover .card-bottom {
    transform: translateY(0);
}

.card-title {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    width: 80%;
}

.card-play-icon {
    font-size: 2.2rem;
    color: white;
}

/* --- Anime Detail Page --- */
.anime-detail-hero {
    height: 50vh;
    position: relative;
    background-size: cover;
    background-position: center;
}

.anime-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(20, 20, 20, 1) 0%,
        rgba(20, 20, 20, 0.8) 50%,
        rgba(20, 20, 20, 0) 100%
    );
}

.anime-detail-content {
    margin-top: -150px;
    position: relative;
    z-index: 2;
}

.anime-cover-image {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Rating Stars */
.rating-stars .fa-star {
    font-size: 1.5rem;
    color: #444;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-stars .fa-star.rated,
.rating-stars .fa-star:hover,
.rating-stars .fa-star:hover ~ .fa-star {
    color: #ffc107;
}

.rating-stars:hover .fa-star {
    color: #ffc107;
}

.rating-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Episode List */
.episode-list .list-group-item {
    background-color: var(--light-dark-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.episode-list .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* --- Discover Page (all_animes.html) --- */
.filter-sidebar {
    background-color: var(--light-dark-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-label {
    color: var(--text-muted-color);
}

.form-select {
    background-color: var(--dark-color);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.anime-card-discover {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.anime-card-discover:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.anime-card-discover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anime-card-discover .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 20%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.anime-card-discover:hover .card-overlay {
    opacity: 1;
}

.anime-card-discover .card-title {
    color: white;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.anime-card-discover:hover .card-title {
    transform: translateY(0);
}

.anime-card-discover .card-play-icon {
    font-size: 2rem;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.anime-card-discover:hover .card-play-icon {
    opacity: 1;
    transform: scale(1);
}

/* Pagination */
.pagination .page-link {
    background-color: var(--light-dark-color);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color);
}

.pagination .page-link:hover {
    background-color: #343a40;
}

/* --- Profile Page --- */
.profile-header .fa-user-circle {
    color: var(--text-muted-color);
}

.user-rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(229, 9, 20, 0.85);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Login Page --- */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    background-color: var(--light-dark-color);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-floating > .form-control {
    background-color: var(--dark-color);
}

.form-floating > .form-control:focus {
    background-color: var(--dark-color);
}

/* --- Genre Manager --- */
.genre-list {
    background-color: var(--dark-color);
    min-height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.genre-pill {
    display: inline-block;
    background-color: var(--light-dark-color);
    color: var(--text-muted-color);
    padding: 5px 10px;
    margin: 5px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.genre-pill:hover {
    background-color: var(--primary-color);
    color: white;
}

.genre-pill i {
    margin-left: 5px;
}

/* --- Notifications --- */
.notification-dropdown {
    width: 350px;
}

.notification-dropdown .dropdown-item {
    white-space: normal; /* Allow text to wrap */
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

/* --- Shelf Variations --- */
.shelf-editors-pick {
    background: linear-gradient(to right, #1a1a1a, #141414);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shelf-latest {
    background-color: #161616;
}

.shelf-personalized {
    border-left: 3px solid var(--primary-color);
    background-color: transparent;
    padding-left: 1.5rem;
}

/* Special style for the first item in editor's picks */
.shelf-editors-pick .anime-card:first-child {
    width: 250px;
}

/* --- Community Hub --- */
.community-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* --- Support Page Enhancements (community paleti) --- */
.support-hero {
    position: relative;
}

.support-hero::after {
    content: "";
    display: block;
    width: 88px;
    height: 3px;
    margin: 12px auto 0 auto;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.support-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--light-dark-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.support-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.18);
}

.support-icon-wrap {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(229,9,20,0.25), rgba(229,9,20,0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.support-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.support-card .btn-primary {
    border-radius: 10px;
}

@media (max-width: 768px) {
    .support-icon-wrap { width: 72px; height: 72px; }
    .support-icon { font-size: 1.6rem; }
}

.community-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Choices.js Dark Theme Override */
.choices {
    background-color: var(--light-dark-color);
    border-radius: 8px;
}

.choices__inner {
    background-color: var(--light-dark-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
}

.choices[data-type*="select-multiple"] .choices__inner, .choices[data-type*="text"] .choices__inner {
    background-color: var(--light-dark-color);
}

.choices__list--dropdown, .choices__list[aria-expanded] {
    background-color: var(--dark-color);
    border-color: rgba(255, 255, 255, 0.2);
}

.choices__list--dropdown .choices__item, .choices__list[aria-expanded] .choices__item {
    color: var(--text-muted-color);
}

.choices__list--dropdown .choices__item--selectable.is-highlighted, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.choices__input, .choices__input--cloned {
    background-color: var(--light-dark-color) !important; /* Important to override inline styles */
    color: var(--text-color) !important;
}

.choices__item.choices__item--choice {
    background-color: var(--dark-color);
}

.choices[data-type*="select-multiple"] .choices__button, .choices[data-type*="text"] .choices__button {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    background-image: url('data:image/svg+xml;utf8,<svg width="21" height="21" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg"><g fill="%23fff" fill-rule="evenodd"><path d="M2.592.044l18.364 18.364-2.548 2.548L.044 2.592z"/><path d="M.044 18.364L18.408.044l2.548 2.548L2.592 20.912z"/></g></svg>');
}
