:root {
  --primary-color: #8a2be2;
  --secondary-color: #ff1493;
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --light-text: #ffffff;
  --gray-text: #a0a0a0;
  --card-bg: #1e1e1e;
  --hover-bg: #2a2a2a;
  --border-radius: 12px;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--darker-bg);
  color: var(--light-text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--light-text);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

.hidden {
  display: none;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-bg {
  background: var(--gradient);
}

.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.header {
  height: 60px;
  background-color: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-tabs {
  display: flex;
  gap: 30px;
  align-items: center;
}

.header-tab {
  font-size: 16px;
  color: var(--gray-text);
  padding: 8px 0;
  transition: color 0.3s;
  cursor: pointer;
}

.header-tab.active {
  color: var(--light-text);
  position: relative;
}

.header-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
}

.header-search {
  position: relative;
  margin-right: 20px;
}

.header-search input {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  padding-right: 40px;
  color: var(--light-text);
  width: 200px;
}

.header-search i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.notification-button {
  position: relative;
  background: none;
  color: var(--light-text);
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.notification-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--gradient);
  color: white;
  font-size: 10px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-button {
  background: var(--gradient);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
}

.sidebar {
  min-width: 280px;
  background-color: var(--dark-bg);
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 80px;
  font-weight: 800;
  color: white;
  text-shadow: 0 0 15px rgba(138, 43, 226, 0.8);
}

.sidebar-menu {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: var(--border-radius);
  transition: background-color 0.3s;
  cursor: pointer;
}

.menu-item:hover {
  background-color: var(--hover-bg);
}

.menu-item.active {
  background-color: rgba(138, 43, 226, 0.2);
}

.menu-item i {
  margin-right: 15px;
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.menu-item span {
  font-weight: 500;
}

.home-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-dropdown i {
  font-size: 12px;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: var(--dark-bg);
}

.page-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.page-icon {
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.page-icon h1 {
  color: var(--primary-color);
  font-size: 32px;
}

.page-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-description {
  color: var(--gray-text);
  margin-bottom: 20px;
  max-width: 600px;
  line-height: 1.5;
}

.action-button {
  display: inline-block;
  background-color: rgba(138, 43, 226, 0.7);
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.action-button:hover {
  background-color: var(--primary-color);
}

.trending-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.trending-card {
  position: relative;
  width: calc(33.33% - 10px);
  min-width: 280px;
  aspect-ratio: 9/16;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--card-bg);
}

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

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.card-user {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  border: 2px solid white;
}

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

.card-username {
  font-weight: 500;
  font-size: 14px;
}

.card-title {
  font-size: 16px;
  margin-bottom: 5px;
}

.card-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.card-action {
  display: flex;
  align-items: center;
  color: var(--light-text);
  font-size: 14px;
}

.card-action i {
  margin-right: 5px;
}

.phone-showcase {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: flex-end;
}

.phone {
  position: relative;
  width: 220px;
  height: 440px;
  background-color: var(--card-bg);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background-color: black;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.text-only-post {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--dark-bg), var(--card-bg));
  color: var(--light-text);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.no-posts-message {
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  color: var(--gray-text);
  font-size: 18px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .trending-card {
    width: calc(50% - 10px);
  }
  
  .phone-showcase {
    flex-wrap: wrap;
  }
}

@media (max-width: 992px) {
  .app-container {
    flex-direction: column;
    height: auto;
  }
  
  .sidebar {
    min-width: auto;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
  }
  
  .logo-container {
    padding: 10px 0;
  }
  
  .logo {
    font-size: 60px;
  }
  
  .sidebar-menu {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
  }
  
  .menu-item {
    flex-shrink: 0;
  }
  
  .content {
    height: auto;
  }
  
  .header-tabs {
    display: none;
  }
}

@media (max-width: 768px) {
  .trending-card {
    width: 100%;
  }
  
  .header-search {
    display: none;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .page-icon {
    margin-bottom: 15px;
  }
  
  .phone-showcase {
    justify-content: center;
  }
  
  .phone {
    width: 180px;
    height: 360px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0 10px;
  }
  
  .header-actions {
    gap: 8px;
  }
  
  .post-button {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .page-title {
    font-size: 32px;
  }
  
  .phone {
    width: 150px;
    height: 300px;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal-content {
  width: 100%;
  max-width: 600px;
  background-color: var(--dark-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.close-modal {
  background: none;
  color: var(--gray-text);
  font-size: 18px;
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--light-text);
}

.modal-body {
  padding: 20px;
}

.post-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.username {
  font-weight: 500;
  color: var(--light-text);
}

#post-text {
  width: 100%;
  min-height: 120px;
  background-color: transparent;
  border: none;
  resize: none;
  color: var(--light-text);
  font-size: 18px;
  padding: 10px 0;
  outline: none;
}

#post-text::placeholder {
  color: var(--gray-text);
}

#image-preview {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: 10px;
}

#image-preview.hidden {
  display: none;
}

#image-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: var(--border-radius);
  background-color: var(--hover-bg);
}

.remove-image-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.remove-image-btn:hover {
  background-color: rgba(255, 20, 147, 0.8);
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.post-attachments {
  display: flex;
  gap: 15px;
}

.attachment-btn {
  background: none;
  color: var(--primary-color);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  cursor: pointer;
}

.attachment-btn:hover {
  background-color: rgba(138, 43, 226, 0.1);
}

.post-submit {
  padding: 10px 25px;
  color: white;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.post-submit:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .modal-content {
    width: 90%;
  }
  
  #image-preview img {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .modal-header h2 {
    font-size: 18px;
  }
  
  #post-text {
    font-size: 16px;
    min-height: 100px;
  }
  
  .post-attachments {
    gap: 10px;
  }
  
  .attachment-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

/* Notification Panel Styles */
.notification-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 350px;
  height: 100%;
  background-color: var(--dark-bg);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.notification-panel.active {
  right: 0;
}

.notification-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(3px);
  transition: opacity 0.3s;
}

.notification-backdrop.hidden {
  opacity: 0;
  visibility: hidden;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-header h2 {
  font-size: 22px;
  font-weight: 600;
}

.close-notifications {
  background: none;
  color: var(--gray-text);
  font-size: 18px;
  transition: color 0.2s;
}

.close-notifications:hover {
  color: var(--light-text);
}

.notification-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-tab {
  flex: 1;
  text-align: center;
  padding: 15px 0;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  color: var(--gray-text);
  transition: color 0.2s;
}

.notification-tab:hover {
  color: var(--light-text);
}

.notification-tab.active {
  color: var(--light-text);
}

.notification-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.notification-item {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s;
  cursor: pointer;
}

.notification-item:hover {
  background-color: var(--hover-bg);
}

.notification-item.unread {
  position: relative;
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.notification-content {
  display: flex;
  gap: 15px;
}

.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.notification-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notification-avatar.system-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
}

.notification-avatar.system-avatar i {
  font-size: 20px;
  color: white;
}

.notification-body {
  flex: 1;
}

.notification-text {
  margin-bottom: 5px;
  line-height: 1.4;
}

.notification-text b {
  font-weight: 600;
}

.notification-time {
  font-size: 12px;
  color: var(--gray-text);
}

.notification-action {
  margin-top: 10px;
}

.notification-action button {
  background-color: rgba(138, 43, 226, 0.2);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.notification-action button:hover {
  background-color: rgba(138, 43, 226, 0.4);
}

.empty-notifications {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--gray-text);
  text-align: center;
  height: 100%;
}

.empty-notifications i {
  font-size: 40px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.empty-notifications p {
  font-size: 16px;
  max-width: 250px;
}

@media (max-width: 768px) {
  .notification-panel {
    width: 300px;
  }
}

@media (max-width: 480px) {
  .notification-panel {
    width: 100%;
    right: -100%;
  }
}

/* Comments Modal Styles */
        .comments-modal {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-color: rgba(0, 0, 0, 0.7);
          display: flex;
          justify-content: center;
          align-items: center;
          z-index: 1000;
          backdrop-filter: blur(5px);
          transition: all 0.3s ease;
        }

        .comments-modal.hidden {
          opacity: 0;
          visibility: hidden;
        }

        .comments-container {
          width: 100%;
          max-width: 700px;
          height: 90vh;
          background-color: var(--dark-bg);
          border-radius: var(--border-radius);
          overflow: hidden;
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
          display: flex;
          flex-direction: column;
          animation: modalFadeIn 0.3s;
        }

        .comments-header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 15px 20px;
          border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .comments-header h2 {
          font-size: 20px;
          font-weight: 600;
        }

        .close-comments {
          background: none;
          color: var(--gray-text);
          font-size: 18px;
          transition: color 0.2s;
        }

        .close-comments:hover {
          color: var(--light-text);
        }

        .post-view {
          display: flex;
          padding: 20px;
          border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .post-view-avatar {
          width: 48px;
          height: 48px;
          border-radius: 50%;
          overflow: hidden;
          margin-right: 15px;
        }

        .post-view-avatar img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .post-view-content {
          flex: 1;
        }

        .post-view-header {
          display: flex;
          align-items: center;
          margin-bottom: 10px;
        }

        .post-view-username {
          font-weight: 600;
          margin-right: 10px;
        }

        .post-view-date {
          color: var(--gray-text);
          font-size: 14px;
        }

        .post-view-text {
          margin-bottom: 15px;
          line-height: 1.5;
        }

        .post-view-image {
          max-height: 300px;
          width: 100%;
          border-radius: var(--border-radius);
          overflow: hidden;
          margin-bottom: 15px;
        }

        .post-view-image img {
          width: 100%;
          height: 100%;
          object-fit: contain;
        }

        .post-view-stats {
          display: flex;
          gap: 20px;
          margin-top: 15px;
        }

        .post-view-stat {
          display: flex;
          align-items: center;
          color: var(--gray-text);
        }

        .post-view-stat i {
          margin-right: 5px;
        }

        .comments-list {
          flex: 1;
          overflow-y: auto;
          padding: 20px;
        }

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

        .comment-avatar {
          width: 36px;
          height: 36px;
          border-radius: 50%;
          overflow: hidden;
          margin-right: 15px;
        }

        .comment-avatar img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .comment-content {
          flex: 1;
          background-color: var(--card-bg);
          padding: 12px 15px;
          border-radius: var(--border-radius);
        }

        .comment-header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-bottom: 8px;
        }

        .comment-username {
          font-weight: 600;
        }

        .comment-date {
          color: var(--gray-text);
          font-size: 12px;
        }

        .comment-text {
          margin-bottom: 10px;
          line-height: 1.4;
        }

        .comment-actions {
          display: flex;
          gap: 15px;
          margin-top: 5px;
        }

        .comment-action {
          color: var(--gray-text);
          font-size: 14px;
          cursor: pointer;
        }

        .comment-action:hover {
          color: var(--primary-color);
        }

        .comment-action i {
          margin-right: 5px;
        }

        .comment-replies {
          margin-left: 51px;
          margin-top: 15px;
          padding-left: 15px;
          border-left: 2px solid var(--card-bg);
        }

        .reply-form {
          display: none;
          margin-top: 10px;
          margin-bottom: 15px;
        }

        .reply-form.active {
          display: block;
        }

        .comment-form {
          display: flex;
          padding: 15px 20px;
          border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .comment-form-avatar {
          width: 36px;
          height: 36px;
          border-radius: 50%;
          overflow: hidden;
          margin-right: 15px;
        }

        .comment-form-avatar img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .comment-input-container {
          flex: 1;
          position: relative;
        }

        .comment-input {
          width: 100%;
          background-color: var(--card-bg);
          border: none;
          border-radius: 20px;
          padding: 12px 60px 12px 15px;
          color: var(--light-text);
          resize: none;
          max-height: 120px;
          overflow-y: auto;
        }

        .comment-input:focus {
          outline: none;
          box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.3);
        }

        .comment-submit {
          position: absolute;
          right: 10px;
          bottom: 10px;
          background: none;
          color: var(--primary-color);
          font-size: 20px;
          cursor: pointer;
          transition: color 0.2s;
        }

        .comment-submit:hover {
          color: var(--secondary-color);
        }

        /* Clickable posts */
        .trending-card {
          cursor: pointer;
          transition: transform 0.2s ease;
        }

        .trending-card:hover {
          transform: translateY(-5px);
          box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        @media (max-width: 768px) {
          .comments-container {
            width: 95%;
            height: 95vh;
          }

          .post-view {
            flex-direction: column;
          }

          .post-view-avatar {
            margin-bottom: 15px;
          }

          .post-view-image {
            max-height: 200px;
          }
        }

/* Profile Page Styles */
.profile-page {
  width: 100%;
  background-color: var(--dark-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.profile-header {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.7), rgba(255, 20, 147, 0.7)), url('https://sites.webprompter.ai/z/images/space-theme-post.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.profile-avatar-container {
  position: absolute;
  bottom: -60px;
  left: 20px;
  width: 120px;
  height: 120px;
  border-radius: 60px;
  overflow: hidden;
  border: 4px solid var(--dark-bg);
  background-color: var(--card-bg);
  z-index: 2;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-actions {
  align-self: flex-end;
  display: flex;
  gap: 10px;
}

.profile-edit-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.profile-edit-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.profile-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.profile-share-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.profile-info {
  padding: 80px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-name {
  font-size: 24px;
  font-weight: bold;
}

.profile-username {
  color: var(--gray-text);
  margin-bottom: 10px;
}

.profile-bio {
  margin-bottom: 15px;
  line-height: 1.5;
}

.profile-meta {
  display: flex;
  gap: 15px;
  color: var(--gray-text);
  margin-bottom: 20px;
}

.profile-meta-item i {
  margin-right: 5px;
}

.profile-stats {
  display: flex;
  gap: 30px;
  margin-top: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-stat {
  display: flex;
  flex-direction: column;
}

.profile-stat-value {
  font-size: 20px;
  font-weight: bold;
}

.profile-stat-label {
  font-size: 14px;
  color: var(--gray-text);
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-tab {
  flex: 1;
  text-align: center;
  padding: 15px 0;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  color: var(--gray-text);
  transition: color 0.2s;
}

.profile-tab:hover {
  color: var(--light-text);
}

.profile-tab.active {
  color: var(--light-text);
}

.profile-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
}

.profile-content {
  padding: 20px;
}

.profile-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.profile-post-card {
  height: 250px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

.profile-post-card:hover {
  transform: translateY(-5px);
}

.profile-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-post-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.profile-post-title {
  font-size: 16px;
  margin-bottom: 5px;
}

.profile-post-date {
  font-size: 12px;
  color: var(--gray-text);
}

.profile-post-stats {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.profile-post-stat {
  display: flex;
  align-items: center;
  color: var(--gray-text);
  font-size: 12px;
}

.profile-post-stat i {
  margin-right: 3px;
}

.profile-text-post {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-bg), var(--card-bg));
  padding: 15px;
}

.no-posts-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-text);
}

/* Profile Edit Modal */
.edit-profile-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 14px;
  color: var(--gray-text);
}

.form-input, .form-textarea {
  padding: 10px 15px;
  background-color: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  color: var(--light-text);
  font-size: 16px;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-btn {
  cursor: pointer;
  background-color: var(--card-bg);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  text-align: center;
  border: 1px solid var(--primary-color);
}

.avatar-upload-btn:hover {
  background-color: rgba(138, 43, 226, 0.1);
}

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

.cancel-btn {
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
  background-color: var(--card-bg);
  color: var(--gray-text);
}

.save-btn {
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
  background: var(--gradient);
  color: white;
}

.save-btn:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .profile-header {
    height: 150px;
  }
  
  .profile-avatar-container {
    bottom: -50px;
    left: 15px;
    width: 100px;
    height: 100px;
  }
  
  .profile-info {
    padding: 60px 15px 15px;
  }
  
  .profile-name {
    font-size: 20px;
  }
  
  .profile-stats {
    gap: 20px;
  }
  
  .profile-stat-value {
    font-size: 18px;
  }
  
  .profile-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .profile-post-card {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .profile-header {
    height: 120px;
  }
  
  .profile-avatar-container {
    width: 80px;
    height: 80px;
    bottom: -40px;
  }
  
  .profile-info {
    padding: 50px 15px 15px;
  }
  
  .profile-posts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .profile-post-card {
    height: 180px;
  }
  
  .profile-stats {
    gap: 15px;
  }
  
  .profile-meta {
    flex-wrap: wrap;
  }
}