/* 🔹 Globalne postavke */
body {
    font-family: Arial, sans-serif;
    background-color: #1e0036;
    color: #fff;
    margin: 0;
    padding: 20px;
}

/* 🔹 Glavni omotač profila */
.profile-container {
    max-width: 1100px;
    margin: auto;
    background: rgba(42, 0, 80, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

/* 🔹 Novi header (profilni deo sa backdropom) */
.profile-header-wrapper {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(187, 0, 255, 0.4);
    margin-bottom: 25px;
    overflow: hidden;
}
.profile-header-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--dynamic-backdrop);
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

/* 🔹 Profil - Info */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.profile-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    transition: 0.4s ease-in-out;
}
.profile-header img:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 1);
    transform: scale(1.05);
}
.profile-info h2 {
    font-size: 28px;
    margin: 0;
}
.profile-info p {
    font-size: 18px;
    margin: 5px 0;
}
.profile-info small {
    font-size: 14px;
    color: #ccc;
}

/* ✅ Purple frame još više "sexi" */
.with-purple-border {
    border: 3px solid rgba(187, 0, 255, 0.7);
    box-shadow: 0 0 25px rgba(187, 0, 255, 0.5);
}

/* 🔹 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;
}
.view-all-button {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s ease-in-out;
}
.view-all-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* 🔹 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.02);
}
.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);
}

/* 🔹 Responsive */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .saved-series-section,
    .activities-section {
        width: 100%;
    }
}

/* =============================
   🔮 MODERNI PROFIL STIL
============================= */
.profile-stats {
  display: flex;
  gap: 40px;
  margin-top: 10px;
}

.profile-stats div {
  text-align: center;
}

.profile-stats span {
  display: block;
  font-size: 22px;
  font-weight: bold;
  color: #bb00ff;
}

.profile-stats p {
  margin: 0;
  font-size: 14px;
  color: #ccc;
}

/* 🔹 Tab navigacija */
.profile-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 25px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #6a0dad, #9b30ff);
  box-shadow: 0 4px 10px rgba(155, 48, 255, 0.3);
}

.tab-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* 🔹 Sekcije */
.tab-content {
  display: none;
  animation: fadeTab 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeTab {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🔹 Aktivnosti — kao feed */
.activities-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.3s;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 🔹 Saved grid */
.saved-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.saved-series-grid .anime-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.saved-series-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s;
}

.saved-series-grid img:hover {
  transform: scale(1.1);
}

/* 🔹 Ocene */
.ratings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating-item span {
  color: #ffd25f;
  font-size: 18px;
  font-weight: bold;
}

/* 🔹 Komentari */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 10px;
}

.comment small {
  color: #aaa;
  display: block;
  margin-top: 5px;
}



  