/**
 * Guild Info — referans mockup birebir
 * TEK metal çerçeve (4 iç bölme) + ok uçlu bordo ayırıcı + dumanlı tablo paneli
 */

body.jg-guildinfo-page #left_menu { display: none !important; }

#content.jg-guildinfo-wrap {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
#content.jg-guildinfo-wrap > .jg-home__grid { display: flex; align-items: flex-start; width: 100%; }
#content.jg-guildinfo-wrap .jg-main { flex: 1 1 auto; min-width: 0; }
#content.jg-guildinfo-wrap .legacy-paper-content,
#content.jg-guildinfo-wrap #content_container {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
#content_container_inside.jg-guildinfo-page { padding: 18px 14px 10px !important; }

/* Legacy absolute reset */
#main #content.jg-guildinfo-wrap #guild_info_container,
#main #content.jg-guildinfo-wrap #guild_name,
#main #content.jg-guildinfo-wrap #guild_level,
#main #content.jg-guildinfo-wrap #guild_memcount,
#main #content.jg-guildinfo-wrap #guild_master,
#main #content.jg-guildinfo-wrap #gname,
#main #content.jg-guildinfo-wrap #gcreatedate_text,
#main #content.jg-guildinfo-wrap #gcreatedate,
#main #content.jg-guildinfo-wrap #guild_master_name,
#main #content.jg-guildinfo-wrap #guild_master_label,
#main #content.jg-guildinfo-wrap #guild_level_name,
#main #content.jg-guildinfo-wrap #guild_memcount_name,
#main #content.jg-guildinfo-wrap #rankLabelDiv {
  position: static !important;
  float: none !important;
  left: auto !important; top: auto !important; right: auto !important; bottom: auto !important;
  width: auto !important; height: auto !important; margin: 0 !important;
  background: none !important; background-image: none !important;
}

.jg-gi {
  --gold: #e0c06a;
  --gold-hi: #f4dfa0;
  --gold-lo: #a87e2e;
  --text: #efe6d2;
  --panel: #0e0c0a;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  font-family: "Cinzel", "Marcellus", Georgia, serif;
  box-sizing: border-box;
}
.jg-gi *, .jg-gi *::before, .jg-gi *::after { box-sizing: border-box; }

/* ===== Ortak metal panel çerçevesi ===== */
.jg-gi__panel {
  position: relative;
  border: 2px solid #6a5632;
  border-radius: 3px;
  background: #0c0a09;
  box-shadow:
    0 0 0 1px #1a140e,
    0 0 0 3px rgba(90, 70, 35, 0.35),
    inset 0 0 0 1px rgba(230, 192, 106, 0.28),
    inset 0 1px 0 rgba(255, 230, 160, 0.1),
    0 10px 22px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.jg-gi__gem {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7a6a 0%, #c01818 42%, #4a0505 100%);
  box-shadow: 0 0 6px rgba(255, 50, 40, 0.65), inset 0 1px 0 rgba(255, 200, 180, 0.5);
  z-index: 5;
  pointer-events: none;
}
.jg-gi__gem--tl { top: 5px; left: 5px; }
.jg-gi__gem--tr { top: 5px; right: 5px; }
.jg-gi__gem--bl { bottom: 5px; left: 5px; }
.jg-gi__gem--br { bottom: 5px; right: 5px; }

/* ===== HEADER: TEK panel, 4 kolon, gap YOK ===== */
#main #content.jg-guildinfo-wrap .jg-gi__panel--header,
#main #content.jg-guildinfo-wrap #guild_info_container {
  display: grid !important;
  grid-template-columns: 2.1fr 0.85fr 0.85fr 0.95fr !important;
  gap: 0 !important;
  min-height: 148px !important;
  height: auto !important;
  width: 100% !important;
  background: #0c0a09 !important;
  overflow: hidden !important;
}

#main #content.jg-guildinfo-wrap .jg-gi__brand,
#main #content.jg-guildinfo-wrap #guild_name,
#main #content.jg-guildinfo-wrap .jg-gi__stat,
#main #content.jg-guildinfo-wrap #guild_level,
#main #content.jg-guildinfo-wrap #guild_memcount,
#main #content.jg-guildinfo-wrap .jg-gi__master,
#main #content.jg-guildinfo-wrap #guild_master {
  border-right: 1px solid rgba(200, 155, 60, 0.38) !important;
}

#main #content.jg-guildinfo-wrap .jg-gi__master,
#main #content.jg-guildinfo-wrap #guild_master {
  border-right: 0 !important;
}

/* Brand */
#main #content.jg-guildinfo-wrap .jg-gi__brand,
#main #content.jg-guildinfo-wrap #guild_name {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px 14px 18px !important;
  min-width: 0 !important;
  background:
    linear-gradient(90deg, rgba(6, 5, 4, 0.75) 0%, rgba(6, 5, 4, 0.35) 55%, rgba(6, 5, 4, 0.15) 100%),
    url("../img/guild/castle-bg.png") left center / cover no-repeat !important;
}

.jg-gi__crest {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.75)) drop-shadow(0 0 14px rgba(230,192,106,.4));
}
.jg-gi__crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent !important;
}

.jg-gi__brand-body { min-width: 0; flex: 1; }

#main #content.jg-guildinfo-wrap .jg-gi__gname,
#main #content.jg-guildinfo-wrap #gname {
  margin: 0 0 9px !important;
  padding: 0 !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  color: var(--gold-hi) !important;
  text-shadow: 0 1px 0 #3a2808, 0 0 16px rgba(244,223,160,.4) !important;
  white-space: nowrap !important;
}

.jg-gi__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  color: #d8c9a8;
  font-family: Georgia, serif;
}
.jg-gi__meta-ico { color: var(--gold-lo); display: inline-flex; }
#main #content.jg-guildinfo-wrap #gcreatedate_text { color: #ebe0c8 !important; font-size: 12px !important; }
#main #content.jg-guildinfo-wrap #gcreatedate { color: var(--gold) !important; font-size: 12px !important; font-weight: 600 !important; }

/* LEVEL / ÜYE */
#main #content.jg-guildinfo-wrap .jg-gi__stat,
#main #content.jg-guildinfo-wrap #guild_level,
#main #content.jg-guildinfo-wrap #guild_memcount {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 10px 4px 14px !important;
  background: linear-gradient(180deg, #151210 0%, #0a0908 100%) !important;
}

.jg-gi__wreath {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jg-gi__laurel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(230,192,106,.35));
  background: transparent !important;
}

#main #content.jg-guildinfo-wrap .jg-gi__stat-num,
#main #content.jg-guildinfo-wrap #guild_level_name,
#main #content.jg-guildinfo-wrap #guild_memcount_name {
  position: relative !important;
  z-index: 1 !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: var(--gold-hi) !important;
  text-shadow: 0 1px 0 #3a2808, 0 0 14px rgba(244,223,160,.45) !important;
  text-align: center !important;
}

.jg-gi__stat-label {
  position: relative;
  z-index: 1;
  margin-top: -2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

/* MASTER */
#main #content.jg-guildinfo-wrap .jg-gi__master,
#main #content.jg-guildinfo-wrap #guild_master {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 14px 10px !important;
  background:
    radial-gradient(ellipse 90% 55% at 50% 10%, rgba(170, 40, 30, 0.55) 0%, transparent 70%),
    linear-gradient(180deg, #6e1616 0%, #3f0c0c 55%, #2a0808 100%) !important;
}

.jg-gi__crown { width: 40px; height: 26px; filter: drop-shadow(0 0 8px rgba(244,223,160,.5)); }
.jg-gi__crown-svg { width: 100%; height: 100%; display: block; }

#main #content.jg-guildinfo-wrap .jg-gi__master-name,
#main #content.jg-guildinfo-wrap #guild_master_name {
  font-size: 22px !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: var(--gold-hi) !important;
}
#main #content.jg-guildinfo-wrap .jg-gi__master-name a,
#main #content.jg-guildinfo-wrap #guild_master_name a {
  color: var(--gold-hi) !important;
  text-decoration: none !important;
  text-shadow: 0 1px 0 #3a1808, 0 0 12px rgba(244,223,160,.35) !important;
}
#main #content.jg-guildinfo-wrap .jg-gi__master-name a:hover { color: #fff6c8 !important; }

#main #content.jg-guildinfo-wrap .jg-gi__master-label,
#main #content.jg-guildinfo-wrap #guild_master_label {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #f0e6c8 !important;
  text-align: center !important;
}

/* ===== Ok uçlu bordo ayırıcı (referans) ===== */
#main #content.jg-guildinfo-wrap .jg-gi__divider,
#main #content.jg-guildinfo-wrap #rankLabelDiv {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: calc(100% - 24px) !important;
  max-width: 100% !important;
  height: 36px !important;
  margin: 14px auto !important;
  padding: 0 28px !important;
  line-height: normal !important;
  font-size: inherit !important;
  text-align: center !important;
  border: 1px solid rgba(200, 155, 60, 0.55) !important;
  background: linear-gradient(180deg, #7a1c1c 0%, #4e1010 45%, #3a0c0c 100%) !important;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,180,120,.12),
    0 4px 10px rgba(0,0,0,.25) !important;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
}

.jg-gi__divider-text {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f4ead0;
  text-shadow: 0 1px 2px rgba(0,0,0,.65);
  white-space: nowrap;
}
.jg-gi__divider-text::before,
.jg-gi__divider-text::after {
  content: "◆";
  display: inline-block;
  margin: 0 10px;
  font-size: 9px;
  color: var(--gold);
  vertical-align: middle;
  text-shadow: 0 0 6px rgba(230,192,106,.5);
}

/* ===== Tablo paneli ===== */
.jg-gi__panel--table {
  min-height: 160px;
  padding-bottom: 6px;
  background:
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(180, 55, 15, 0.28) 0%, transparent 58%),
    linear-gradient(180deg, #12100e 0%, #0a0908 55%, #080706 100%);
}

.jg-gi__table-bg {
  position: absolute;
  inset: 0;
  background: url("../img/guild/crest-alpha.png") center 70% / 340px no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

#main #content.jg-guildinfo-wrap .jg-gi__table {
  position: relative;
  z-index: 1;
  width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse !important;
  table-layout: fixed;
  border: 0 !important;
}

#main #content.jg-guildinfo-wrap .jg-gi__table th {
  padding: 12px 4px !important;
  background: rgba(0,0,0,.4) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(200,155,60,.45) !important;
  color: var(--gold) !important;
  font-family: "Cinzel", Georgia, serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

#main #content.jg-guildinfo-wrap .jg-gi__table td,
#main #content #content_container .jg-guildinfo-page .jg-gi__table td {
  padding: 13px 4px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(200,155,60,.12) !important;
  background: transparent !important;
  color: #efe6d2 !important;
  font-family: Georgia, serif !important;
  font-size: 13px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

#main #content.jg-guildinfo-wrap .jg-gi__table tbody tr:hover td {
  background: rgba(90,28,16,.28) !important;
}

#main #content.jg-guildinfo-wrap .jg-gi__table a,
#main #content #content_container .jg-guildinfo-page .jg-gi__table a {
  color: #efe6d2 !important;
  text-decoration: none !important;
  font-weight: 600;
}
#main #content.jg-guildinfo-wrap .jg-gi__table a:hover { color: var(--gold-hi) !important; }

#main #content.jg-guildinfo-wrap .jg-gi__gold,
#main #content.jg-guildinfo-wrap .jg-gi__table a.jg-gi__gold,
#main #content #content_container .jg-guildinfo-page .jg-gi__table .jg-gi__gold,
#main #content #content_container .jg-guildinfo-page .jg-gi__table a.jg-gi__gold {
  color: var(--gold-hi) !important;
  font-weight: 700 !important;
}

#main #content #content_container .jg-guildinfo-page .jg-gi__table th {
  color: var(--gold) !important;
}

.jg-gi__table th:nth-child(1), .jg-gi__table td:nth-child(1) { width: 6%; }
.jg-gi__table th:nth-child(2), .jg-gi__table td:nth-child(2) { width: 15%; }
.jg-gi__table th:nth-child(3), .jg-gi__table td:nth-child(3) { width: 10%; }
.jg-gi__table th:nth-child(4), .jg-gi__table td:nth-child(4) { width: 8%; }
.jg-gi__table th:nth-child(5), .jg-gi__table td:nth-child(5) { width: 12%; }
.jg-gi__table th:nth-child(6), .jg-gi__table td:nth-child(6) { width: 12%; }
.jg-gi__table th:nth-child(7), .jg-gi__table td:nth-child(7) { width: 14%; }
.jg-gi__table th:nth-child(8), .jg-gi__table td:nth-child(8) { width: 23%; }

/* Footer: logo + iki yana altın süs çizgi */
body.jg-guildinfo-page .legacy-paper-footer {
  justify-content: center !important;
  padding-top: 22px !important;
}
body.jg-guildinfo-page .legacy-paper-footer__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 78px;
}
body.jg-guildinfo-page .legacy-paper-footer__logo::before,
body.jg-guildinfo-page .legacy-paper-footer__logo::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 68px;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, #a87e2e, #f4dfa0, #a87e2e, transparent);
}
body.jg-guildinfo-page .legacy-paper-footer__logo::before {
  right: 100%;
  clip-path: polygon(0 50%, 10px 0, 100% 0, 100% 100%, 10px 100%);
}
body.jg-guildinfo-page .legacy-paper-footer__logo::after {
  left: 100%;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

@media (max-width: 900px) {
  .jg-gi { max-width: 100%; }
  #main #content.jg-guildinfo-wrap .jg-gi__panel--header {
    grid-template-columns: 1fr 1fr !important;
  }
  .jg-gi__brand { grid-column: 1 / -1; }
  .jg-gi__master { grid-column: 1 / -1; min-height: 100px; }
  #main #content.jg-guildinfo-wrap .jg-gi__gname { font-size: 24px !important; }
  .jg-gi__crest { flex-basis: 78px; width: 78px; height: 78px; }
  #main #content.jg-guildinfo-wrap .jg-gi__divider {
    width: 100% !important;
    clip-path: none;
  }
}
