/* style.css - ثيم موقع روابطك */

/* Reset بسيط */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Cairo", sans-serif;
  background: radial-gradient(circle at top, #022c22, #020617);
  color: #e5e7eb;
  min-height: 100vh;
  direction: rtl;
}

/* روابط عامة */
a {
  color: inherit;
  text-decoration: none;
}

/* كونتينر أساسي */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* شريط علوي */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
}

.brand-badge {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* أزرار عامة */
.nav-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  border: 1px solid #4b5563;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.btn:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  border: none;
  color: #022c22;
  font-weight: 700;
}

.btn-primary:hover {
  filter: brightness(1.04);
}

/* الهيرو */
.hero {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-title {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-title span {
  color: #22c55e;
}

.hero-subtitle {
  font-size: 15px;
  color: #cbd5f5;
  margin-bottom: 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #1f2937;
}

/* بطاقة المعاينة */
.hero-card {
  background: radial-gradient(circle at top left, #052e16, #020617);
  border: 1px solid #064e3b;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hero-card-title {
  font-size: 16px;
  font-weight: 600;
}

.hero-card-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.8);
}

.hero-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.hero-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.7);
  border: 1px solid #064e3b;
  font-size: 13px;
}

.hero-link-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-link-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.hero-footer-text {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 12px;
}

/* منطقة تسجيل الدخول في الصفحة الرئيسية */
.login-section {
  margin-top: 60px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid #064e3b;
  max-width: 420px;
}

.login-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.login-sub {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 16px;
}

/* فورمات عامة */
.form-group {
  margin-bottom: 14px;
}

label {
  font-size: 13px;
  color: #e5e7eb;
  display: block;
  margin-bottom: 4px;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="color"],
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  padding: 8px 10px;
  font-size: 13px;
}

textarea {
  min-height: 70px;
  resize: vertical;
}

.helper-text {
  font-size: 11px;
  color: #9ca3af;
}

/* لوحة الإدارة */
.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #064e3b;
}

.admin-main {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #064e3b;
}

.admin-nav-item {
  display: block;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.admin-nav-item.active,
.admin-nav-item:hover {
  background: rgba(6, 95, 70, 0.9);
}

/* جدول */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  padding: 8px 6px;
  border-bottom: 1px solid #020617;
}

.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(6, 95, 70, 0.9);
}

/* صفحة البيو */
.bio-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.bio-card {
  width: 100%;
  max-width: 420px;
  border-radius: 26px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  text-align: center;
}

.bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid rgba(34, 197, 94, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  margin: 0 auto 14px;
}

.bio-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.bio-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 10px;
}

.bio-description {
  font-size: 13px;
  color: #d1d5db;
  margin-bottom: 20px;
}

/* زر واتساب */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: #22c55e;
  color: #022c22;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 12px;
  text-decoration: none;
}

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
}

.bio-footer {
  margin-top: 16px;
  font-size: 11px;
  color: #9ca3af;
}
