﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=El+Messiri:wght@500;700&display=swap');

:root {
  --bg: #120706;
  --bg-2: #2a0f0b;
  --panel: rgba(31, 10, 8, 0.92);
  --panel-soft: rgba(46, 14, 10, 0.8);
  --border: rgba(255, 151, 86, 0.34);
  --brand: #b72c23;
  --brand-2: #ff8a4d;
  --brand-dark: #7b1f16;
  --text: #f7e7d7;
  --muted: #cfac91;
  --ok: #4fd28d;
  --danger: #f76a6a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 127, 66, 0.24), transparent 35%),
    radial-gradient(circle at 86% 18%, rgba(184, 55, 35, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(18, 7, 5, 0.36), rgba(18, 7, 5, 0.93)),
    url('/public/assets/images/background.jpg'),
    var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: #ffda96; text-decoration: none; }
a:hover { opacity: 0.92; }

.container {
  width: min(1180px, 94vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(24, 8, 7, 0.95), rgba(24, 8, 7, 0.8));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(7px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  min-height: 72px;
  gap: 12px;
}

.menu {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  width: 100%;
  white-space: nowrap;
}

.menu .btn {
  display: inline-flex !important;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-main {
  background: linear-gradient(140deg, var(--brand-dark), var(--brand));
  color: #fff4de;
  border-color: rgba(255, 219, 145, 0.42);
}

.btn-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(171, 45, 42, 0.44);
}

.btn-soft {
  color: #f4d0ac;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-soft:hover {
  border-color: rgba(255, 143, 84, 0.62);
  background: rgba(183, 44, 35, 0.24);
}

.btn-danger {
  background: #8f1f1f;
  color: #fff;
  border-color: rgba(255, 185, 185, 0.28);
}

.hero {
  padding: 32px 0 20px;
}

.hero h1 {
  font-family: 'El Messiri', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  margin: 0;
}

.hero p {
  color: var(--muted);
  max-width: 680px;
}

.landing {
  position: relative;
  padding: 18px 0 36px;
}

.landing-content {
  position: relative;
  z-index: 2;
}

.brand-title {
  text-align: center;
  margin: 10px 0 8px;
}

.brand-title img {
  width: min(620px, 86vw);
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.46));
}

.brand-subtitle {
  text-align: center;
  margin: 6px auto 20px;
  color: #ead7b6;
  font-weight: 700;
}

.hero-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  margin-bottom: 16px;
  direction: ltr;
}

.server-card,
.showcase-card,
.card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(26, 9, 8, 0.92), rgba(31, 11, 9, 0.82));
  box-shadow: 0 24px 34px rgba(0, 0, 0, 0.4);
}

.server-card {
  padding: 16px;
}

.server-card h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: #ffc485;
}

.server-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ecdfcd;
}

.server-row strong {
  color: #ffbe82;
}

.full-btn {
  width: 100%;
  margin-top: 14px;
}

.showcase-card {
  min-height: 260px;
  overflow: hidden;
}

.showcase-banner {
  height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(22, 8, 7, 0.26), rgba(22, 8, 7, 0.88)),
    url('/public/assets/images/background.jpg');
  background-size: cover;
  background-position: center;
}

.showcase-banner h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: #ffd4a9;
}

.showcase-banner p {
  margin: 6px 0 12px;
  color: #e3bf9f;
}

.showcase-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
  margin-bottom: 14px;
  direction: ltr;
}

.card {
  padding: 16px;
  direction: rtl;
}

.server-card,
.showcase-card,
.events-strip {
  direction: rtl;
}

.tabs-head {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  border: 1px solid rgba(250, 152, 97, 0.3);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.88rem;
  color: #f4c79f;
}

.tab.active {
  background: rgba(171, 45, 42, 0.34);
  color: #ffeacc;
}

.section-title {
  margin: 0 0 12px;
  font-family: 'El Messiri', sans-serif;
  letter-spacing: 0.3px;
  font-size: 2rem;
  color: #ffd4aa;
}

.item {
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  padding: 12px 0;
}

.item:first-child {
  border-top: 0;
}

.item h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.item p {
  margin: 0 0 8px;
  color: #d1bc9f;
  line-height: 1.8;
}

.meta {
  color: #f0ab74;
  font-size: 0.84rem;
}

.login-card {
  align-self: start;
}

.login-title {
  margin: 0 0 14px;
  font-family: 'El Messiri', sans-serif;
  font-size: 2rem;
  color: #f6d7a5;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.input,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

.news-card {
  min-height: 280px;
}

.events-strip {
  margin-bottom: 24px;
}

.events-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.event-pill {
  border: 1px solid rgba(235, 146, 86, 0.3);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.event-pill h4 {
  margin: 0 0 8px;
  color: #ffc99f;
}

.event-pill p {
  margin: 0 0 8px;
  color: #d1bc9f;
  line-height: 1.7;
}

.quick-card {
  align-self: start;
}

.quick-text {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
}

.flash {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
}

.flash.ok {
  background: rgba(79, 210, 141, 0.16);
  border: 1px solid rgba(79, 210, 141, 0.4);
}

.flash.error {
  background: rgba(247, 106, 106, 0.14);
  border: 1px solid rgba(247, 106, 106, 0.4);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 9px;
  text-align: right;
}

.footer {
  padding: 14px 0 26px;
  color: #d8bb8c;
  text-align: center;
}

@media (max-width: 980px) {
  .nav {
    padding: 10px 0;
  }

  .hero-panel,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .events-list {
    grid-template-columns: 1fr;
  }
}
