@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&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');
body {
  margin: 0;
  background-color: #0f0422;
  color: #eee;
  font-family: 'Poppins', sans-serif;
}
 
/* Onemogući selektovanje teksta i slika */
body, img {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
   
}

/* Prilagođeni scrollbar - AnimeKai stil */
::-webkit-scrollbar {
    width: 12px; /* Širina skrolbara */
}

::-webkit-scrollbar-track {
    background: #1a1a1a; /* Tamna pozadina skrolbara */
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6a0dad, #9b30ff); /* Ljubičasti gradijent */
    border-radius: 6px;
    border: 3px solid #1a1a1a; /* Ostavlja tamni okvir za efekat */
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9b30ff, #6a0dad); /* Efekat pri hoveru */
}

::-webkit-scrollbar-corner {
    background: transparent; /* Uklanja ćošak */
}

#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #010101;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.spinner {
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #6a0dad;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Navbar */
.navbar {
  width: 89%;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to left, #370242, #5e1b96, rgba(0, 0, 0, 0.8));
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 25px;
  border-radius: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 100000000000000000000;
}

.nav-left {
  display: flex;
  align-items: center;
}

.dropdown-button {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  margin-right: 15px;
}

.logo {
    display: flex;
    align-items: center;
    height: 50px; /* Održava stabilnu visinu */
}

.logo img {
    width: 170px; /* Povećaj sliku */
    height: auto;
    cursor: pointer;
    display: block;
    margin-top: 13px;
    
}

.nav-search {
    width: 450px;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5); /* Blago providna pozadina */
    border-radius: 20px;
    padding: 5px 15px;
    height: 30px;
}

.nav-search input {
    background: transparent; /* Providna pozadina */
    outline: none;
    border: none;
    color: white;
    padding-left: 30px; /* Prostor za ikonicu */
    flex: 1;
    
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.nav-search::before {
    content: '\f002'; /* FontAwesome search ikona */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 10px;
    color: white;
}

.nav-right .login-icon {
    font-size: 26px;
    margin-left: 13px;
    margin-top: 0px;
    color: white;
}

.nav-right .user-icon {
    font-size: 26px;
    margin-left: 13px;
    margin-bottom: -10px;
    color: white;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px; /* razmak između zvonca i slike */
  height: 44px;
}

.notification-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notification-bell i {
  font-size: 22px;
  color: #fff;
  transition: color 0.3s ease, transform 0.2s ease;
}

.notification-bell:hover i {
  color: #ffd25f;
  transform: scale(1.1);
}

.notif-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4747;
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 50%;
  font-weight: bold;
  line-height: 1;
}

.notif-dropdown {
  position: absolute;
  right: 0;
  top: 35px;
  width: 280px;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
  z-index: 9999;
}


.notif-dropdown .notif-header {
  padding: 10px;
  font-weight: bold;
  border-bottom: 1px solid #333;
  color: #ffd25f;
  text-align: center;
}

.notif-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.notif-dropdown ul li {
  padding: 10px;
  border-bottom: 1px solid #2c2c2c;
  color: #ddd;
  font-size: 14px;
  cursor: pointer;
}

.notif-dropdown ul li.unread {
  background-color: rgba(255, 210, 95, 0.1);
  font-weight: 600;
}

.notif-dropdown ul li:hover {
  background: #2c2c2c;
}

.notif-footer {
  text-align: center;
  padding: 10px;
}

.notif-footer a {
  color: #ffd25f;
  font-weight: bold;
  text-decoration: none;
}

.notif-footer a:hover {
  text-decoration: underline;
}

.nav-right #userIcon{
    width: 44px;
    height: 44px;
    border-radius: 30px;
    object-fit: cover;
    padding-top: -5px;
    margin-left: -13px;
    margin-top: -2px;
    border: 2px solid #4b0082;
}

.lang-switch {
    display: flex; /* Postavlja horizontalni raspored dugmadi */
    gap: 10px; /* Razmak između dugmadi */
}

.lang-switch button {
    background-color: rgba(255, 255, 255, 0.7); /* Bez pozadine dok dugme nije aktivno */
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    width: 40px; /* Širina kružića */
    height: 40px; /* Visina kružića */
    border-radius: 50%; /* Pravi kružni oblik */
    display: flex;
    align-items: center; /* Poravnanje teksta u centru */
    justify-content: center; /* Poravnanje teksta u centru */
    color: #800080; /* Crna boja teksta za neaktivno stanje */
}

.lang-switch button.active {
    background-color: #800080; /* Ljubičasta za aktivno dugme */
    color: #fff; /* Bela boja teksta za aktivno stanje */
    font-weight: bold;
}

.lang-switch button:hover {
    opacity: 0.8; /* Efekat kada se prelazi mišem preko dugmeta */
}

/* Dropdown meni */
.dropdown-content {
  display: none;
  position: absolute;
  top: 70px;
  left: 25px;
  background-color: #222;
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 999;
  flex-direction: column;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: 0.3s;
}

.dropdown-content a:hover {
  background-color: #6a0dad;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    z-index: 200; /* ✅ Pobrinite se da rezultati budu iznad svega */
    display: block !important; /* ✅ Forsiramo da ostane vidljiv */

}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-item:hover {
    background: #333;
}

.search-thumbnail {
    width: 50px;
    height: 75px;
    margin-right: 10px;
    border-radius: 4px;
}

.search-info {
    flex: 1;
}

.search-title {
    font-size: 16px;
    color: white;
}

h2 {
    font-family: 'Josefin Sans', sans-serif;
    margin-left: 15px;
}

#anime-list {
    margin-left: 15px;
}

.modal {
    display: none;
    position: fixed;
    overflow: hidden;
    margin-top: -140px;
    z-index: 500000;
    left: 0;
    top: 0;
    width: 100%;
    height: 120%;
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-30px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .3s .3s ease-in-out 1 forwards;
}

.body-no-scroll {
    overflow: hidden;
  }


.modal-content {
    background: whitesmoke; /* svetlo ljubičasta sa prozirnošću */
    margin: 17% auto;
    padding: 30px 20px;
    width: 400px;
    height: 500px;
    max-width: 90%;
    position: relative;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(128, 0, 128, 0.4);
    overflow: hidden; /* da ništa ne "iskače" napolje */
}

.modal-content h2 {
    color: #800080;
    margin-bottom: 20px;
    font-size: 22px;
    margin-left: -7px;
}

.modal-content input {
    width: 90%; /* smanjena širina da ne ide do ivica */
    padding: 12px 15px;
    margin: 10px auto;
    border: 1px solid #d1b3e0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #4b0082;
    display: block;
    box-sizing: border-box;
}

.modal-content input::placeholder {
    color: #aa6ac9;
    opacity: 1;
}

.modal-content button {
    width: 90%;
    padding: 12px;
    margin: 20px auto 0;
    background-color: #800080;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    box-sizing: border-box;
}

.modal-content button:hover {
    background: #9932cc;
}

.modal-content p {
    color: #4b0082;
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-content .zaboravljenaLozinka{
    color: #4b0082;
    font-size: 16px;
    margin-top: -10px;
}

.modal-content a {
    color: #9932cc;
    text-decoration: none;
    font-weight: bold;
}



.modal-content textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #d1b3e0;
    border-radius: 8px;
    padding: 10px;
    resize: vertical;
    background: #fff;
    color: #4b0082;
}

.modal-content a:hover {
    text-decoration: underline;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #800080;
    cursor: pointer;
}

.logo-container {
    margin-bottom: 10px;
}

.logo-container img {
    width: 150px; /* povećan logo */
    height: auto;
    margin-left: -7px;
}

.profile-dropdown {
    position: absolute;
    right: 10px;
    top: 70px;
    background-color: #222;
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.profile-dropdown a, .profile-dropdown button {
    display: block;
    width: 100%;
    color: white;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

.profile-dropdown a:hover{
    background-color: #6a0dad;
}

/* Stil za gornji deo gde je username + logout */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #444;
}

.profile-header a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
}


.logout-button {
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

.logout-button:hover {
    color: #6a0dad;
}
/* Animacija za dropdown otvaranje */
@keyframes dropdownFadeSlide {
    0% {
      opacity: 0;
      transform: translateY(-10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Kada se dropdown prikazuje */
  .profile-dropdown.show {
      animation: dropdownFadeSlide 0.3s ease forwards;
  }

  footer {
  text-align: center;
  padding: 1rem;
  color: #888;
  background-color: #1a1a2b;
  margin-top: 3rem;
}


.footer-section {
  flex: 1 1 180px;
  margin-top: -65px;
 
}
.footer-section h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}
.footer-section p {
  font-size: 14px;
  color: #888;
  font-family: Georgia, 'Times New Roman', Times, serif;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li {
  margin: 6px 0;
}
.footer-section ul li a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
}
.footer-section ul li a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #222;
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  margin-bottom:-13px ;
  font-size: 13px;
  color: #666;
  background-color: #000;
}
.footer-bottom a {
  color: #888;
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-section img{
  width: 10%;
  margin-bottom: -90px;
  margin-left: -190px;
}

.footer-socials i:hover{
 color: #6a0dad;
}

.footer-socials a{
  font-size: 1.5rem;
 gap: 20px;
}

.footer-socials{
  position: absolute;
  margin-left: 50.5%;
  margin-top: -40px;
  border-left: 0.5px solid #222;
  padding-left: 30px;
  
}
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* 🎴 Horizontalni dizajn kartica (3 po redu) */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  justify-items: center;
  align-items: start;
  margin-top: 0px;
  width: 100%;
  max-width: 1600px;
  padding: 0 40px;
  box-sizing: border-box;
}

/* 📱 Responsive – smanjuje broj kolona po veličini ekrana */
@media (max-width: 1400px) {
  .anime-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .anime-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* Glavna kartica – horizontalni raspored */
.anime-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 1000px;
  height: 300px; 
  background: linear-gradient(145deg, rgba(20, 0, 40, 0.9), rgba(35, 0, 70, 0.85));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(155, 48, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}



.anime-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(155, 48, 255, 0.5);
}

/* Leva strana – slika */
.anime-thumb {
  position: relative;
  flex: 0 0 220px; 
  height: 100%;
  overflow: hidden;
  border-right: 2px solid rgba(255, 255, 255, 0.05);
  background-color: #0a0214; 
}

.anime-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 2 / 3;
  /* Uklonjene image-rendering vrednosti */
  image-rendering: auto;
  transform: scale(1.02);
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: brightness(1.05) contrast(1.05);
  will-change: transform, filter;
  backface-visibility: hidden;
}
.anime-thumb img {
  cursor: pointer;
}

.anime-card:hover .anime-thumb img {
  transform: scale(1.08);
  filter: brightness(1.15) contrast(1.05);
}


.anime-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent 40%);
  pointer-events: none;
}


/* Overlay preko slike – zvezdica i status */
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;

  /* 🟢 Dodaj ovo ispod: */
  pointer-events: none; /* sada overlay ne blokira klikove */
}

.rating-container,
.status-container {
  pointer-events: auto; /* ali zvezdice i status i dalje mogu da reaguju */
}


/* 🌟 Ocena (gore desno — zvezdica sa brojem unutra) */
.rating-container {
  align-self: flex-end;
  position: relative;
  z-index: 5;
}

/* Glavna zvezda — broj unutar nje */
.main-star {
  position: relative;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: gold;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;

}

/* Ikonica zvezde u sredini */
.main-star i {
  font-size: 22px;
}

/* Broj unutar zvezdice */
.main-star span {
  position: absolute;
  font-size: 12px;
  color: white;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Hover efekat */
.main-star:hover {
  transform: scale(1.15);
  
}

/* ✨ Dropdown sa ocenom (kad se otvori) */
.rating-dropdown {
  position: absolute;
  top: 45px;
  right: -5px;
  background: rgba(15, 15, 15, 0.95);
  
  padding: 8px 10px;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  animation: fadeInStars 0.25s ease;
}

@keyframes fadeInStars {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mini zvezdice unutar dropdown-a */
.star-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.star-numbered {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: gold;
  font-size: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.star-numbered:hover {
  transform: scale(1.15);
}

/* Brojevi unutar mini zvezdica */
.star-numbered span {
  position: absolute;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: bold;
  color: rgb(0, 0, 0);
  
  
}

/* Animacija kad se oceni */
.rated-pulse {
  animation: starPulse 0.4s ease-in-out;
}

@keyframes starPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}


/* 🔹 Status (donji levi ugao slike) */
.status-container {
  align-self: flex-start;
  z-index: 5;
  position: relative;
}

.main-status {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

/* Efekti po statusu */
.main-status[data-status="watching"] {
  background-color: rgba(0, 140, 255, 0.9);
  box-shadow: 0 0 10px rgba(0, 140, 255, 0.6);
}
.main-status[data-status="onhold"] {
  background-color: rgba(255, 215, 0, 0.9);
  color: black;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}
.main-status[data-status="completed"] {
  background-color: rgba(50, 205, 50, 0.9);
  box-shadow: 0 0 10px rgba(50, 205, 50, 0.6);
}
.main-status[data-status="dropped"] {
  background-color: rgba(255, 60, 60, 0.9);
  box-shadow: 0 0 10px rgba(255, 60, 60, 0.6);
}
.main-status[data-status="plantowatch"] {
  background-color: rgba(160, 160, 160, 0.8);
  box-shadow: 0 0 10px rgba(160, 160, 160, 0.5);
}

/* Hover efekat za status */
.main-status:hover {
  transform: scale(1.15);
  filter: brightness(1.1);
}

/* Dropdown za izbor statusa */
.status-dropdown {
  position: absolute;
  bottom: 40px;
  left: -7px;
  background: rgba(25, 25, 25, 0.95);
  border-radius: 8px;
  padding: 6px 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  animation: dropdownUp 0.2s ease;
}

@keyframes dropdownUp {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.status-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.status-btn:hover {
  transform: scale(1.15);
}

.status-btn.watching:hover { background-color: #007bff; }
.status-btn.completed:hover { background-color: #28a745; }
.status-btn.onhold:hover { background-color: #ffc107; color: #222; }
.status-btn.dropped:hover { background-color: #dc3545; }
.status-btn.plantowatch:hover { background-color: #6c757d; }

.status-pulse {
  animation: statusPulse 0.4s ease-in-out;
}

@keyframes statusPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* 🔹 Desna strana — informacije */
.anime-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px;
}

.anime-info h3 {
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  font-family: 'Josefin Sans', sans-serif;
}

.anime-status-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
}
.anime-status-tag.watching { background: #007bff; }
.anime-status-tag.completed { background: #28a745; }
.anime-status-tag.onhold { background: #ffc107; color: #222; }
.anime-status-tag.dropped { background: #dc3545; }
.anime-status-tag.plantowatch { background: #6c757d; }

.anime-details {
  font-size: 14px;
  color: #bbb;
  margin-top: 8px;
  line-height: 1.4;
}
.anime-meta {
  font-size: 5px;
  color: #c9a9ff;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  margin-top: -35px;
}

.anime-type {
  background: linear-gradient(135deg, #6a0dad, #9b30ff);
  padding: 2px 8px;
  border-radius: 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

.anime-genres {
  font-size: 10px;
  color: #d5baff;
  opacity: 0.85;
}

.episode-progress {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  margin-left: -10px;
}


.episode-counter {
  font-size: 12px;
  color: #eee;
  font-weight: 500;
}
.episode-controls {
  display: flex;
  gap: 4px;
}

.ep-btn {
  background: linear-gradient(135deg, #6a0dad, #9b30ff);
  border: none;
  color: white;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  margin-left: 7px;
}

.ep-btn:hover {
  background: linear-gradient(135deg, #9b30ff, #6a0dad);
  transform: scale(1.1);
}


/* 🔹 Filter bar iznad grida */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px auto 40px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #6a0dad;
  color: white;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn:hover {
  background: #6a0dad;
}

.filter-btn.active {
  background: #9b30ff;
  box-shadow: 0 0 10px rgba(155, 48, 255, 0.6);
}

.filter-buttons {
  margin-left: 690px;
}

/* 📊 Broj serijala – desno */
.filter-info {
  font-size: 16px;
  font-weight: 500;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 100px;
}

#filterCountLabel {
  color: #aaa;
}

#filterCountValue {
  color: #c77dff;
  font-weight: 700;
}

/* 🎯 Leva kolona filtera */
.filters {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 220px;
  background-color: #141414;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  margin-left: 70px;
  margin-top: 30px;
  height: fit-content;
}

/* 🎛️ Filter grupa (svaka sekcija) */
.filter-group {
  display: flex;
  flex-direction: column;
}

/* Dugme koje otvara opcije */
.filter-toggle {
  background: linear-gradient(135deg, #6a0dad, #8b35ff);
  border: none;
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filter-toggle:hover {
  background: linear-gradient(135deg, #8b35ff, #6a0dad);
}

/* 📋 Lista opcija */
.filter-options {
  display: none;
  flex-direction: column;
  background-color: rgba(30, 30, 30, 0.9);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 6px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-options label {
  color: #ddd;
  font-size: 14px;
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-options input[type="checkbox"] {
  accent-color: #9b30ff;
  transform: scale(1.1);
  cursor: pointer;
}

@media (max-width: 900px) {
  .content-area {
    flex-direction: column;
    align-items: center;
  }

  .filters {
    width: 90%;
    position: static;
  }

  .anime-grid {
    justify-content: center;
  }
}

/* ============================= */
/* 🌟 RASPORED ELEMENTA NA STRANICI */
/* ============================= */

/* Naslov */
main h1 {
  margin-top: 140px;
  margin-left: 70px;
  text-align: center;
  font-size: 32px;
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: 1px;
}

/* 🔹 Deo sa centralnim filter dugmadima i brojem serijala */
.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 25px auto 20px;
  width: 100%;
  position: relative;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-right: 600px;
}

/* 📊 Broj serijala desno od filtera */
.filter-info {
  position: absolute;
  right: 10%;
  font-size: 16px;
  font-weight: 500;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 55px;
}

#filterCountLabel {
  color: #aaa;
}

#filterCountValue {
  color: #c77dff;
  font-weight: 700;
}

/* ============================= */
/* 🎯 GLAVNI KONTEJNER — FILTERI LEVO, GRID DESNO */
/* ============================= */
.content-area {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  width: 90%;
  
}

/* 🎛️ Leva kolona filtera */
.filters {
  flex-shrink: 0;
  width: 230px;
  background-color: #141414;
  border-radius: 12px;
  padding: 18px 15px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 1px;
}

/* Filter grupe i dugmad */
.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-toggle {
  background: linear-gradient(135deg, #6a0dad, #8b35ff);
  border: none;
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filter-toggle:hover {
  background: linear-gradient(135deg, #8b35ff, #6a0dad);
}

.filter-options {
  display: none;
  flex-direction: column;
  background-color: rgba(30, 30, 30, 0.95);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 6px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-options label {
  color: #ddd;
  font-size: 14px;
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-options input[type="checkbox"] {
  accent-color: #9b30ff;
  transform: scale(1.1);
  cursor: pointer;
}



/* 🧩 Responsivnost */
@media (max-width: 1000px) {
  .content-area {
    flex-direction: column;
    align-items: center;
  }
  .filters {
    width: 90%;
  }
  .anime-grid {
    justify-content: center;
  }
  .filter-info {
    position: static;
    margin-top: 10px;
  }
}

/* Žanr skrol lista */
.filter-group:nth-child(3) .filter-options {
  max-height: 160px; /* vidljivo 6–7 žanrova */
  overflow-y: auto;
}

/* Estetika scrollbar-a unutar žanra */
.filter-group:nth-child(3) .filter-options::-webkit-scrollbar {
  width: 8px;
}

.filter-group:nth-child(3) .filter-options::-webkit-scrollbar-thumb {
  background-color: #6a0dad;
  border-radius: 6px;
}

.filter-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-toggle i {
  transition: transform 0.3s ease;
}

.filter-toggle.open i {
  transform: rotate(180deg);
}

/* 🔔 ANIMACIJA ZA ZVONCE KAD STIGNU NOVA OBAVEŠTENJA */

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
  20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes glow {
  0%, 100% { 
    filter: drop-shadow(0 0 2px #ffd25f);
  }
  50% { 
    filter: drop-shadow(0 0 10px #ffd25f) drop-shadow(0 0 20px #ff9f00);
  }
}

.notification-bell.shake {
  animation: 
    shake 0.6s ease-in-out,
    pulse 0.6s ease-in-out,
    glow 0.6s ease-in-out;
}

.notif-count {
  animation: countPop 0.3s ease-out;
}

@keyframes countPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.notif-dropdown {
  animation: dropdownSlide 0.3s ease-out;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(255, 71, 71, 0.7);
  }
  50% { 
    box-shadow: 0 0 0 6px rgba(255, 71, 71, 0);
  }
}

.notif-count {
  animation: pulseDot 2s infinite;
}

.notification-bell:hover i {
  animation: swing 0.5s ease-in-out;
}

@keyframes swing {
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(5deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

 #markAllBellBtn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  float: right;
  margin-top: -2px;
  transition: 0.2s;
}
#markAllBellBtn:hover {
  color: #3ad86b;
}

/* ============================================
   🎨 PAGINACIJA — IDENTIČNA ANIME.LISTA STILU
===============================================*/
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px;
}

.pagination-btn {
  background: none;
  color: white;
  border: none;
  padding: 14px 18px;
  font-size: 30px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.3s ease;
}

.pagination-btn.active {
  background-color: purple;
  color: white;
  font-weight: bold;
  border-radius: 6px;
}

.pagination-btn:hover {
  color: #6a0dad;
}

#page-numbers {
  display: flex;
  gap: 6px;
}

#page-numbers button {
  background: none;
  color: white;
  border: none;
  padding: 14px 18px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.3s ease;
}

#page-numbers button.active {
  background-color: purple;
  color: white;
  font-weight: bold;
}

#page-numbers button:hover {
  color: #6a0dad;
}
