/* ===== RASTGELE SOHBET CSS ===== */
.rs-page { min-height: calc(100vh - 64px); background: var(--bg-dark); position: relative; }

/* LANDING */
.rs-landing { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.rs-landing-bg { position: absolute; inset: 0; overflow: hidden; }
@keyframes float-particle { 0%,100%{transform:translateY(0) scale(1);opacity:0.6} 50%{transform:translateY(-30px) scale(1.2);opacity:1} }
.rs-particle { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); animation: float-particle var(--d) ease-in-out infinite; box-shadow: 0 0 16px rgba(233,30,140,0.6); }
.rs-landing-content { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 40px 20px; }
.rs-logo-big { margin-bottom: 32px; }
.rs-logo-icon { font-size: 64px; display: block; margin-bottom: 12px; filter: drop-shadow(0 0 20px rgba(233,30,140,0.8)); animation: heartbeat 2s ease-in-out infinite; }
.rs-logo-big h1 { font-size: 48px; font-weight: 900; margin-bottom: 8px; }
.rs-gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.rs-subtitle { color: var(--text-secondary); font-size: 16px; }
.rs-stats { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 28px 0; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 16px 32px; }
.rs-stat { text-align: center; }
.rs-stat-num { display: block; font-size: 28px; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.rs-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.rs-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* MODLAR */
.rs-modes { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 24px 0; }
.rs-mode-card { background: rgba(255,255,255,0.04); border: 2px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 20px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 14px; position: relative; text-align: left; }
.rs-mode-card:hover { border-color: rgba(233,30,140,0.4); background: rgba(233,30,140,0.06); transform: translateY(-2px); }
.rs-mode-card.selected { border-color: var(--primary); background: rgba(233,30,140,0.1); box-shadow: 0 0 20px rgba(233,30,140,0.2); }
.rs-mode-icon { font-size: 32px; flex-shrink: 0; }
.rs-mode-info h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: white; display: flex; align-items: center; gap: 6px; }
.rs-mode-info p { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.rs-mode-price { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.rs-mode-price.free { background: rgba(16,185,129,0.2); color: #10b981; }
.rs-mode-price.paid { background: rgba(233,30,140,0.2); color: var(--primary); }
.rs-mode-price.vip { background: rgba(245,158,11,0.2); color: var(--accent); }
.rs-mode-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; font-size: 10px; }
.rs-mode-card.selected .rs-mode-check { opacity: 1; }
.rs-hot { background: linear-gradient(135deg,#ef4444,#f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 11px; font-weight: 900; }

/* FİLTRELER */
.rs-filter-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.rs-filter-item { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.rs-filter-item label { font-size: 12px; color: var(--text-secondary); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.rs-select { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-family: inherit; cursor: pointer; }
.rs-select:focus { border-color: var(--primary); outline: none; }
.rs-select option { background: #12122a; }

/* BAŞLAT BUTONU */
@keyframes rs-btn-glow { 0%,100%{box-shadow:0 6px 32px rgba(233,30,140,0.5)} 50%{box-shadow:0 6px 48px rgba(124,58,237,0.7)} }
.rs-start-btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 48px; border-radius: 50px; background: linear-gradient(135deg,#ff6b35,#e91e8c,#7c3aed); background-size: 200%; border: none; color: white; font-size: 18px; font-weight: 800; cursor: pointer; margin: 24px auto 12px; transition: all 0.3s ease; animation: rs-btn-glow 2s ease-in-out infinite, gradient-shift 3s ease infinite; font-family: inherit; }
.rs-start-btn:hover { transform: translateY(-3px) scale(1.05); }
.rs-start-icon { font-size: 24px; animation: rastgele-shake 0.8s ease-in-out infinite; display: inline-block; }
.rs-terms { font-size: 11px; color: var(--text-muted); }
.rs-terms a { color: var(--primary); }

/* ARAMA */
.rs-searching { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 64px); gap: 20px; }
.rs-searching h2 { font-size: 28px; font-weight: 800; }
.rs-search-anim { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
@keyframes ring-spin { to{transform:rotate(360deg)} }
.rs-search-ring { position: absolute; border-radius: 50%; border: 3px solid transparent; }
.rs-ring1 { width: 120px; height: 120px; border-top-color: var(--primary); animation: ring-spin 1s linear infinite; }
.rs-ring2 { width: 90px; height: 90px; border-top-color: var(--secondary); animation: ring-spin 0.8s linear infinite reverse; }
.rs-ring3 { width: 60px; height: 60px; border-top-color: var(--accent); animation: ring-spin 0.6s linear infinite; }
.rs-search-icon { font-size: 24px; }
.rs-search-dots { display: flex; gap: 8px; }
.rs-search-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); animation: dot-bounce 1.2s ease-in-out infinite; }
.rs-search-dots span:nth-child(2){animation-delay:0.2s} .rs-search-dots span:nth-child(3){animation-delay:0.4s}
@keyframes dot-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
.rs-cancel-btn { margin-top: 8px; }

/* SOHBET EKRANI */
.rs-chat-screen {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: 1fr 70px;
  height: calc(100vh - 64px);
  overflow: hidden;
}

/* SOL — VİDEO ALANI */
.rs-video-area {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* KARŞI TARAF VİDEO — tam alan */
.rs-video-remote {
  position: relative;
  flex: 1;
  background: #000;
  overflow: hidden;
}
.rs-video-remote video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* KENDİ VİDEO — sağ alt köşede küçük */
.rs-video-local {
  position: absolute;
  bottom: 80px;
  right: 16px;
  width: 160px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.3);
  background: #222;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.rs-video-local:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(233,30,140,0.4);
}
.rs-video-local .rs-expand-hint {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  color: white;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 12;
}
.rs-video-local:hover .rs-expand-hint { opacity: 1; }
.rs-fullscreen-btn {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(0,0,0,0.7);
  color: white; border: none;
  border-radius: 6px;
  padding: 4px 7px; font-size: 11px;
  cursor: pointer; z-index: 13;
  opacity: 0; transition: opacity 0.2s;
}
.rs-video-local:hover .rs-fullscreen-btn { opacity: 1; }
.rs-video-area.local-fullscreen .rs-fullscreen-btn { opacity: 1; background: rgba(233,30,140,0.8); }

/* Büyütülmüş mod */
.rs-video-local.expanded {
  bottom: 80px;
  right: 16px;
  width: 380px;
  height: 280px;
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(233,30,140,0.5);
  z-index: 20;
}

/* Tam ekran mod — kendi video büyük, karşı küçük */
.rs-video-area.local-fullscreen .rs-video-remote {
  position: absolute;
  bottom: 80px;
  left: 16px;
  width: 180px;
  height: 135px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 10;
  flex: none;
}
.rs-video-area.local-fullscreen .rs-video-local {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  z-index: 5;
}
.rs-video-area.local-fullscreen .rs-video-local .rs-local-controls {
  bottom: 90px;
}

@media (max-width: 768px) {
  .rs-video-local.expanded { width: 220px; height: 165px; }
  .rs-video-area.local-fullscreen .rs-video-remote { width: 120px; height: 90px; }
}
.rs-video-local video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rs-local-controls {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 11;
}
.rs-ctrl-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.3);
  color: white; font-size: 11px;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.rs-ctrl-btn.muted { background: rgba(239,68,68,0.8); }

.rs-video-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; color: white; z-index: 5;
}
.rs-video-overlay.hidden { display: none; }
@keyframes spin { to{transform:rotate(360deg)} }
.rs-connecting-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.rs-user-info {
  position: absolute; bottom: 80px; left: 16px;
  display: flex; gap: 8px; align-items: center; z-index: 6;
}
.rs-user-badge {
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  color: white; padding: 5px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.2);
}
.rs-user-location {
  background: rgba(0,0,0,0.6); color: white;
  padding: 4px 10px; border-radius: 16px; font-size: 12px;
}
.rs-gift-btn {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient); color: white; border: none;
  padding: 10px 28px; border-radius: 24px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font-family: inherit; transition: all 0.2s;
  white-space: nowrap; z-index: 6;
  box-shadow: 0 4px 16px rgba(233,30,140,0.4);
}
.rs-gift-btn:hover { transform: translateX(-50%) translateY(-2px); }

/* SAĞ — CHAT ALANI */
.rs-chat-area {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  overflow: hidden;
}

/* ALT KONTROLLER — sol altta */
.rs-bottom-controls {
  grid-column: 1;
  grid-row: 2;
  height: 70px;
  background: rgba(8,8,20,0.97);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 24px; gap: 16px;
}

@media (max-width: 768px) {
  /* CHAT EKRANI — mobilde dikey layout */
  .rs-chat-screen {
    grid-template-columns: 1fr;
    grid-template-rows: 45vh auto 56px;
    height: calc(100vh - 56px);
  }
  .rs-video-area {
    grid-column: 1; grid-row: 1;
    height: 45vh;
    min-height: 240px;
  }
  .rs-chat-area {
    grid-column: 1; grid-row: 2;
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 35vh;
    min-height: 160px;
  }
  .rs-bottom-controls {
    grid-column: 1; grid-row: 3;
    height: 56px;
    padding: 0 12px;
    gap: 8px;
  }
  .rs-skip-btn { padding: 8px 14px; font-size: 12px; gap: 5px; }
  .rs-end-btn { padding: 8px 14px; font-size: 12px; gap: 5px; }
  .rs-timer { font-size: 18px; }
  .rs-skip-btn span, .rs-end-btn span { display: none; }

  /* Video local küçük */
  .rs-video-local { width: 80px; height: 60px; bottom: 62px; right: 10px; }
  .rs-expand-hint { display: none; }
  .rs-fullscreen-btn { display: none; }

  /* Hediye butonu küçük */
  .rs-gift-btn { padding: 7px 14px; font-size: 12px; bottom: 10px; }
  .rs-gift-btn span { display: none; }

  /* Landing optimize */
  .rs-landing-content { padding: 20px 16px; }
  .rs-logo-big h1 { font-size: 28px; }
  .rs-logo-icon { font-size: 48px; }
  .rs-subtitle { font-size: 13px; }
  .rs-stats { gap: 12px; padding: 10px 14px; flex-wrap: wrap; }
  .rs-stat-num { font-size: 20px; }
  .rs-modes { grid-template-columns: 1fr; gap: 8px; }
  .rs-mode-card { padding: 14px; }
  .rs-filter-row { gap: 8px; }
  .rs-filter-item { min-width: 120px; }
  .rs-start-btn { padding: 14px 32px; font-size: 16px; }

  /* Hediye grid */
  .rs-gift-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .rs-gift-content { padding: 16px; }

  /* Chat input */
  .rs-chat-header { padding: 8px 12px; }
  .rs-chat-avatar { font-size: 22px; }
  .rs-chat-name { font-size: 13px; }
  .rs-messages { padding: 8px 12px; gap: 6px; }
  .rs-chat-input-area { padding: 8px 10px; }
  .rs-chat-input { font-size: 13px; padding: 8px 12px; }
}

/* CHAT ALANI */
.rs-chat-area { display: flex; flex-direction: column; background: var(--bg-card); border-left: 1px solid var(--border); }
.rs-chat-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.rs-chat-user { display: flex; align-items: center; gap: 10px; }
.rs-chat-avatar { font-size: 28px; }
.rs-chat-name { font-size: 14px; font-weight: 700; }
.rs-chat-status { font-size: 11px; color: var(--success); display: flex; align-items: center; gap: 4px; }
.rs-online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.rs-chat-actions { display: flex; gap: 8px; }
.rs-action-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.rs-report-btn:hover { color: var(--accent); }
.rs-block-btn:hover { color: var(--danger); }
.rs-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rs-sys-msg { text-align: center; font-size: 12px; color: var(--text-muted); padding: 6px 12px; background: rgba(255,255,255,0.04); border-radius: 20px; }
.rs-msg { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4; }
.rs-msg.mine { background: var(--gradient); color: white; align-self: flex-end; }
.rs-msg.theirs { background: rgba(255,255,255,0.08); align-self: flex-start; }
.rs-chat-input-area { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.rs-chat-input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: white; border-radius: 24px; padding: 10px 16px; font-size: 13px; font-family: inherit; }
.rs-chat-input:focus { border-color: var(--primary); outline: none; }
.rs-send-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); border: none; color: white; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ALT KONTROLLER */
.rs-bottom-controls { height: 70px; background: rgba(8,8,20,0.95); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.rs-skip-btn { display: flex; align-items: center; gap: 8px; padding: 10px 28px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: white; border-radius: 28px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.rs-skip-btn:hover { background: rgba(124,58,237,0.3); }
.rs-end-btn { display: flex; align-items: center; gap: 8px; padding: 10px 28px; background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); border-radius: 28px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.rs-end-btn:hover { background: rgba(239,68,68,0.3); }
.rs-timer { font-size: 24px; font-weight: 900; color: white; font-variant-numeric: tabular-nums; text-shadow: 0 0 20px rgba(233,30,140,0.5); }

/* HEDİYE */
.rs-gift-panel { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center; }
.rs-gift-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.rs-gift-content { position: relative; z-index: 1; background: var(--bg-card); border-radius: 24px 24px 0 0; width: 100%; max-width: 600px; padding: 24px; border: 1px solid var(--border); border-bottom: none; }
.rs-gift-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rs-gift-header h3 { font-size: 18px; font-weight: 700; }
.rs-gift-header button { background: rgba(255,255,255,0.08); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.rs-gift-balance { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.rs-gift-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.rs-gift-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 14px 8px; text-align: center; cursor: pointer; transition: all 0.2s; }
.rs-gift-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.rs-gift-item .gift-emoji { font-size: 28px; display: block; margin-bottom: 6px; }
.rs-gift-item .gift-name { font-size: 11px; color: var(--text-secondary); display: block; margin-bottom: 4px; }
.rs-gift-item .gift-price { font-size: 12px; font-weight: 700; color: var(--primary); }

/* MODALLER */
.rs-login-modal,.rs-lp-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.rs-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.rs-modal-content { position: relative; z-index: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 40px 32px; text-align: center; max-width: 380px; width: 90%; }
.rs-modal-icon { font-size: 56px; margin-bottom: 16px; }
.rs-modal-content h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.rs-modal-content p { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }
.rs-modal-btns { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 768px) {
  .rs-modes { grid-template-columns: 1fr; }
  .rs-video-area { grid-template-columns: 1fr; grid-template-rows: 60% 40%; }
  .rs-logo-big h1 { font-size: 32px; }
  .rs-stats { gap: 12px; padding: 12px 16px; }
  .rs-bottom-controls { padding: 0 16px; }
  .rs-gift-grid { grid-template-columns: repeat(3,1fr); }
}
