@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;
    padding-top: 120px; /* <<<<< dodato zbog navbar fiksiranja */
  }

/* 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: 80%;
  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;
}

.filter-button {
    
    background: none;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: 0.3s;
}

.filter-button:hover {
    color: #9624e7;  /* Tamno ljubičasta */
    background: none;
}

.nav-search .filter {
    position: absolute;
    right: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
}

.nav-search:hover .filter-button,
.nav-search:hover .fa-filter {
    color: #9624e7; /* Ljubičasta boja */
    cursor: pointer;
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
    text-shadow: 0px 0px 10px rgba(150, 36, 231, 0.6);
}

.nav-search .FILTERTEXT {
    padding-left: 8px;
}
 
.nav-search .filter::before{
    content: '\f0b0'; /* FontAwesome filter ikonica */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: 0.3s;
}

.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;
}

/* Strelice */
.arrows{
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 15px;
}

.slide-counter {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: white;
    font-weight: bold;
    gap: 5px;
}
.slide-counter .current {
    font-size: 28px;
    font-weight: bold;
    color: #a855f7; /* Ljubičasta boja */
}
.slide-counter .total {
    font-size: 18px;
    opacity: 0.7;
}

.arrows button {
  background: none;
  border: none;
  font-family: monospace;
  font-size: 32px;
  color: #eee;
  transition: .3s;
  cursor: pointer;
}

.arrows button:hover {
  color: #a855f7; /* Ljubičasta */
}

/* Responsivnost */
@media screen and (max-width: 768px) {
  .navbar {
    width: 90%;
    padding: 10px 15px;
  }

  .nav-search input {
    width: 180px;
  }
}



.profile-container {
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.profile-header {
    text-align: center;
   
}

.profile-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.profile-header h1 {
    margin: 10px 0;
    font-size: 28px;
}

.profile-header p {
    color: #666;
}

.profile-sections {
    margin-top: 20px;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
}

.profile-section ul {
    list-style: none;
    padding: 0;
}

.profile-section ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.profile-section ul li:last-child {
    border-bottom: none;
}

#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;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: whitesmoke; /* svetlo ljubičasta sa prozirnošću */
    margin: 8% auto;
    padding: 30px 20px;
    width: 350px;
    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;
}

.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 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;
}

.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;
}

#publicProfileLink{
    text-decoration: none;
    color: #9624e7;
}

#publicProfileLink:hover{
 color: #800080;
}


.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 {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background-color: #111;
  }
  
  .logo1 {
    width: 170px;
    margin-bottom: -20px;
  }
  
  .socials a {
    margin: 0 10px;
    font-size: 1.5rem;
    color: #fff;
    transition: color 0.3s;
  }
  
  .socials a:hover {
    color: #800080;
  }



/* Profile Main */
.profile-main {
    background: none; /* Makni ljubičastu pozadinu */
    text-align: left;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔪 Kill hero background, bez obzira šta je bilo pre */
section.profile-hero,
section.profile-hero::before,
section.profile-hero::after {
  background: none !important;
  background-image: none !important;
  content: none !important;
}

.profile-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: -600px;
  padding: 22px 500px 30px 30px;
  border-radius: 20px;
  overflow: hidden;

  /* 🟣 Ljubičasti fade koji prekriva sliku na levoj strani */
  background-image:
    linear-gradient(
      to right,
      rgb(55, 10, 97) 0%,       /* jaka ljubičasta - ne vidi se slika */
      rgb(49, 8, 88) 3%,      /* još uvek čista ljubičasta */
      rgba(52, 7, 95, 0.85) 40%,   /* počinje da popušta */
      rgba(40, 5, 73, 0.45) 65%,   /* vidi se deo slike */
      rgba(155, 48, 255, 0.15) 80%,   /* skoro čista slika */
      rgba(155, 48, 255, 0) 100%      /* čista slika na krajnjoj desnoj */
    ),
    var(--profile-info-bg, url("images/profile-fallback.jpg")) !important;

  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;

  /* malo toniranja i zasićenja slike */
  background-blend-mode: normal;
  backdrop-filter: blur(8px) saturate(1.15);

  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  z-index: 1;
}

/* sadržaj iznad */
.profile-info > * {
  position: relative;
  z-index: 1;
}





/* Avatar i tekst ostaju isti */
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #9b30ff;
}

.profile-text h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
}

.profile-text p {
  margin: 4px 0;
  color: #ccc;
  font-size: 16px;
}

#publicProfileLink {
  color: #c06a07;
  text-decoration: none;
}
#publicProfileLink:hover {
  color: #c58907;
  
}

.profile-sections {
    max-width: 900px;
    margin: auto;
    background: #0f0422;
    border-radius: 10px;
    padding: 20px;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-section h2 {
    color: #9b30ff;
    border-bottom: 2px solid #9b30ff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.profile-section ul {
    list-style: none;
    padding: 0;
}

.profile-section ul li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.profile-section ul li:last-child {
    border-bottom: none;
}

/* 🔹 Grid layout za sadržaj ispod headera */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* 🔹 Aktivnosti */
.activities-section h3 {
    border-bottom: 1px solid #fff3;
    padding-bottom: 5px;
    margin-bottom: 15px;
}
.activity-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: 0.3s ease-in-out;
}
.activity-item:hover {
    background: rgba(255, 255, 255, 0.2);
}
.activity-item a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
}
.activity-item:hover a {
    text-decoration: underline;
    color: #f0f;
}
.activity-item span {
    color: #ccc;
    margin-left: 10px;
}

/* 🔹 Watch lista */
.saved-series-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}
.saved-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saved-header h3{
    margin-top: -3px;
}

.activities-section h3{
    margin-top: 5px;
}
.view-all-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color:rgba(190, 13, 206, 0.5);
  border: none;
  margin-top: -25px;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 50px;
  color: #cfcfcf; /* siva boja teksta */
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.view-all-button:hover {
  background-color: rgba(190, 13, 206, 0.5);
  color: #ffffff; /* posvetli tekst */
  transform: translateY(-1px);
}

/* Strelica ↗️ */
.link-arrow {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  margin-left: -5px;
  color: white;
  transition: transform 0.25s ease, color 0.25s ease;
}

.view-all-button:hover .link-arrow {
  transform: translate(1px, -1px); /* dijagonalno desno-gore */
  color: #ffffff;
}


/* 🔹 Watch kartice */
.saved-series-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.anime-card {
    position: relative;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
.anime-card:hover {
    transform: scale(1.04) !important; 
    transition: transform 0.3s ease-in-out;
}
.anime-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: 0.3s ease-in-out;
}

/* 🔹 Tekst preko slike */
.anime-info {
    position: absolute;
    bottom: 10px;
    left: 15px;
    z-index: 2;
    color: white;
}
.anime-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.anime-icons {
    display: flex;
    gap: 8px;
}
.type-icon,
.episodes-icon {
    background-color: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* 🔹 Fade-in efekat */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


.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;
}

/* Ovo osigurava da footer uvek ostaje dole */
.footer-bottom {
  margin-top: auto;
}

.profile-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;
}





/* zadrži postojeći izgled .profile-main, samo ga postavi iznad backdroppa */
.profile-main{
  position: relative;
  z-index: 1;
  padding: 24px;
}


  /* Raspored profila */
.profile-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

/* Leva sekcija (postojeći deo) */
.profile-left {
  flex: 1.3;
  margin-left: 600px;
}

/* Desna sekcija */
.profile-right {
  flex: 1;
  margin-left: -100px;
 
}

/* Stats panel */
.anime-stats {
    margin-top: 22px;
    height: auto;
  width: 70%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}


.anime-stats h2 {
  font-size: 22px;
  font-family: 'Josefin Sans', sans-serif;
  margin-bottom: 15px;
  margin-top: -2px;
  margin-left: -2px;
}

/* donut i lista statusa */
.stats-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stats-donut {
  position: relative;
  width: 140px;
  height: 140px;
}

.stats-donut canvas {
  width: 140px;
  height: 140px;
}

.stats-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.stats-center span {
  font-size: 22px;
  font-weight: bold;
  display: block;
}

.stats-center p {
  font-size: 13px;
  opacity: 0.8;
}

/* status lista */
/* 🔹 Grid raspored za status kartice */
.stats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "watching onhold"
    "completed dropped"
    "plan plan";
  gap: 10px;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 14px; /* malo šire sa strane */
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.stats-list li span:last-child {
  margin-left: 10px; /* 👈 razmak između naziva i broja */
  font-weight: 600;
  color: #fff;
}


/* ✅ Raspored po grid zonama */
.stats-list li.left.status-watching { grid-area: watching; }
.stats-list li.left.status-completed { grid-area: completed; }
.stats-list li.right.status-onhold { grid-area: onhold; }
.stats-list li.right.status-dropped { grid-area: dropped; }
.stats-list li.full { grid-area: plan; }

/* Boje po statusima */
.status.watching { color: #3b82f6; }   /* zeleno */
.status.completed { color: #22c55e; }  /* plavo */
.status.onhold { color: #eab308; }     /* žuto */
.status.dropped { color: #ef4444; }    /* crveno */
.status.plan { color: #9ca3af; }       /* sivo */

/* mini info */
.stats-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 15px;
  font-size: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 10px;
}

.stats-footer div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-footer i {
  margin-bottom: 4px;
  color: #a259ff;
}


.stats-circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.stats-circle svg {
  transform: rotate(-90deg);
  width: 120px;
  height: 120px;
}

.progress-ring {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 50% !important; /* čisto estetski, da ostane kružno */
}
.stats-donut,
.stats-circle {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}


/* Pozadinski sivi krug */
.progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

/* Glavni krug sa gradijentom */
.progress-ring-value {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 326;
  stroke-dashoffset: 326;
 
  
}

/* Tekst u sredini */
.stats-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

.stats-center span {
  font-size: 22px;
  font-weight: bold;
  display: block;
}

.stats-center p {
  font-size: 13px;
  opacity: 0.8;
}

/* 🔹 Aktivnosti – izgled i dugme za brisanje */
.activities-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.activity-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px 16px;
  transition: background 0.3s, transform 0.2s ease;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.activity-item a {
  color: #eaeaea;
  text-decoration: none !important; /* ⬅️ uklanja underline čak i pri hoveru */
  font-size: 15px;
  line-height: 1.4;
}

.activity-item strong {
  margin: 0 4px;
  color: #fff;
}

.anime-title-link {
  color: #c06a07;
 
  margin-left: 4px;
  font-weight: 500;
}

.activity-item a:hover .anime-title-link {
  color: #d1981c;
  text-decoration: none;
}



/* ❌ X dugme */
.remove-activity {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 18px;
  line-height: 1;
  margin-left: 10px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}

.remove-activity:hover {
  color: #ff3b3b;
  transform: scale(1.2);
}

/* fade-out animacija */
.fade-out {
  opacity: 0;
  transform: translateX(-8px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 💤 Kad nema aktivnosti */
.no-data {
  text-align: center;
  color: #bbb;
  font-style: italic;
  font-size: 15px;
  padding: 10px 0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.activity-item.fade-out {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 🔮 Tranzicija za profil info i statistiku (kao watch list / activities) */
.profile-info,
.anime-stats {
  opacity: 0;
  transform: translateY(25px);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.profile-info.visible,
.anime-stats.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.stats-list a.stats-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  transition: background 0.3s ease, transform 0.2s ease;
}

.stats-list a.stats-link:hover {
  transform: translateY(-1.6px);
}

/* 🔔 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;
}