/* Ortak kabuk: ust menu, alt bilgi, butonlar. Ana sayfa ve ic sayfalar kullanir. */
:root {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --card: #151922;
  --line: #262c38;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --gold: #d9a441;
  --gold-2: #f1c86a;
  --karus: #e0503c;
  --human: #3c8ee0;
  --on: #39c46b;
  --off: #8a909c;
  --radius: 12px;
}

.rw-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

.rw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease; white-space: nowrap;
  font-family: 'Inter', system-ui, sans-serif; text-decoration: none !important;
}
.rw-btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1205 !important; }
.rw-btn-gold:hover { filter: brightness(1.08); }
.rw-btn-ghost { border-color: rgba(255,255,255,.18); color: var(--text) !important; background: rgba(255,255,255,.04); }
.rw-btn-ghost:hover { border-color: var(--gold); color: var(--gold-2) !important; }

/* Ust menu */
.rw-nav {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(14,17,24,.94), rgba(11,13,18,.9));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217,164,65,.18);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.5;
}
.rw-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(241,200,106,.55), transparent); }
.rw-nav *, .rw-foot * { box-sizing: border-box; }
.rw-nav a, .rw-foot a { text-decoration: none !important; }
.rw-nav-in { display: flex; align-items: center; gap: 22px; height: 72px; }
.rw-brand { display: flex; align-items: center; gap: 12px; line-height: 1; flex-shrink: 0; }
.rw-brand-crest {
  width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--gold-2), #a8741f); color: #1a1205; font-size: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 6px 18px rgba(217,164,65,.28);
}
.rw-brand-txt { display: flex; flex-direction: column; }
.rw-brand-main {
  font-family: 'Cinzel', serif; font-weight: 800; font-size: 22px; letter-spacing: 3px;
  background: linear-gradient(180deg, #ffe39a, var(--gold) 60%, #8a5a14);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rw-brand-sub { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.rw-menu { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.rw-link {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 9px;
  color: #c9cfda !important; font-weight: 600; font-size: 14px; transition: color .15s, background .15s;
}
.rw-link > i:first-child { font-size: 13px; color: var(--gold); opacity: .8; }
.rw-link .rw-caret { font-size: 11px; opacity: .6; transition: transform .2s; }
.rw-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform: scaleX(0); transition: transform .2s; }
.rw-link:hover, .rw-dd:hover > .rw-link { color: #fff !important; background: rgba(255,255,255,.04); }
.rw-link:hover::after, .rw-dd:hover > .rw-link::after, .rw-link.is-on::after { transform: scaleX(1); }
.rw-link.is-on { color: var(--gold-2) !important; }
.rw-dd:hover .rw-caret { transform: rotate(180deg); }
.rw-link-discord > i:first-child { color: #8b95ff; opacity: 1; }
.rw-dd { position: relative; }
.rw-dd-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; min-width: 290px;
  background: rgba(17,20,27,.98); border: 1px solid rgba(217,164,65,.2); border-radius: 14px; padding: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.rw-dd-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.rw-dd:hover .rw-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.rw-dd-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: #dfe3ea !important; font-size: 14px; font-weight: 600; }
.rw-dd-menu a > i { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: #0d1016; border: 1px solid var(--line); color: var(--gold); font-size: 14px; transition: .15s; }
.rw-dd-menu a span { display: flex; flex-direction: column; line-height: 1.25; }
.rw-dd-menu a small { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.rw-dd-menu a:hover { background: rgba(217,164,65,.09); color: #fff !important; }
.rw-dd-menu a:hover > i { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1205; border-color: transparent; }
.rw-actions { display: flex; gap: 8px; flex-shrink: 0; }
.rw-btn-icon { padding-left: 12px; padding-right: 12px; }
.rw-burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text); font-size: 18px; cursor: pointer; }

/* Alt bilgi */
.rw-foot { position: relative; margin-top: 40px; background: linear-gradient(180deg, #0f1218, #0a0c10); border-top: 1px solid rgba(217,164,65,.18); font-family: 'Inter', system-ui, sans-serif; color: var(--muted); font-size: 14px; line-height: 1.5; }
.rw-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(241,200,106,.55), transparent); }
.rw-foot-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.rw-foot-brand p { margin: 16px 0 18px; max-width: 320px; color: var(--muted); }
.rw-foot-col { display: flex; flex-direction: column; gap: 9px; }
.rw-foot-col h4 { margin: 4px 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold) !important; font-weight: 700; font-family: 'Inter', system-ui, sans-serif; }
.rw-foot-col a { color: #b7bfcc !important; transition: color .15s, transform .15s; display: inline-block; }
.rw-foot-col a:hover { color: var(--gold-2) !important; transform: translateX(3px); }
.rw-foot-col .rw-foot-cta { margin-top: 8px; align-self: flex-start; color: #1a1205 !important; }
.rw-foot-col .rw-foot-cta:hover { transform: none; }
.rw-social { display: flex; gap: 10px; }
.rw-social a { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #c9cfda !important; background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: .15s; }
.rw-social a:hover { color: #1a1205 !important; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: transparent; transform: translateY(-2px); }
.rw-foot-bottom { border-top: 1px solid var(--line); }
.rw-foot-bottom-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; font-size: 13px; color: #6f7786; flex-wrap: wrap; }
.rw-foot-bottom-in a { color: #8a93a3 !important; }
.rw-foot-bottom-in a:hover { color: var(--gold-2) !important; }

@media (max-width: 1100px) {
  .rw-link > i:first-child { display: none; }
  .rw-link { padding: 10px 10px; }
}
@media (max-width: 960px) {
  .rw-burger { display: flex; align-items: center; justify-content: center; }
  .rw-menu, .rw-actions { display: none; }
  body.rw-menu-open .rw-menu {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(14,17,24,.98); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  body.rw-menu-open .rw-actions { display: flex; position: absolute; top: 16px; right: 70px; z-index: 2; }
  .rw-link > i:first-child { display: inline; }
  .rw-link::after { display: none; }
  .rw-dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 8px; background: transparent; min-width: 0; }
  .rw-dd-menu a small { display: none; }
  .rw-foot-top { grid-template-columns: 1fr 1fr; }
  .rw-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body.rw-menu-open .rw-actions { position: static; padding: 0 16px 12px; }
  .rw-foot-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .rw-foot-bottom-in { justify-content: center; text-align: center; padding: 12px 0; }
}

/* Panelden yuklenen logo */
.rw-brand-logo { display: block; width: auto; max-width: 220px; object-fit: contain; }

/* Duyuru bandi (Ops Panel > Site Ayarlari > Duyuru) */
.rw-duyuru { font: 600 14px/1.4 'Inter', system-ui, sans-serif; text-align: center; padding: 9px 0; position: relative; z-index: 1001; }
.rw-duyuru .rw-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; }
.rw-duyuru a, .rw-duyuru span { color: inherit !important; text-decoration: none !important; }
.rw-duyuru a:hover { text-decoration: underline !important; }
.rw-duyuru-altin { background: linear-gradient(90deg, #a8741f, var(--gold), #a8741f); color: #1a1205; }
.rw-duyuru-kirmizi { background: linear-gradient(90deg, #8f2a1d, #c94430, #8f2a1d); color: #fff; }
.rw-duyuru-mavi { background: linear-gradient(90deg, #1f4f86, #2f73bd, #1f4f86); color: #fff; }
.rw-duyuru-yesil { background: linear-gradient(90deg, #1d6b3c, #2c9a57, #1d6b3c); color: #fff; }
