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

body {
  background-color: #fafafa;
  color: #363636;
  font-size: 14px;
  line-height: 18px;
}

a {
  text-decoration: none;
  color: #0095f6;
}

/* Login Page Styles */
.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #000;
  color: #fff;
}

.container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.content-container {
  display: flex;
  max-width: 935px;
  width: 100%;
  margin: 32px auto 0;
}

.phones-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 32px;
}

.phone-image {
  max-width: 100%;
  height: auto;
}

.login-container {
  flex: 1;
  max-width: 350px;
}

.login-box {
  background-color: #000;
  border: 1px solid #363636;
  border-radius: 1px;
  padding: 20px 40px;
  margin-bottom: 10px;
}

.logo {
  display: flex;
  justify-content: center;
  margin: 22px auto 12px;
}

.logo h1 {
  font-family: 'Brush Script MT', cursive;
  font-size: 40px;
  font-weight: normal;
}

.login-form {
  margin-top: 24px;
}

.form-group {
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 9px 8px;
  background-color: #121212;
  border: 1px solid #363636;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
}

.login-button {
  width: 100%;
  padding: 7px 16px;
  background-color: #0095f6;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
  cursor: pointer;
}

.divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #363636;
}

.divider span {
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: #8e8e8e;
}

.facebook-login {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.facebook-login a {
  color: #385185;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.facebook-login i {
  margin-right: 8px;
  font-size: 16px;
}

.forgot-password {
  text-align: center;
  margin: 12px 0;
}

.forgot-password a {
  color: #00376b;
  font-size: 12px;
}

.signup-box {
  background-color: #000;
  border: 1px solid #363636;
  border-radius: 1px;
  padding: 20px;
  text-align: center;
  margin-bottom: 10px;
}

.get-app {
  text-align: center;
  margin: 20px 0;
}

.app-download {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.app-download a {
  margin: 0 4px;
}

.app-download img {
  height: 40px;
}

/* Footer Styles */
footer {
  padding: 20px 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}

.footer-links a {
  color: #8e8e8e;
  font-size: 12px;
  margin: 0 8px 12px;
}

.copyright {
  color: #8e8e8e;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.language-selector {
  margin-right: 16px;
}

.language-selector select {
  background-color: transparent;
  border: none;
  color: #8e8e8e;
  font-size: 12px;
}

/* Mobile Body Styles */
.mobile-body {
  background-color: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-bottom: 50px;
  /* Space for bottom nav */
}

/* Mobile Header Styles */
.mobile-header {
  background-color: #000;
  border-bottom: 1px solid #363636;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 16px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-button {
  color: #fff;
  font-size: 18px;
}

.username-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

/* Mobile Profile Styles */
.mobile-profile {
  padding: 0;
  max-width: 100%;
}

.profile-header-mobile {
  padding: 16px;
}

.profile-top {
  display: flex;
  margin-bottom: 16px;
}

.profile-picture-mobile {
  margin-right: 20px;
}

.profile-picture-mobile img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info-mobile {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.username-verified {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.username-verified h2 {
  font-size: 20px;
  font-weight: 600;
  margin-right: 5px;
}

.verified-badge {
  color: #3897f0;
  font-size: 16px;
}

.profile-actions-mobile {
  display: flex;
}

.profile-actions-mobile button {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-right: 8px;
}

.follow-button {
  background-color: #0095f6;
  color: #fff;
  border: none;
}

.message-button {
  background-color: transparent;
  color: #fff;
  border: 1px solid #363636;
}

.more-options {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  padding: 5px;
}

.profile-bio-mobile {
  margin-bottom: 16px;
}

.profile-bio-mobile h1 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.profile-category {
  color: #8e8e8e;
  font-size: 14px;
  margin-bottom: 8px;
}

.profile-bio-mobile p {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 18px;
}

.profile-link {
  display: flex;
  align-items: center;
}

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

.profile-link a {
  color: #0095f6;
}

.profile-restriction {
  color: #8e8e8e;
  font-size: 14px;
}

.profile-restriction a {
  color: #fff;
  font-weight: 600;
}

/* Highlights Section */
.profile-highlights-mobile {
  display: flex;
  padding: 10px 16px;
  overflow-x: auto;
  border-bottom: 1px solid #363636;
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 20px;
  min-width: 65px;
}

.highlight-image {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 1px solid #363636;
  padding: 2px;
  margin-bottom: 5px;
}

.highlight-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.highlight span {
  font-size: 12px;
  color: #fff;
  text-align: center;
}

/* Stats Section */
.profile-stats-mobile {
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-bottom: 1px solid #363636;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-weight: 600;
  font-size: 16px;
}

.stat-label {
  color: #fff;
  font-size: 14px;
}

/* Tabs Section */
.profile-tabs-mobile {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #363636;
}

.tab {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  color: #8e8e8e;
  font-size: 24px;
}

.tab.active {
  color: #fff;
  border-bottom: 0.5px solid #fff;
}

/* Posts Grid */
.profile-posts-mobile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.post {
  position: relative;
  aspect-ratio: 1/1;
}

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

.post-type {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #fff;
  font-size: 14px;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background-color: #000;
  border-top: 1px solid #363636;
  padding: 10px 0;
  z-index: 100;
}

.nav-item {
  color: #fff;
  padding: 8px;
}

.nav-item.active {
  color: #fff;
}

.nav-icon {
  display: block;
  width: 24px;
  height: 24px;
}

/* Login Overlay */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.login-modal {
  background-color: #000;
  width: 100%;
  max-width: 350px;
  padding: 20px;
}

/* Responsive Adjustments */
@media (max-width: 735px) {
  .content-container {
    flex-direction: column;
  }

  .phones-container {
    display: none;
  }

  .login-container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
  }

  .login-box,
  .signup-box {
    padding: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-links a {
    margin: 0 5px 10px;
    font-size: 11px;
  }
}

@media (max-width: 450px) {
  .profile-picture-mobile img {
    width: 77px;
    height: 77px;
  }

  .profile-actions-mobile button {
    padding: 5px 8px;
    font-size: 12px;
  }

  .profile-bio-mobile p {
    font-size: 13px;
  }

  .highlight {
    margin-right: 15px;
    min-width: 60px;
  }

  .highlight-image {
    width: 60px;
    height: 60px;
  }
}

/* Login Modal Styles */
.login-modal {
  position: relative;
  width: 90%;
  max-width: 400px;
  background-color: #262626;
  border-radius: 12px;
  padding: 20px;
  color: white;
}

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

.login-profile-picture {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
}

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

.login-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.login-header p {
  font-size: 14px;
  color: #a8a8a8;
  text-align: center;
}

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

.login-form input {
  padding: 12px;
  background-color: #121212;
  border: 1px solid #444;
  border-radius: 4px;
  color: white;
}

.login-form button {
  background-color: #0095f6;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
}

.forgot-password {
  color: #0095f6;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  margin-top: 15px;
}

.error-message {
  color: #ed4956;
  font-size: 14px;
  text-align: center;
  margin: 10px 0;
}