/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-image: url(../assets/background.png);
  background-size: cover;  /* face imaginea să acopere tot ecranul */
  background-position: center;  /* centrează imaginea */
  background-repeat: no-repeat;  /* previne repetarea imaginii */
  background-attachment: fixed;  /* face imaginea fixă la scroll */
  color: white;
  min-height: 100vh;
}

/* Container Layout */
.container {
  display: grid;
  grid-template-columns: 250px 1fr 300px;
  min-height: 100vh;
  max-width: 1920px;
  margin: 0 auto;
  gap: 20px;
  padding: 0 20px;
}

/* Left Sidebar Styles */
.sidebar {
  grid-column: 1;
  width: 250px;
  padding: 20px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
}

.nav-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-item.settings {
  margin-top: auto; /* This pushes the settings to the bottom */
  margin-bottom: 20px;
}

.logo {
  margin-bottom: 30px;
}

.logo img {
  max-width: 180px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px;
  color: #e91e63;
  text-decoration: none;
  margin-bottom: 10px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.nav-item:hover {
  background-color: #333;
}

.nav-item i {
  margin-right: 15px;
  width: 20px;
}

.nav-item.active {
  background-color: #333;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
}

/* Main Content Styles */
.main-content {
  grid-column: 2;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 0;
}

/* User Profiles Section */
.user-profiles {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px 0;
  overflow-x: auto;
}

.profile {
  text-align: center;
  min-width: 80px;
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e91e63;
  margin-bottom: 10px;
  background-color: #333;
}
.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-img.small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e91e63;
  margin-right: 10px;
  overflow: hidden;
  text-transform: uppercase;
}

.profile-img.large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #e91e63;
  background-color: #1c1f26;
  color: white;
  font-weight: bold;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-transform: uppercase;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.profile-img,
.avatar-initial {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 24px;
  text-transform: uppercase;
  background-color: #1c1f26;
  overflow: hidden;
}

/* Search avatar specific styles */
.search-avatar,
.search-item .avatar-initial {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  font-size: 16px !important;
  border: 2px solid #e91e63;
  background-color: #1c1f26;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
}

.post-avatar img {
  width: 40px;              /* sau cât ai nevoie */
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #e91e63; /* dacă vrei bordură */
}

/* Post Styles */
.post-options {
  position: relative;
  margin-left: auto;
  cursor: pointer;
}

.post-options-toggle {
  font-size: 1.2rem;
  padding: 5px;
}

.post-options-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: rgba(30, 30, 30, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: none;
  z-index: 1000;
  min-width: 140px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  overflow: hidden;
  padding: 4px 0;
}

.post-options-menu .post-option {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}

.post-options-menu .post-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e91e63;
}

.post-options-menu .post-option.delete-post {
  color: #ff4444;
}

.post-options-menu .post-option.delete-post:hover {
  background: rgba(255, 68, 68, 0.1);
}

/* Modal Wrapper */
.modal.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

/* Interiorul modalului */
.modal-content {
  background: #1c1c1c;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: zoomIn 0.2s ease-out;
  max-width: 350px;
  width: 100%;
  color: #fff;
}

/* Butoane */
.modal-buttons {
  margin-top: 15px;
}

.modal-buttons button {
  margin: 0 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-delete {
  background: #e74c3c;
  color: white;
}

.btn-cancel {
  background: #444;
  color: white;
}
.report-form {
  background: #2c2c2c;
  color: white;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 16px;
  width: 280px;
  max-width: 90vw;
  font-family: inherit;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.report-form .report-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 14px;
  text-align: center;
}


.report-textarea {
  background: #1b1b1b;
  border: 1px solid #666;
  border-radius: 6px;
  padding: 10px;
  color: white;
  resize: vertical;
  width: 100%;
  height: 100px;
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}


.report-textarea.hidden {
  display: none;
}

.report-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.report-actions button {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

.send-report-btn {
  background-color: #e91e63;
  color: white;
}

.cancel-report-btn {
  background-color: #555;
  color: white;
}

.report-toast {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background-color: #2c2c2c;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  font-size: 0.95rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.report-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.report-toast.success {
  background-color: #4caf50;
}

.report-toast.error {
  background-color: #e53935;
}


/* Animații */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Global hashtag styling (used across feed, profile, posts) */
.hashtag {
  color: #e91e63;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hashtag:hover {
  color: #ff2e74;
  text-shadow: 0 0 8px rgba(233, 30, 99, 0.6);
}


.post {
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  visibility: visible !important;
  opacity: 1 !important;
}

.post:hover {
  transform: translateY(-2px);
}

.post-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-header .profile-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 16px;
  border: 2px solid #e91e63;
}

/* Home feed: fallback initials inside post headers should match avatar image size.
   Note: when the frame system wraps initials, it copies the `avatar-initial` class onto
   the wrapper too; this targets the direct child (wrapped or not) and then the inner letter. */
.feed .post-header > .avatar-initial {
  width: 48px;
  height: 48px;
  margin-right: 16px;
  font-size: 16px;
  line-height: 1;
}

.feed .post-header > .avatar-initial.avatar-wrapper {
  display: inline-block;
}

.feed .post-header > .avatar-initial.avatar-wrapper .avatar-inner > .avatar-initial {
  width: 100%;
  height: 100%;
  margin-right: 0;
  font-size: 16px;
  line-height: 1;
}

/* Home feed: if an avatar IMG fails, the fallback initial is injected inside `.profile-img` */
.feed .post-header .profile-img > .avatar-initial {
  width: 100%;
  height: 100%;
  margin-right: 0;
  font-size: 16px;
  line-height: 1;
}

.post-info h3 {
  color: #e91e63;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.post-info span {
  color: #888;
  font-size: 0.9rem;
}

.post-content {
  padding: 20px;
  position: relative;
  width: 100%;
  overflow: visible; /* Change from hidden to visible */
}

.post-text {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.5;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(233, 30, 99, 0.1);
  color: #e91e63;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.game-tag i {
  margin-right: 8px;
}

.post-media {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  margin: 10px 0;
}

video.post-media {
  background: rgba(0, 0, 0, 0.1);
}

/* Post tags styling */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  padding: 0 20px;
}

.post-tags .tag {
  display: inline-flex;
  align-items: center;
  background: rgba(233, 30, 99, 0.1);
  color: #e91e63;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.9rem;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* Add hover effect */
.post-tags .tag:hover {
  background: rgba(233, 30, 99, 0.2);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  background: rgba(233, 30, 99, 0.1);
  color: #e91e63;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.post-actions {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 24px;
}

.action-btn {
  background: none;
  border: none;
  color: #888;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn i {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.action-btn:hover {
  color: #e91e63;
}

.action-btn.active {
  color: #e91e63;
}

.action-btn.active i {
  transform: scale(1.1);
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1.1); }
}

/* Error and empty states */
.no-posts, .error-message {
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: #888;
}

.error-message i {
  color: #ff4444;
  font-size: 2rem;
  margin-bottom: 16px;
}

/* Status Update Styles */
.status-update {
  background-color: rgba(233, 30, 99, 0.1);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid rgba(233, 30, 99, 0.2);
}

.status-text {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.status-details {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #888;
}

.status-time, .status-game {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-time::before {
  content: "⏱";
}

.status-game::before {
  content: "🎮";
}

button:hover {
  background: #ff0066;
  transition: 0.3s ease-in-out;
}

.post-actions span:active {
  transform: scale(1.2);
  transition: transform 0.2s ease-in-out;
}

/* Right Sidebar Styles */
.right-sidebar {
  grid-column: 3;
  width: 300px;
  padding: 20px;
  height: 100vh;
  position: sticky;
  top: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.recommended-followers {
  margin-top: 20px;
}

.recommended-followers h3 {
  margin-bottom: 20px;
  color: #888;
}

.follow-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.follow-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.follow-user .profile-img {
  margin-bottom: 0;
}

.follow-btn {
  background-color: #e91e63;
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: bold;
}
.follow-btn.following {
  background-color: transparent;
  border: 2px solid #e91e63;
  color: #e91e63;
  font-weight: bold;
}

.follow-btn:hover {
  background-color: #c2185b;
}
.recommended-username {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

/* Badge styles moved to /css/badges.css for consistency across site */

/* Responsive Design */
@media (max-width: 1400px) {
  .container {
    grid-template-columns: 250px 1fr;
  }
  .right-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 70px 1fr;
    padding: 0 10px;
  }
  .sidebar {
    width: 70px;
  }
  .nav-item span {
    display: none;
  }
  .main-content {
    padding: 10px 0;
  }
}

.my-profile {
  color: #e91e63 !important;  /* folosim culoarea roz pe care o folosim în tot site-ul */
  text-decoration: none;
  font-weight: bold;
  font-size: 22px;
}

.my-profile:visited {
  color: #e91e63 !important;  /* păstrăm aceeași culoare și pentru link-uri vizitate */
}

.my-profile:hover {
  color: #ff4081 !important;  /* opțional: o nuanță mai deschisă de roz la hover */
}

/* Search bar */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: flex-start;
  transition: background-color 0.35s ease;
}

.search-overlay.active {
  display: flex;
  background-color: rgba(0, 0, 0, 0.9);
  animation: searchOverlayFadeIn 0.35s ease forwards;
}

.search-container {
  width: 100%;
  max-width: 600px;
  background-color: #121212;
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  transform: translateY(-30px) scale(0.96);
  opacity: 0;
}

.search-overlay.active .search-container {
  animation: searchContainerSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s forwards;
}

.search-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #333;
}

.search-header i {
  color: #e91e63;
  margin-right: 12px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  outline: none;
}

.search-input::placeholder {
  color: #666;
}

.close-search {
  background: none;
  border: none;
  color: #e91e63;
  cursor: pointer;
  padding: 8px;
}

.search-overlay .close-search,
.search-overlay .close-search:hover,
.search-overlay .close-search:focus {
  color: #e91e63;
  background: none;
  transition: none;
  transform: none;
}

.search-results {
  max-height: 70vh;
  overflow-y: auto;
}

.search-section {
  padding: 16px;
  border-bottom: 1px solid #333;
}

.search-section h3 {
  color: #e91e63;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  color: white;
  opacity: 0;
  transform: translateY(10px);
  animation: searchItemFadeIn 0.3s ease forwards;
}

/* Staggered delay for each search item */
.search-item:nth-child(1) { animation-delay: 0.05s; }
.search-item:nth-child(2) { animation-delay: 0.1s; }
.search-item:nth-child(3) { animation-delay: 0.15s; }
.search-item:nth-child(4) { animation-delay: 0.2s; }
.search-item:nth-child(5) { animation-delay: 0.25s; }
.search-item:nth-child(6) { animation-delay: 0.3s; }
.search-item:nth-child(7) { animation-delay: 0.35s; }
.search-item:nth-child(8) { animation-delay: 0.4s; }

.search-item:hover {
  background-color: rgba(233, 30, 99, 0.08);
  transform: translateX(4px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.item-meta {
  color: #e91e63;
  font-size: 14px;
}

/* Modificăm butonul de search din sidebar să fie button în loc de link */
.search-trigger {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

/* Responsive adjustments for search */
@media (max-width: 768px) {
  .search-container {
      margin: 0;
      height: 100%;
      max-width: none;
      border-radius: 0;
  }
  
  .search-results {
      max-height: calc(100vh - 70px);
  }
}

/* Search animations keyframes */
@keyframes searchOverlayFadeIn {
  from { background-color: rgba(0, 0, 0, 0); }
  to   { background-color: rgba(0, 0, 0, 0.9); }
}

@keyframes searchContainerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes searchItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Update premium button styles */
.premium-btn {
    background: linear-gradient(45deg, #e91e63, #ff4081);
    margin: 1rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.premium-btn i {
    color: white;
    font-size: 1.2rem;
}

.premium-btn span {
    color: white;
    opacity: 1;
}

.premium-btn .premium-badge {
  /* small layout-only override for the premium nav button (keeps badge inside the button) */
  position: absolute;
  right: 1rem;
  padding: 4px 0px;
  border-radius: 12px;
  font-size: 12px;
}

/* Badge visual styles are centralized in /css/badges.css */

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    background: linear-gradient(45deg, #ff4081, #e91e63);
}

/* Ensure the premium button aligns with other nav items */
.nav-item.premium-btn {
    margin: 1rem;
    padding: 1rem;
}

/* Update feed container */
.feed {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Add comments section styling */
.comments-section {
    background: rgba(20, 20, 20, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: none;
}

.comments-section.active {
    display: block;
}

.comment-form {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.comments-section.active .comment-form {
    transform: translateY(0);
    opacity: 1;
}

.comments-list {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    transition-delay: 0.1s;
}

.comments-section.active .comments-list {
    transform: translateY(0);
    opacity: 1;
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 8px;
}

/* Comment avatar normalization (size + centering only) */
.comment > img.profile-img.small,
.comment > .avatar-initial,
.comment > .profile-initial,
.comment > .avatar-wrapper,
.comment > .avatar-container,
.reply > img.profile-img.small,
.reply > .avatar-initial,
.reply > .profile-initial,
.reply > .avatar-wrapper,
.reply > .avatar-container {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  flex: 0 0 40px !important;
}

.comment > .avatar-wrapper,
.comment > .avatar-container,
.reply > .avatar-wrapper,
.reply > .avatar-container {
  --avatar-size: 40px;
}

.comment > .avatar-initial,
.comment > .profile-initial,
.comment > .avatar-wrapper,
.comment > .avatar-container,
.reply > .avatar-initial,
.reply > .profile-initial,
.reply > .avatar-wrapper,
.reply > .avatar-container {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.comment > img.profile-img.small,
.reply > img.profile-img.small {
  display: block;
  border-radius: 50% !important;
  object-fit: cover;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  flex-shrink: 0;
}

.comment > .avatar-initial,
.comment > .profile-initial,
.reply > .avatar-initial,
.reply > .profile-initial {
  border-radius: 50% !important;
  line-height: 1;
  overflow: hidden;
}

.comment > .avatar-initial,
.reply > .avatar-initial {
  font-size: 16px !important;
}

/* If frames are present in comments, keep scaling consistent - override in avatar-frame.css */

.comment:hover {
    background: rgba(255, 255, 255, 0.05);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    
}

.comment-username {
    color: #e91e63;
    font-weight: 500;
    border-bottom: none !important;
}

.comment-time {
  position: absolute;
  right: 35px;
    color: #666;
    font-size: 0.8rem;
    border-bottom: none !important;
}

.comment-text {
    color: white;
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.comment-action {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-action.like-btn {
    background: none;
    border: none;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-action.like-btn i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.comment-action.like-btn:hover {
    color: #e91e63;
}

.comment-action.like-btn.active {
    color: #e91e63;
}

.comment-action.like-btn.active i {
    transform: scale(1.1);
}
.see-more-comments {
  text-align: center;
  color: #aaa;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.see-more-comments:hover {
  color: #e91e63;
  cursor: pointer;
  text-decoration: underline;
}
.profile-initial {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background-color: #e91e63;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.reply-input-container {
  margin-top: 12px;
}
.replies-count-inline {
  display: inline-block;
  margin-left: -12px;
  font-size: 0.9rem;
  color: #999;
  vertical-align: middle;
  cursor: default;
}


@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

.pop {
    animation: pop 0.3s ease;
}

/* Update action buttons */
.action-btn.active {
    color: #e91e63;
}

.action-btn.active i {
    animation: pop 0.3s ease;
}

.no-posts, .error-message {
    text-align: center;
    padding: 40px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 16px;
    color: #666;
}

.error-message i {
    color: #e91e63;
    font-size: 24px;
    margin-bottom: 12px;
}

.feed {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 200px;
    visibility: visible !important;
    opacity: 1 !important;
}

.post {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    visibility: visible !important;
    opacity: 1 !important;
}

.post-content {
    padding: 20px;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
}

.post-actions {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 24px;
}

/* Remove any conflicting styles */
.style {
    display: none;
}

/* Update the like button styles */
.action-btn.like-btn {
    background: none;
    border: none;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.action-btn.like-btn i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.action-btn.like-btn:hover {
    color: #e91e63;
}

.action-btn.like-btn.active {
    color: #e91e63;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

.action-btn.like-btn i.pop {
    animation: pop 0.3s ease;
}

/* Add loading state styles */
.loading {
    text-align: center;
    padding: 40px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 16px;
    color: #888;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.error-state {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 40px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 16px;
    color: #888;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.error-state i {
    font-size: 48px;
    color: #e91e63;
    margin-bottom: 16px;
}

.error-state p {
    margin: 8px 0 20px;
    color: #fff;
}

.retry-btn {
    background: #e91e63;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background: #d81557;
}

/* Ensure consistent styling between post and comment likes */
.action-btn.like-btn.active,
.comment-action.like-btn.active {
    color: #e91e63;
}

.action-btn.like-btn.active i,
.comment-action.like-btn.active i {
    transform: scale(1.1);
}

.action-btn.like-btn i,
.comment-action.like-btn i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.action-btn.like-btn {
    background: none;
    border: none;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.action-btn.like-btn i {
    font-size: 1.1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.action-btn.like-btn:hover,
.action-btn.like-btn.active {
    color: #e91e63;
}

.action-btn.like-btn i.pop {
    animation: pop 0.3s ease;
}
.save-btn {
  background: none !important;
}

.save-btn:hover {
  background: none !important;
  color: #e91e63; /* sau white, dacă vrei */
}
.save-btn i {
  font-size: 1rem;
  margin-right: 4px;
  color: inherit;
}
.save-btn.saved {
  color: #e91e63;
}
.save-count {
  margin-left: 4px;
  font-size: 0.9rem;
  color: inherit;
}



@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

/* Update comment button styles */
.action-btn.comment-btn {
    background: none;
    border: none;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn.comment-btn i {
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.action-btn.comment-btn:hover {
    color: #e91e63;
}

.action-btn.comment-btn.active {
    color: #e91e63;
}

.action-btn.comment-btn.active i {
    transform: scale(1.1);
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.comment-form button {
    padding: 8px 16px;
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.username {
    font-weight: 500;
}
.username a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.hidden {
  display: none !important;
}
/* Edit Modal - similar cu Report */
.edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#report-modal textarea {
  background: #2a2a2a;
  color: white;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 10px;
  resize: vertical;
}

.edit-modal-content {
  background-color: #2c2c2c;
  padding: 28px 32px;
  border-radius: 12px;
  width: 420px;
  max-width: 90%;
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.edit-modal-content h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

.edit-modal-content input[type="text"],
.edit-modal-content textarea,
.edit-modal-content input[type="file"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #1f1f1f;
  color: #fff;
  margin-bottom: 14px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border 0.2s ease;
}

.edit-modal-content input[type="text"]:focus,
.edit-modal-content textarea:focus,
.edit-modal-content input[type="file"]:focus {
  border: 1px solid #ff0a5c; /* culoarea ta principală */
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 10, 92, 0.3); /* opțional pentru efect glow */
}
body.modal-open {
  overflow: hidden;
}


/* Button group */
.edit-modal-content button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-right: 8px;
}
/* Grupare butoane edit */
.edit-modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  gap: 12px;
}


.edit-modal-content button[type="submit"] {
  background: #e91e63;
  color: #fff;
}

.edit-modal-content button[type="submit"]:hover {
  background: #ff2e7a;
}

.edit-modal-content button[type="button"] {
  background: #444;
  color: #ccc;
}

.edit-modal-content button[type="button"]:hover {
  background: #e91e63;
}

.select-game {
  position: relative;
}

.game-dropdown {
  position: absolute;
  background: #2b2b2b;
  border: 1px solid #444;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 999;
  display: none;
}
.game-option {
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.game-option:hover {
  background: #444;
}
.game-cover {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}
/* Cele 3 puncte de la comentarii si reply*/
.comment-options {
  position: relative;
  display: inline-block;
}

.comment-options-toggle {
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  color: white;
}

.comment-options-menu {
  display: none;
  position: absolute;
  top: 24px;
  right: 0;
  background: #1f1f1f;
  border-radius: 6px;
  min-width: 100px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.comment-options-menu .comment-option {
  padding: 8px 12px;
  font-size: 14px;
  color: white;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.comment-options-menu .comment-option:hover {
  background: #333;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #1e1e1e;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  color: white;
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal .btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal .btn.danger {
  background: #e91e63;
  color: white;
}

.toast-message {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e1e;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10000;
  font-weight: 500;
}

.toast-message.visible {
  opacity: 1;
}

.toast-message.success {
  background-color: #28a745;
  color: white;
}

.toast-message.error {
  background-color: #dc3545;
  color: white;
}

.toast-message.warning {
  background-color: #ffc107;
  color: black;
}

.edit-comment-textarea {
  width: 100%;
  min-height: 60px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #444;
  border-radius: 5px;
  background: #1e1e1e;
  color: white;
}

.edit-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.save-edit-btn,
.cancel-edit-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.save-edit-btn {
  background-color: #e91e63;
  color: white;
}

.edit-actions-placeholder {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: -20px;
}

.comment-content {
  overflow: visible !important;
}

.username-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* badge styles moved to /css/badges.css */

.username-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.username-line h3 {
  margin: 0;
  font-size: 16px;
}

/* badge styles moved to /css/badges.css */

.premium-post-badge {
  color: #ff9800;
  font-size: 14px;
}
.comment-username,
.comment-username:visited,
.comment-username:hover,
.comment-username:active {
  all: unset; /* ȘTERGE toate stilurile implicite de link */
  font-weight: 600;
  color: #e91e63;
  cursor: pointer;
  display: inline;
}
.notification-badge {
  position: absolute;
  top: 7px;
  right: 14px;
  background-color: red;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  padding: 2px 5px;
  font-weight: bold;
  z-index: 999;
  display: none; /* ascuns inițial */
}

.notification-badge.hidden {
  display: none !important;
}

/* Unread messages badge */

.unread-badge {
    position: absolute;
    top: 50%;
    right: 8px;
    background: #ff3333;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    min-width: 18px;
    transform: translateY(-50%);
}

.profile-img,
.avatar-initial {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #e91e63;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 24px;
  text-transform: uppercase;
  background-color: #1c1f26;
  overflow: hidden;
}

.highlight-comment {
  background-color: #1e1e1e;
  border: 2px solid #ff007f;
  border-radius: 6px;
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

.admin-floating-btn {
  position: fixed;
  bottom: 60px;
  right: 20px;
  background-color: #ff006a;
  color: white;
  padding: 12px 16px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-decoration: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.admin-floating-btn:hover {
  background-color: #e6005e;
}

/* Mobile-only floating profile button (visible on small screens) */
.profile-floating-btn {
  /* avatar-only floating button: transparent wrapper so only the image shows */
  position: fixed;
  bottom: 96px; /* sits above admin button (60px) */
  right: 20px;
  background: transparent;
  color: inherit;
  padding: 6px;
  border-radius: 50%;
  width: auto;
  height: auto;
  box-shadow: none;
  text-decoration: none;
  z-index: 10002; /* above admin button */
  display: none; /* shown via media query */
  align-items: center;
  justify-content: center;
}
.profile-floating-btn .profile-fab-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff2e78; /* pink ring */
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 0 6px rgba(255,0,106,0.06);
  background-color: #111; /* fallback interior */
  display: block;
}

@media (max-width: 900px) {
  .profile-floating-btn { display: flex; }
  /* ensure admin button is visible under profile button */
  .admin-floating-btn { bottom: 60px; right: 20px; }
  /* small adjustment for very narrow screens */
  @media (max-width: 420px) {
    .profile-floating-btn { right: 16px; bottom: 104px; }
    .admin-floating-btn { right: 16px; bottom: 56px; }
  }
}
 /* Ascunde complet scrollbar-ul pentru toate elementele */
/* removed empty html, body ruleset */

/* Păstrează doar partea de mai jos pentru a ascunde vizual scrollbar-ul */
* {
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE și Edge */
}
*::-webkit-scrollbar {
  display: none;            
}

/* ===== Image Lightbox ===== */
img.post-media,
.post-media img,
.post-image img {
  cursor: pointer;
}

.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}

.image-lightbox-overlay.active {
  opacity: 1;
}

.image-lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.25s ease;
  cursor: default;
}

.image-lightbox-overlay.active img {
  transform: scale(1);
}

.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 100000;
}

.image-lightbox-close:hover {
  background: rgba(233, 30, 99, 0.7);
}

/* Mentions styling */
.mention {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(233, 30, 99, 0.15);
  color: #ff2e74;
  padding: 3px 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}
.mention:hover {
  background: rgba(233, 30, 99, 0.25);
  box-shadow: 0 0 8px rgba(233, 30, 99, 0.4);
  text-decoration: none;
}

/* Mentions autocomplete dropdown */
.mention-dropdown {
  /* match post container background */
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 8px;
  z-index: 999999;
  min-width: 260px;
  max-width: 420px;
  max-height: 360px;
  overflow: auto;
}
.mention-dropdown.hidden { display: none; }
.mention-item {
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  cursor:pointer;
  border-radius:10px;
}
.mention-item:hover { 
  background: linear-gradient(90deg, rgba(233,30,99,0.04), rgba(233,30,99,0.02));
  box-shadow: inset 4px 0 0 rgba(233,30,99,0.06);
}
.mention-item.selected, .mention-item:active {
  background: linear-gradient(90deg, rgba(233,30,99,0.08), rgba(233,30,99,0.04));
  box-shadow: inset 4px 0 0 rgba(233,30,99,0.12);
}
.mention-item .avatar-container { width:44px; height:44px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.mention-item .avatar-container .search-avatar { width:44px; height:44px; border-radius:50%; object-fit:cover; display:block; border:2px solid rgba(233,30,99,0.9); }
.mention-item .avatar-container .search-avatar.avatar-initial { background:#141519; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:16px; }
.mention-item .avatar-container img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.mention-item .meta { display:flex; flex-direction:column; }
.mention-item .meta .name{ font-weight:700; color:#ffffff; font-size:15px; }
.mention-item:hover .meta .name, .mention-item.selected .meta .name { color: #ff2e74; }
.mention-item .meta .subs{ font-size:12px; color:#9aa0a6; margin-top:3px; }

/* === Fix avatar size in replies (nested comments) === */
.reply > .avatar-wrapper,
.reply > .avatar-container,
.reply > .avatar-initial,
.reply > .profile-initial {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  flex: 0 0 32px !important;
  --avatar-size: 32px !important;
  overflow: hidden !important;
}

/* Fix inner elements inside avatar-wrapper in replies */
.reply > .avatar-wrapper .avatar-inner,
.reply > .avatar-wrapper svg,
.reply > .avatar-wrapper canvas,
.reply > .avatar-container .avatar-inner,
.reply > .avatar-container svg,
.reply > .avatar-container canvas {
  width: 32px !important;
  height: 32px !important;
}

/* Fix the actual img/initial inside avatar-wrapper in replies */
.reply > .avatar-wrapper .avatar-inner img,
.reply > .avatar-wrapper .avatar-inner .avatar-initial,
.reply > .avatar-container .avatar-inner img,
.reply > .avatar-container .avatar-inner .avatar-initial,
.reply > .avatar-wrapper img,
.reply > .avatar-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* Also make sure reply itself aligns properly */
.reply {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  padding: 6px 8px;
  border-radius: 8px;
}
