@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

:root {
  --primary-color: #ff004f;
  --secondary-color: #ff6b8b;
  --background-color: #0f0f0f;
  --text-primary: #111111;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Mobile Container */
.mobile-container {
  width: 100%;
  min-height: 100vh;
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Background Waves Animation */
.bg-waves {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.logo-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  margin-top: 15%;
}

.logo-text {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -3px;
  line-height: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  align-self: flex-end;
  margin-top: -5px;
  letter-spacing: 0;
}

/* Bottom Card */
.bottom-card {
  background-color: var(--white);
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  padding: 30px 25px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
  margin-top: auto;
}

.drag-handle {
  width: 40px;
  height: 4px;
  background-color: #222;
  border-radius: 2px;
  margin-bottom: 25px;
}

.welcome-title {
  color: var(--primary-color);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.welcome-text {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 35px;
  padding: 0 10px;
}

.dots {
  display: flex;
  gap: 10px;
  margin-bottom: 35px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ffb3c6;
}

.dot.active {
  background-color: var(--primary-color);
}

.btn {
  width: 100%;
  padding: 16px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  margin-bottom: 15px;
  transition: transform 0.2s, background-color 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  justify-content: space-between;
  padding-left: 30px;
  padding-right: 30px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-color);
}

.row-btns {
  display: flex;
  gap: 15px;
  width: 100%;
}

.row-btns .btn {
  flex: 1;
  margin-bottom: 0;
}

/* Registration Screen Styles */
.reg-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 2;
  padding: 30px 25px;
}

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

.back-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 15px;
}

.reg-card-title {
  background-color: var(--white);
  color: var(--primary-color);
  padding: 15px 25px;
  border-radius: 15px;
  font-size: 2rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.form-group label {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 18px 20px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--white);
}

.form-control::placeholder {
  color: #999;
  font-weight: 500;
}

.reg-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.login-link {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 30px;
  text-align: center;
  width: 100%;
}

.login-link a {
  background-color: var(--white);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 800;
  margin-left: 10px;
}

/* Premium Layout & Desktop Support */
body.app-body {
  display: block;
  background-color: #f4f4f4;
}

.app-layout {
  display: flex;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  align-items: flex-start;
}

.sidebar {
  display: none;
  width: 250px;
  padding: 30px 20px;
  border-right: 1px solid rgba(0,0,0,0.05);
  background-color: var(--white);
  height: 100vh;
  position: sticky;
  top: 0;
  flex-direction: column;
}

.sidebar-logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 40px;
  letter-spacing: -1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-radius: 30px;
  color: #333;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
}

.nav-item:hover, .nav-item.active {
  background-color: rgba(255, 0, 79, 0.1);
  color: var(--primary-color);
}

.main-content {
  flex: 1;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  background-color: #f4f4f4;
  min-height: 100vh;
  padding-bottom: 80px; /* space for bottom nav on mobile */
}

.right-sidebar {
  display: none;
  width: 320px;
  padding: 30px 20px;
  height: 100vh;
  position: sticky;
  top: 0;
  flex-direction: column;
}

.right-sidebar .search-container {
  background: white;
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  margin-bottom: 30px;
}

.right-sidebar .search-input {
  border: none;
  outline: none;
  width: 100%;
  font-weight: 600;
  margin-left: 10px;
  font-size: 0.95rem;
}

.suggestions-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Bottom Navigation for Mobile */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-around;
  padding: 15px 0;
  z-index: 100;
}

.bottom-nav-item {
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.bottom-nav-item svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav-item.active {
  color: var(--primary-color);
}

.bottom-nav-item.active svg {
  stroke: var(--primary-color);
  fill: rgba(255, 0, 79, 0.1); /* Slight fill for active state */
}

.nav-item svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.active svg {
  stroke: var(--primary-color);
  fill: rgba(255, 0, 79, 0.1);
}

@media (min-width: 768px) {
  .sidebar { display: flex; }
  .bottom-nav { display: none; }
  .main-content { padding-bottom: 0; border-left: 1px solid #eaeaea; border-right: 1px solid #eaeaea; }
  .mobile-header { display: none !important; }
}

@media (min-width: 1024px) {
  .right-sidebar { display: flex; }
  .app-layout { justify-content: center; gap: 20px; }
}

.verified-badge-svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-color);
  margin-left: 4px;
  vertical-align: middle;
}

/* Post Actions (Like, Comment, Share) */
.post-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
  margin-top: 15px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s, transform 0.1s;
}

.action-btn:hover {
  transform: scale(1.05);
}

.action-btn.liked {
  color: var(--primary-color);
}

.action-btn.liked svg {
  fill: var(--primary-color);
}

/* Comments Section */
.comments-section {
  background-color: #fafafa;
  border-radius: 15px;
  padding: 15px;
  margin-top: 15px;
  display: none; /* hidden by default */
}

.comment-input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.comment-input {
  flex: 1;
  padding: 10px 15px;
  border-radius: 20px;
  border: 1px solid #ddd;
  outline: none;
}

.comment-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0 15px;
  font-weight: 700;
  cursor: pointer;
}

.comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.comment-item:last-child {
  margin-bottom: 0;
}

.comment-avatar {
  width: 30px;
  height: 30px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.comment-bubble {
  background-color: #eee;
  padding: 10px 15px;
  border-radius: 15px;
  border-top-left-radius: 5px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  padding: 25px;
  transform: translateY(20px);
  transition: transform 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

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

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

/* Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
  color: #999;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 10px;
}

/* Profile Header */
.profile-header {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 3rem;
  margin: 0 auto 15px auto;
  object-fit: cover;
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.profile-email {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.profile-bio {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
  max-width: 400px;
  margin: 0 auto 20px auto;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.8rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}
