@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Updated color palette to match Chatzy design with türkis/green theme */
:root {
  --primary: #00bfa6;
  --primary-light: #26d0b8;
  --primary-dark: #00a88f;
  --secondary: #6c63ff;
  --accent: #ff6b9d;
  --background: #f5f7fa;
  --surface: #ffffff;
  --surface-dark: #e8ecf1;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c9b;
  --border: #dfe4ea;
  --success: #00bfa6;
  --error: #ff5252;
  --warning: #ffc107;
  --radius: 16px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Rajdhani", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Modern navigation with Chatzy-style design */
nav {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Split-screen hero with modern illustration */
.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 24px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -1.5px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero illustration side */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-illustration {
  width: 100%;
  max-width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero-illustration::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.anonymous-avatar {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 4px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.anonymous-avatar i {
  width: 100px;
  height: 100px;
  color: white;
}

/* Modern button system */
button {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: #5a52e0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

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

.btn-error:hover {
  background-color: #e53935;
}

/* Features Section */
.features {
  padding: 100px 24px;
  background: var(--surface-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.feature-icon i {
  color: white;
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--surface);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Pages */
.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

/* Registration Page with Chatzy-style split-screen */
.registration-page {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.registration-left {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.registration-left::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  left: -100px;
}

.registration-left::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -80px;
  right: -80px;
}

.registration-illustration {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.registration-illustration-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.registration-illustration-icon i {
  width: 60px;
  height: 60px;
  color: white;
}

.registration-illustration h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.registration-illustration p {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.6;
}

.registration-right {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.registration-card {
  width: 100%;
  max-width: 480px;
}

.registration-card h1 {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 900;
  letter-spacing: -0.5px;
}

.registration-card p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 15px;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.interest-btn {
  padding: 10px 16px;
  background-color: var(--surface-dark);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 700;
}

.interest-btn:hover {
  border-color: var(--primary);
  background-color: var(--surface);
}

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

/* Waiting List Page with sidemenu */
.waiting-list-page {
  padding: 0;
}

.waiting-list-container {
  display: flex;
  min-height: calc(100vh - 80px);
}

.waiting-list-content {
  flex: 1;
  padding: 40px;
  margin-left: 280px;
}

.waiting-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.waiting-list-header h1 {
  font-size: 32px;
  margin-bottom: 0;
  font-weight: 900;
  color: var(--text-primary);
}

.user-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.user-card:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.avatar i {
  color: white;
  width: 28px;
  height: 28px;
}

.user-info-content {
  flex: 1;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--surface-dark);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-right: 8px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.user-badge i {
  width: 14px;
  height: 14px;
}

.user-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.interest-tag {
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

/* Chat interface with sidemenu */
.chat-page {
  display: flex;
  min-height: calc(100vh - 80px);
}

.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 280px;
  background: var(--background);
}

.chat-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--background);
}

.message {
  display: flex;
  gap: 12px;
  animation: slideIn 0.2s ease;
  margin-bottom: 8px;
}

.message.own {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 15px;
  display: inline-block;
  font-weight: 500;
  min-width: fit-content;
}

.message.other .message-bubble {
  background-color: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
}

.message.own .message-bubble {
  background: var(--primary);
  color: white;
  border-radius: 16px 16px 4px 16px;
}

.message-time {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.chat-input-area {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.chat-input-area > div {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-input-area input {
  background-color: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px 20px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}

.btn-icon {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  background: var(--surface-dark) !important;
  border: 1px solid var(--border) !important;
  border-radius: 50% !important;
  cursor: pointer;
  color: var(--primary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--primary) !important;
  color: white !important;
  transform: scale(1.05);
}

.btn-icon i {
  width: 20px;
  height: 20px;
}

/* Chat Request Modal */
.chat-request-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease;
}

.chat-request-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

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

.chat-request-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.chat-request-avatar i {
  width: 40px;
  height: 40px;
  color: white;
}

.chat-request-card h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.chat-request-info {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.chat-request-badge {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

.chat-request-badge i {
  width: 14px;
  height: 14px;
}

.chat-request-interests {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.chat-request-interest-tag {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.chat-request-message {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.chat-request-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.chat-request-accept,
.chat-request-decline {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  flex: 1;
  max-width: 160px;
}

.chat-request-accept {
  background: var(--primary);
  color: white;
}

.chat-request-accept:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.chat-request-decline {
  background: transparent;
  color: var(--error);
  border: 2px solid var(--error);
}

.chat-request-decline:hover {
  background: var(--error);
  color: white;
}

/* Progress Bar */
.request-progress-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
}

.request-progress-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.request-progress-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--surface-dark);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.empty-state h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
  margin-top: 80px;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--primary);
}

footer p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design with sidemenu */
@media (max-width: 968px) {
  .sidemenu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidemenu.open {
    transform: translateX(0);
  }

  .main-with-sidemenu,
  .waiting-list-content,
  .chat-container {
    margin-left: 0;
  }

  .hero,
  .registration-page {
    grid-template-columns: 1fr;
  }

  .registration-left {
    display: none;
  }

  .registration-right {
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .user-card {
    flex-direction: column;
    text-align: center;
  }

  /* Removed incomplete .message-\ rule and properly closed media query */
  .message-bubble {
    max-width: 90%;
  }
}
