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

.modal-content {
  background: #1c1e21;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  color: white;
}

.modal-content h2 {
  text-transform: uppercase;
}

.modal-close {
  float: right;
  cursor: pointer;
  font-size: 24px;
  color: white;
}

.message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px;
  color: white;
  border-radius: 4px;
  z-index: 2000;
}

.message-success {
  background: #4caf50;
}

.message-error {
  background: #f44336;
}

.message-info {
  background: #2196f3;
}

.btn {
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-primary {
  background-color: #1c1e21;
  color: white;
  border: 1px solid #3a3b3c;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
}

.btn-primary:hover {
  border: 2px solid white;
}

.post-card {
  background-color: #1c1e21;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0 30px 0;
  box-shadow: 0 0 30px rgba(58, 59, 60, 0.6);
}

.post-author {
  opacity: 0.7;
  margin: 5px 0;
}

.post-author a {
  color: white;
  text-decoration: none;
}

.post-author a:hover {
  text-decoration: underline;
}

.post-title {
  font-weight: bold;
  margin: 10px 0;
}

.post-card-media-section {
  background-color: #2a2c2e;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  display: flex;
  gap: 15px;
  align-items: center;
}

.post-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.post-card-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.post-song {
  font-weight: bold;
  font-size: 16px;
  margin: 0;
}

.post-artist {
  font-size: 14px;
  margin: 0;
  color: #b0b3b8;
}

.post-card h2 {
  margin: 10px 0;
}

.post-card p {
  margin: 5px 0;
}

.post-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-edit,
.btn-delete {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid #3a3b3c;
  background-color: #1c1e21;
  color: white;
}

.btn-edit:hover {
  border: 2px solid white;
}

.btn-delete {
  background-color: #3a3b3c;
}

.btn-delete:hover {
  border: 2px solid white;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  padding-top: 420px;
  position: relative;
}

.profile-header::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background-image: url("../assets/vinyl.png");
  background-size: cover;
  background-position: center;
  top: 20px;
  z-index: 2;
}

.profile-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 155px;
  z-index: 1;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.profile-bio {
  color: #b0b3b8;
  margin: 10px 0;
  max-width: 500px;
}

.profile-counts {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  font-size: 14px;
}

.profile-counts span {
  color: #b0b3b8;
}

.btn-edit-bio {
  background-color: #1c1e21;
  color: white;
  border: 1px solid #3a3b3c;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
  font-size: 14px;
}

.btn-edit-bio:hover {
  border: 2px solid white;
}

.btn-follow,
.btn-unfollow {
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
  font-size: 14px;
}

.btn-follow {
  background-color: #1c1e21;
  color: white;
}

.btn-follow:hover {
  border: 2px solid white;
}

.btn-unfollow {
  background-color: #3a3b3c;
  color: white;
}

.btn-unfollow:hover {
  border: 2px solid white;
}

.profile-search-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background-color: #2a2c2e;
  border-radius: 8px;
  margin-bottom: 10px;
  text-decoration: none;
  color: white;
  transition: background-color 0.2s;
}

.profile-search-card:hover {
  background-color: #3a3b3c;
}

.profile-search-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-search-name {
  font-size: 16px;
  font-weight: 500;
}

.auth-header {
  display: flex;
  justify-content: center;
  padding: 30px 20px;
}

.landing-header {
  display: flex;
}

.auth-logo {
  height: 30px;
  width: auto;
}

.register-container,
.login-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}

.register-container h1,
.login-container h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.register-form,
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 500;
}

.form-group input {
  padding: 12px;
  font-size: 16px;
  background-color: #3a3b3c;
  border: 1px solid #3a3b3c;
  border-radius: 8px;
  color: white;
}

.landing-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  gap: 60px;
}

.landing-preview {
  display: none;
}

.landing-phones {
  position: relative;
  width: 480px;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-phone {
  position: absolute;
  width: 350px;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  mix-blend-mode: lighten;
}

.landing-phone-1 {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2;
}

.landing-phone-2 {
  top: 50%;
  left: 130px;
  transform: translateY(-50%);
  z-index: 1;
}

.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 500px;
  gap: 20px;
  margin-top: -40px;
}

.landing-logo {
  width: 120px;
  height: auto;
}

.landing-logo-desktop {
  display: none;
}

.landing-logo-mobile {
  display: block;
  width: 210px;
}

.landing-content h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.landing-content p {
  font-size: 18px;
  color: #b0b3b8;
  margin-bottom: 30px;
  line-height: 1.6;
}

.landing-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.btn-landing {
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition:
    transform 0.2s,
    opacity 0.2s;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.btn-landing:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-landing.btn-primary {
  background: #4caf50;
  color: white;
}

.btn-landing.btn-secondary {
  background: #3a3b3c;
  color: white;
}

@media (min-width: 1024px) {
  .landing-main {
    flex-direction: row;
    justify-content: center;
    padding: 40px;
  }

  .landing-preview {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .landing-container {
    max-width: 450px;
  }

  .landing-content h1 {
    font-size: 36px;
  }

  .landing-header {
    display: none;
  }

  .landing-logo-desktop {
    display: block;
  }

  .landing-logo-mobile {
    display: none;
  }
}

.mobile-search-overlay {
  position: fixed;
  top: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1c1e21;
  z-index: 200;
  transition: top 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-search-overlay.active {
  top: 0;
}

.mobile-search-header {
  padding: 0 20px;
  height: 60px;
  border-bottom: 1px solid #3a3b3c;
  display: flex;
}

.mobile-search-close {
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-search-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.mobile-search-results {
  margin-top: 20px;
}

.search-section-heading {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #3a3b3c;
}

.search-section-heading:first-of-type {
  margin-top: 0;
}

.search-posts-section,
.search-profiles-section {
  margin-bottom: 30px;
}

.no-results {
  color: white;
  font-size: 14px;
  padding: 20px;
  text-align: center;
}

.mobile-create-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #1c1e21;
  z-index: 200;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-create-overlay.active {
  left: 0;
}

.mobile-create-header {
  height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid #3a3b3c;
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-create-close {
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-create-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: white;
  text-transform: uppercase;
}

.mobile-create-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.mobile-logout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.mobile-logout-overlay.active {
  display: flex;
}

.mobile-logout-dialog {
  background: #1c1e21;
  padding: 30px;
  border-radius: 12px;
  max-width: 300px;
  width: 90%;
  text-align: center;
  color: white;
}

.mobile-logout-dialog p {
  margin: 0 0 20px 0;
  font-size: 16px;
  color: white;
}

.mobile-logout-confirm {
  display: block;
  background: #f44336;
  color: white;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 10px;
  font-weight: 600;
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.mobile-logout-cancel {
  background: #3a3b3c;
  border: none;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  font-size: 16px;
}
