/*
Theme Name: Czarnolandia Dark Fantasy
Theme URI: https://example.com/
Author: OpenAI
Description: Mroczny motyw WordPress w klimacie Tibia / Metin / Diablo dla serwera PvP i systemu gildii.
Version: 2.0
License: GPLv2 or later
Text Domain: czarnolandia-dark-fantasy
*/

* { box-sizing: border-box; }

:root{
  --bg:#0b0808;
  --bg2:#151010;
  --panel:#1a1414;
  --panel2:#241919;
  --panel3:#2f2020;
  --text:#efe1c8;
  --muted:#bda887;
  --gold:#cda15a;
  --gold2:#f0c987;
  --red:#7f1d1d;
  --red2:#b83232;
  --steel:#8a7f73;
  --line:rgba(240,201,135,.16);
  --shadow:0 14px 34px rgba(0,0,0,.45);
}

html { scroll-behavior:smooth; }

body{
  margin:0;
  color:var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top, rgba(184,50,50,.14), transparent 28%),
    radial-gradient(circle at bottom, rgba(205,161,90,.07), transparent 22%),
    linear-gradient(180deg, #090707 0%, #120d0d 34%, #0b0808 100%);
  line-height:1.68;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; }

.container{
  width:min(1240px, calc(100% - 32px));
  margin:0 auto;
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,8,8,.97), rgba(20,12,12,.93));
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.header-inner{
  min-height:96px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:16px 0;
}

.logo-wrap{ display:flex; align-items:center; gap:14px; }
.logo-mark{
  width:58px;
  height:58px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:22px;
  color:#fff4df;
  background: linear-gradient(135deg, #4b0f0f, #8d1f1f 55%, #cda15a);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 20px rgba(0,0,0,.3);
  flex:0 0 auto;
}

.logo-text h1,
.site-title{
  font-size:30px;
  line-height:1.05;
  color:var(--gold2);
  letter-spacing:.5px;
  margin:0;
  text-transform:uppercase;
  text-shadow:0 1px 0 #000;
}

.logo-text span,
.site-description{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
  letter-spacing:1.2px;
  text-transform:uppercase;
}

.site-branding a:hover{ opacity:.95; }

.main-nav .menu,
.main-nav ul{
  display:flex;
  list-style:none;
  gap:10px;
  flex-wrap:wrap;
  margin:0;
  padding:0;
}

.main-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 15px;
  border-radius:12px;
  color:var(--text);
  transition:.25s ease;
  border:1px solid transparent;
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}

.main-nav a:hover,
.main-nav .current-menu-item > a{
  background:linear-gradient(180deg, rgba(184,50,50,.18), rgba(205,161,90,.08));
  color:var(--gold2);
  border-color:rgba(240,201,135,.16);
}

/* HERO */
.hero-banner{
  margin:28px 0 18px;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  position:relative;
  background:
    linear-gradient(135deg, rgba(127,29,29,.32), rgba(26,20,20,.84) 45%, rgba(13,10,10,.96)),
    radial-gradient(circle at right, rgba(205,161,90,.11), transparent 30%);
  box-shadow:var(--shadow);
}

.hero-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:34px 30px;
}

.hero-copy{
  max-width:760px;
}

.hero-kicker{
  display:inline-block;
  margin-bottom:12px;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--gold2);
  background:rgba(205,161,90,.1);
  border:1px solid rgba(240,201,135,.12);
}

.hero-copy h2{
  margin:0 0 10px;
  font-size:42px;
  line-height:1.08;
  color:#fff1d8;
  text-shadow:0 2px 10px rgba(0,0,0,.3);
}

.hero-copy p{
  margin:0;
  color:#dbc7a5;
  max-width:650px;
}

.hero-badges{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.hero-badge{
  padding:10px 14px;
  border-radius:12px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(240,201,135,.1);
  color:var(--text);
  font-size:14px;
}

/* MAIN */
.site-main{ padding: 10px 0 52px; }

.layout{
  display:grid;
  grid-template-columns:minmax(0,2.1fr) minmax(300px,0.95fr);
  gap:28px;
  align-items:start;
}

.section-head{
  margin-bottom:22px;
  padding:18px 22px;
  background:linear-gradient(180deg, rgba(47,32,32,.95), rgba(26,20,20,.98));
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
  position:relative;
}

.section-head:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  border-radius:20px 0 0 20px;
  background:linear-gradient(180deg, var(--red2), var(--gold));
}

.section-head h2{
  font-size:30px;
  color:var(--gold2);
  margin:0 0 6px 10px;
  text-transform:uppercase;
}

.section-head p{
  color:var(--muted);
  margin:0 0 0 10px;
}

/* POSTS */
.content-area{ min-width:0; }

.post-card,
article.post,
article.page,
.search .post,
.archive .post{
  position:relative;
  background:linear-gradient(180deg, rgba(40,28,28,.98), rgba(24,18,18,.98));
  border:1px solid var(--line);
  border-radius:22px;
  padding:26px;
  margin-bottom:24px;
  box-shadow:var(--shadow);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow:hidden;
}

.post-card:before,
article.post:before,
article.page:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg, var(--red2), var(--gold2), transparent 80%);
  opacity:.9;
}

.post-card:hover,
article.post:hover{
  transform:translateY(-3px);
  border-color:rgba(240,201,135,.34);
  box-shadow:0 18px 38px rgba(0,0,0,.52);
}

.post-badge{
  display:inline-block;
  margin-bottom:14px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(184,50,50,.16);
  color:var(--gold2);
  border:1px solid rgba(240,201,135,.1);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.9px;
}

.entry-title,
.post-card h3{
  font-size:30px;
  line-height:1.14;
  margin:0 0 10px;
  color:#fff3dc;
  text-shadow:0 1px 0 #000;
}

.entry-title a:hover{ color:var(--gold2); }

.entry-meta,
.post-meta{
  font-size:14px;
  color:var(--muted);
  margin-bottom:14px;
}

.entry-content p,
.entry-summary p,
.post-card p{
  color:#e9d7b7;
  margin-bottom:20px;
}

.btn,
.read-more-link,
button,
input[type="submit"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border-radius:12px;
  background:linear-gradient(135deg, #6d1515, #a52a2a 50%, #d0a15f);
  color:#fff3dd;
  font-weight:700;
  border:1px solid rgba(255,255,255,.07);
  box-shadow:0 8px 18px rgba(0,0,0,.28);
  transition:.25s ease;
  text-transform:uppercase;
  letter-spacing:.4px;
}

.btn:hover,
.read-more-link:hover,
button:hover,
input[type="submit"]:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
}

/* SIDEBAR */
.sidebar{ min-width:0; }

.widget{
  background:linear-gradient(180deg, rgba(41,28,28,.96), rgba(22,17,17,.98));
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px;
  margin-bottom:24px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}

.widget:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:2px;
  background:linear-gradient(90deg, var(--gold), var(--red2), transparent 85%);
}

.widget h3{
  font-size:22px;
  color:var(--gold2);
  margin:0 0 14px;
  text-transform:uppercase;
}

.widget p, .widget li{ color:#e6d5b5; }

.widget-intro{
  margin:0 0 14px;
  color:var(--muted);
}

.map-note{
  margin-top:12px;
  font-size:13px;
  color:var(--muted);
}

.quick-links{
  list-style:none;
  margin:0;
  padding:0;
}
.quick-links li + li{ margin-top:10px; }
.quick-links a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.02);
  border:1px solid rgba(240,201,135,.06);
  transition:.25s ease;
}
.quick-links a:hover{
  background:rgba(184,50,50,.14);
  color:var(--gold2);
  border-color:rgba(240,201,135,.14);
}

/* MAP PANEL */
.map-preview{
  border:1px solid rgba(240,201,135,.14);
  border-radius:18px;
  padding:18px;
  background:
    linear-gradient(180deg, rgba(127,29,29,.16), rgba(0,0,0,.16)),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.map-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:0 0 14px;
}

.map-tile{
  aspect-ratio:1/1;
  border-radius:10px;
  border:1px solid rgba(240,201,135,.08);
  background:
    linear-gradient(135deg, rgba(205,161,90,.10), rgba(127,29,29,.12)),
    linear-gradient(180deg, #1e1616, #120d0d);
  position:relative;
  overflow:hidden;
}

.map-tile:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, transparent 48%, rgba(240,201,135,.08) 49%, transparent 50%),
    linear-gradient(transparent 48%, rgba(240,201,135,.08) 49%, transparent 50%);
  opacity:.55;
}

.map-tile.is-center{
  border-color:rgba(240,201,135,.24);
  box-shadow:0 0 0 1px rgba(240,201,135,.12), 0 0 18px rgba(184,50,50,.18);
}

.map-pin{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:14px;
  height:14px;
  border-radius:999px;
  background:radial-gradient(circle at 35% 35%, #fff, var(--gold2) 35%, var(--red2) 75%);
  box-shadow:0 0 0 4px rgba(184,50,50,.16), 0 0 16px rgba(240,201,135,.22);
}

.map-open-btn{ width:100%; text-align:center; margin-top:2px; }

.map-coords{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.coord-chip{
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  background:rgba(0,0,0,.24);
  border:1px solid rgba(240,201,135,.10);
  color:var(--muted);
}

/* FOOTER */
.site-footer{
  border-top:1px solid var(--line);
  background:linear-gradient(180deg, rgba(18,12,12,.94), rgba(8,6,6,.96));
  margin-top:20px;
}

.footer-inner{
  min-height:100px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:24px 0;
  color:var(--muted);
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}

.footer-links a{
  color:var(--text);
  opacity:.92;
}

.footer-links a:hover{ color:var(--gold2); }

/* WP BASICS */
.alignwide, .alignfull{ max-width:100%; }
.wp-block-image img{ border-radius:16px; }
.screen-reader-text{ position:absolute; left:-9999px; }

/* RESPONSIVE */
@media (max-width: 980px){
  .header-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .hero-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .hero-copy h2{ font-size:34px; }
  .layout{ grid-template-columns:1fr; }
  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 640px){
  .container{ width:min(100% - 20px, 1240px); }
  .logo-text h1, .site-title{ font-size:24px; }
  .hero-copy h2{ font-size:28px; }
  .section-head h2{ font-size:24px; }
  .entry-title, .post-card h3{ font-size:24px; }
  .map-grid{ gap:6px; }
}
