/* ----------------------------------------------------------------
   עולם המדורה - Global Stylesheet (Alive / Mikmak Style V20 - Level Up)
   נוסטלגיה מודרנית | נקי | בשרני | חי
   ----------------------------------------------------------------
*/

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700;900&family=Secular+One&display=swap');

:root {
  /* צבעים רווים וחזקים יותר ("סוכרייה") */
  --primary: #ff9f00; 
  --primary-dark: #d35400;
  --primary-light: #ffcd85;
  --primary-glow: rgba(255, 159, 0, 0.4);
  
  --text-main: #2d3436;
  --text-muted: #636e72;
  
  --card-bg: #ffffff;
  /* רקע עם עומק רדיאלי */
  --page-bg: radial-gradient(circle at center top, #fff8e1 0%, #ffe0b2 100%);
  
  --border-radius: 24px;
  --border-thick: 3px solid;
}

/* איפוס וגלילה מותאמת */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #fff8e1; }
::-webkit-scrollbar-thumb { background: #ffcc80; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #ffa726; }

::selection {
    background: #ffeaa7;
    color: #d35400;
}

body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  background: var(--page-bg);
  overflow-x: hidden;
  direction: rtl;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* --- 1. רקע חי (כוכבים מסתובבים) --- */
.stars {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  opacity: 0.6;
  background-image: 
    radial-gradient(#ff9f43 2px, transparent 3px),
    radial-gradient(#ff6b6b 1.5px, transparent 2.5px);
  background-size: 90px 90px, 60px 60px;
  z-index: 0;
  animation: galaxySpin 140s linear infinite;
}

@keyframes galaxySpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- 2. הכרטיס המרחף (The Floating Hub) --- */
.center {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  position: relative;
}

.join-card {
  position: relative;
  background-color: var(--card-bg);
  width: 100%;
  max-width: 980px;
  border-radius: var(--border-radius);
  /* מסגרת עבה ולבנה - אפקט מדבקה/קלף */
  border: 6px solid #fff;
  /* צל "טעים" */
  box-shadow: 
    0 20px 50px rgba(255, 140, 0, 0.2), 
    0 0 0 1px rgba(0,0,0,0.03);
  padding: 50px;
  margin-top: 60px;
  
  /* נשימה עדינה */
  animation: cardFloat 6s ease-in-out infinite alternate;
}

@keyframes cardFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* --- דמות מציצה (Parallax) --- */
.mascot-peek {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  z-index: 20;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.15));
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: mascotBob 5s ease-in-out infinite alternate;
}
.mascot-peek:hover {
    transform: translateX(-50%) scale(1.1) rotate(5deg);
}

@keyframes mascotBob {
  from { transform: translateX(-50%) translateY(0) rotate(-3deg); }
  to { transform: translateX(-50%) translateY(10px) rotate(3deg); }
}

/* --- גריד וטיפוגרפיה --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  text-align: right;
  align-items: start;
  margin-top: 40px;
}

.header-area {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 3px dashed #fff3e0;
  padding-bottom: 25px;
}

h1 {
  font-family: 'Rubik', sans-serif;
  font-weight: 900;
  margin: 10px 0 10px;
  font-size: 3rem;
  line-height: 1;
  color: #2d3436;
  letter-spacing: -1.5px;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

/* תגית בסגנון חותמת */
.badge-container { margin-bottom: 15px; }
.badge {
  display: inline-block;
  background: #fff8e1;
  color: #d35400;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid #ffe0b2;
  box-shadow: 0 2px 0 #ffe0b2;
  transform: rotate(-1deg);
}

/* --- טפסים "שמנים" --- */
.form-group { margin-bottom: 22px; text-align: right; }
.label {
  display: block; font-weight: 800; font-size: 1rem;
  margin-bottom: 8px; color: var(--text-main);
}

input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 18px;
  border: 3px solid #f0f2f5; 
  border-radius: 16px;
  font-family: 'Rubik', sans-serif; font-size: 1.05rem;
  background: #f8f9fa; 
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: #2d3436;
}

input:focus, textarea:focus {
  outline: none; 
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 159, 0, 0.15);
  transform: translateY(-2px);
}

.helper { font-size: 0.85rem; color: #b2bec3; margin-top: 6px; font-weight: 500; }

/* --- הכפתור הראשי (Juicy & Alive) --- */
.cta-3d {
  display: block; width: 100%;
  font-family: 'Rubik', sans-serif; font-weight: 900;
  background: linear-gradient(180deg, #ffb930 0%, #ff9f00 100%);
  color: #5d3a00;
  font-size: 1.3rem; padding: 18px;
  border: none; border-radius: 18px;
  /* אפקט לחיצה עבה */
  border-bottom: 6px solid #d37400;
  cursor: pointer; text-decoration: none; text-align: center;
  margin-top: 25px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 0.1s, border-bottom-width 0.1s;
  
  /* אנימציית "קריאה לפעולה" */
  animation: pulseBtn 3s infinite;
}

@keyframes pulseBtn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 15px 30px rgba(255, 159, 0, 0.3); }
}

.cta-3d:active {
  animation: none;
  transform: translateY(4px);
  border-bottom-width: 2px;
  margin-bottom: 4px; /* פיצוי על הגובה שאבד */
}
.cta-3d:hover { filter: brightness(1.05); }

/* כפתורים משניים */
.secondary-actions { display: flex; gap: 12px; margin-top: 20px; }
.btn-sec {
  flex: 1; background: #f1f2f6; color: #636e72;
  padding: 14px; border-radius: 14px; font-weight: 700;
  text-decoration: none; text-align: center; font-size: 0.95rem;
  border: 2px solid transparent;
  transition: 0.2s;
}
.btn-sec:hover { background: #fff; border-color: #dfe6e9; transform: translateY(-2px); }

/* הודעת הצלחה */
.join-note {
  background: #e8f5e9; color: #27ae60;
  padding: 16px; border-radius: 14px; margin-top: 25px;
  font-weight: 800; border: 2px solid #c8e6c9;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- צד שמאל: פאנל מידע --- */
.info-panel {
  background: linear-gradient(145deg, #fffdf5 0%, #fffbf0 100%);
  border: 3px solid #fff3e0;
  border-radius: 20px;
  padding: 30px;
  position: relative;
}

/* סטטוס שרת - סגנון גלאס */
.server-status-bar {
  background: rgba(46, 204, 113, 0.1); 
  border: 2px solid rgba(46, 204, 113, 0.3);
  padding: 10px 15px; border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 25px; 
  font-size: 0.9rem; color: #27ae60; font-weight: 800;
}
.status-indicator { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; background: #2ecc71; border-radius: 50%; box-shadow: 0 0 8px #2ecc71; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.4; } }

.live-title {
  font-weight: 900; color: var(--primary-dark);
  margin-bottom: 15px; font-size: 1.1rem;
  display: flex; align-items: center; gap: 8px;
}

/* פריטי חדשות - כמו פתקיות */
.news-wrapper { margin-bottom: 30px; }
.news-item {
  background: #fff8e1; 
  border-right: 5px solid #ffca28;
  padding: 12px; margin-bottom: 10px; border-radius: 8px;
  font-size: 0.95rem; color: #5d4037;
  transition: transform 0.2s;
}
.news-item:hover { transform: translateX(-5px); background: #fff; }
.news-date { font-size: 0.75rem; color: #ff8f00; font-weight: 800; display: block; margin-bottom: 4px; }

/* תפריט עתידי - כפתורים לחיצים */
.future-menu {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 25px;
}
.menu-btn {
  background: #fff; border: 2px solid #f1f2f6; border-radius: 14px;
  padding: 12px; text-align: center; font-weight: 700; font-size: 0.9rem;
  color: #a4b0be; cursor: not-allowed; transition: all 0.2s; 
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.menu-btn:hover:not(.active) { border-color: #eee; }
.menu-btn.active { 
  color: #2d3436; border-color: #ffe0b2; background: #fffbf0; cursor: pointer; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.menu-btn.active:hover { transform: translateY(-2px); border-color: var(--primary); }
.menu-btn i { font-size: 1.4rem; filter: grayscale(1); font-style: normal; }
.menu-btn.active i { filter: none; }

/* חברים מחוברים */
.friends-box { 
  margin-top: 30px; padding-top: 20px; 
  border-top: 2px dashed #f0e6cc; text-align: center; 
}
.friends-header { 
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; 
}
.friends-text { font-weight: 800; font-size: 0.95rem; color: #8d6e63; }
.friends-count { background: #ffeaa7; color: #d35400; padding: 4px 10px; border-radius: 20px; font-size: 0.85rem; font-weight: 900; }

.mini-avatars {
  display: flex; justify-content: center; align-items: center;
  gap: 10px; direction: ltr; 
}
.mini-av {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid #fff; background-color: #eee; 
  background-size: cover; background-position: center;
  box-shadow: 0 5px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.mini-av:hover { transform: scale(1.1); z-index: 2; }
.plus-more {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.9rem; color: var(--primary); 
  border: 3px solid #ffe082; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-right: 5px;
}

/* --- SEO & Footer --- */
.world-info {
  margin-top: 50px; text-align: center;
  font-size: 0.95rem; line-height: 1.7; color: #636e72;
  border-top: 2px solid #f1f2f6; padding-top: 30px;
}
.world-info h3 { font-family: 'Secular One', sans-serif; font-size: 1.3rem; margin-bottom: 10px; color: #2d3436; }
.keyword-pill { 
    display: inline-block; font-size: 0.8rem; color: #b2bec3; 
    background: #f8f9fa; padding: 2px 8px; border-radius: 4px; margin: 0 2px;
}
.foot { margin-top: 20px; font-size: 0.85rem; opacity: 0.7; font-weight: 500; }

/* --- Mobile Responsiveness --- */
@media (max-width: 850px) {
  body { padding: 15px; }
  .join-card { padding: 40px 20px; margin-top: 70px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  
  .right-col { order: 1; }
  .left-col { order: 2; }
  
  .header-area { text-align: center; }
  .form-group { text-align: center; }
  input, textarea { text-align: center; }
  .badge-container { text-align: center !important; }
  
  .mascot-peek { width: 130px; height: 130px; top: -80px; }
  h1 { font-size: 2.4rem; }
  
  .menu-btn { padding: 15px; } /* כפתורים גדולים יותר למגע */
}