/* Xitcoin XTC — Theme layout (header/footer/blog) */

:root{
  --xtc-wide: 1300px;
  --xtc-radius: 18px;
  --xtc-border: rgba(255,255,255,.10);
  --xtc-border-2: rgba(255,255,255,.14);
  --xtc-glass: rgba(255,255,255,.03);
  --xtc-glass-2: rgba(255,255,255,.04);
  --xtc-text: rgba(255,255,255,.88);
  --xtc-muted: rgba(255,255,255,.62);
  --xtc-muted-2: rgba(255,255,255,.52);
  --xtc-orange: #FB8D00;
  --xtc-orange-2: #FFAA33;
  --xtc-orange-3: #FF6B00;
  --xtc-black: #0a0a0c;
}

.xtc-wide{
  width:min(var(--xtc-wide), 100%);
  margin:0 auto;
  padding:0 16px;
}

/* Global background helper (optional) */
.xtc-bg{
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(251,141,0,.16), transparent 60%),
    radial-gradient(740px 420px at 78% 24%, rgba(255,107,0,.10), transparent 62%),
    radial-gradient(900px 520px at 60% 92%, rgba(251,141,0,.06), transparent 65%),
    linear-gradient(180deg, #050506 0%, #060607 45%, #050506 100%);
}
.xtc-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  opacity:.85;
  pointer-events:none;
}
.xtc-bg::after{
  content:"";
  position:absolute;
  inset:-2px;
  opacity:.34;
  background:
    repeating-linear-gradient(0deg, rgba(251,141,0,.10) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(251,141,0,.08) 0 1px, transparent 1px 34px);
  mask: radial-gradient(74% 64% at 50% 18%, #000 0 72%, transparent 100%);
  pointer-events:none;
}


/* Header */
.xtc-site-header{
  position:sticky;
  top:0;
  z-index:1000;
  width:100%;
  background: rgba(10,10,12,.55);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.xtc-site-header::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  opacity:.55;
}
.xtc-header-inner{
  width: min(1300px, 100%);
  margin: 0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.xtc-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}
.xtc-brand__logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  gap:10px;
  min-width:0;
}
.xtc-brand__logo img{height:40px;max-height:80px;width:auto;display:block}
.xtc-brand__meta{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.xtc-brand__name{font-weight:900;letter-spacing:-.02em;font-size:22px}
.xtc-brand__tagline{
  font-size: 12px;
  color: var(--xtc-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.xtc-nav-wrap{
  display:flex;
  align-items:center;
  gap: 12px;
}

.xtc-nav{
  display:flex;
  align-items:center;
}
.xtc-nav ul{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 6px;
  margin:0;
  padding:0;
}
.xtc-nav li{ margin:0; padding:0; }
.xtc-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: transparent;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease, color .14s ease;
}
.xtc-nav a:hover{
  color: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  box-shadow: 0 18px 46px rgba(0,0,0,.22);
  transform: translateY(-1px);
}
.xtc-nav .current-menu-item > a,
.xtc-nav .current_page_item > a{
  color: rgba(0,0,0,.92);
  background: linear-gradient(180deg, var(--xtc-orange-2) 0%, var(--xtc-orange) 55%, var(--xtc-orange-3) 100%);
  border-color: rgba(251,141,0,.75);
  box-shadow: 0 20px 58px rgba(251,141,0,.14);
}

.xtc-header-tools{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.xtc-btn.xtc-btn-sm{
  padding: 10px 12px;
  min-height: 40px;
  border-radius: 12px;
  font-size: 13px;
}

/* Ensure orange buttons have dark text (including header) */
.xtc-btn-primary,
.xtc-btn.xtc-btn-primary{
  color: var(--xtc-black) !important;
}

/* Search */
.xtc-header-search{
  min-width: 220px;
  max-width: 320px;
  width: 22vw;
}
.xtc-search{
  display:flex;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 18px 48px rgba(0,0,0,.20);
}
.xtc-search svg{
  width: 16px;
  height: 16px;
  opacity: .75;
  flex: 0 0 auto;
}
.xtc-search input[type="search"]{
  width:100%;
  border:0;
  outline: none;
  background: transparent;
  color: rgba(255,255,255,.90);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 13px;
}
.xtc-search input[type="search"]::placeholder{
  color: rgba(255,255,255,.44);
}
.xtc-search button{
  border:0;
  background: transparent;
  color: rgba(255,255,255,.82);
  font-weight: 900;
  letter-spacing: -0.01em;
  padding: 0;
  cursor: pointer;
}
.xtc-search button:hover{ color: rgba(255,255,255,.96); }

.xtc-nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  color: rgba(255,255,255,.86);
  cursor:pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.xtc-nav-toggle:hover{
  transform: translateY(-1px);
  border-color: rgba(251,141,0,.60);
  background: rgba(251,141,0,.12);
  box-shadow: 0 22px 62px rgba(251,141,0,.10);
}

@media (max-width: 980px){
  .xtc-header-inner{ padding: 10px 0; gap: 12px; }
  .xtc-primary-nav{ display:none; }
  .xtc-header-actions{ display:flex; gap: 10px; }
  .xtc-header-actions .xtc-btn-primary{ display:none; }
  .xtc-nav-toggle{ display:inline-flex; }
  .xtc-brand-text{
  font-size:22px;
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1;
  background: linear-gradient(90deg,#FB8D00,#ffaa33,#FB8D00);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
}

/* Main */
.xtc-site-main{
  padding: 26px 0 62px;
}


/* Header actions */
.xtc-header-right{display:flex; align-items:center; gap:14px;}
.xtc-header-actions{display:flex; align-items:center; gap:10px;}
.xtc-nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  color: rgba(255,255,255,.78);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  transition: transform .14s ease, background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}
.xtc-nav-link:hover{
  transform: translateY(-1px);
  background: rgba(251,141,0,.12);
  border-color: rgba(251,141,0,.55);
  color: rgba(255,255,255,.92);
  box-shadow: 0 18px 56px rgba(251,141,0,.10);
}
.xtc-btn-buy{white-space:nowrap;}
.xtc-brand-logo{max-height:36px;width:auto;display:block;flex:0 0 auto;}
.xtc-brand-text{
  font-size:22px;
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1;
  background: linear-gradient(90deg,#FB8D00,#ffaa33,#FB8D00);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
@media (max-width: 980px){
  .xtc-brand-logo{max-height:36px;width:auto;display:block;flex:0 0 auto;}
  .xtc-brand-text{
  font-size:22px;
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1;
  background: linear-gradient(90deg,#FB8D00,#ffaa33,#FB8D00);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
  .xtc-header-actions{display:none;}
  .xtc-primary-nav{display:none;}
  .xtc-nav-toggle{display:inline-flex;}
}

/* Drawer (mobile canvas menu) */
.xtc-drawer{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}
body.xtc-nav-open .xtc-drawer{display:block;}
.xtc-drawer-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.xtc-drawer-panel{
  position:absolute;
  left:0;
  top:0;
  height:100%;
  width:min(86vw, 300px);
  background: rgba(7,7,8,.98);
  border-right: 1px solid rgba(255,255,255,.12);
  box-shadow: 30px 0 90px rgba(0,0,0,.55);
  transform: translateX(-105%);
  transition: transform .22s ease;
  display:flex;
  flex-direction:column;
  padding: 18px 16px 18px;
}
body.xtc-nav-open .xtc-drawer-panel{
  position:absolute;
  left:0;
  top:0;
  height:100%;
  width:min(86vw, 300px);
  background: rgba(7,7,8,.98);
  border-right: 1px solid rgba(255,255,255,.12);
  box-shadow: 30px 0 90px rgba(0,0,0,.55);
  transform: translateX(-105%);
  transition: transform .22s ease;
  display:flex;
  flex-direction:column;
  padding: 18px 16px 18px;
}
.xtc-drawer-panel::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(760px 420px at 10% 0%, rgba(251,141,0,.18), transparent 60%),
    radial-gradient(720px 420px at 85% 35%, rgba(251,141,0,.10), transparent 62%);
  opacity:.9;
}
.xtc-drawer-top{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.xtc-drawer-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.xtc-drawer-logo{max-height:44px; width:auto;}
.xtc-drawer-brand-text{
  font-weight:950;
  font-size:18px;
  letter-spacing:-0.02em;
  color: rgba(255,255,255,.92);
}
.xtc-drawer-close{
  width:42px;
  height:42px;
  border-radius: 12px;
  border:1px solid rgba(251,141,0,.55);
  background: rgba(251,141,0,.10);
  color: rgba(255,255,255,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.xtc-drawer-close:hover{
  background: rgba(251,141,0,.16);
  border-color: rgba(251,141,0,.78);
  box-shadow: 0 18px 52px rgba(251,141,0,.16);
  transform: translateY(-1px);
}
.xtc-drawer-close:active{ transform: translateY(1px) scale(.99); }
.xtc-drawer-close:hover{
  transform: translateY(-1px);
  background: rgba(251,141,0,.14);
  border-color: rgba(251,141,0,.55);
}
.xtc-drawer-content{
  position:relative;
  z-index:1;
  padding: 14px 16px 20px;
  overflow:auto;
}
.xtc-drawer-search{
  width:100%;
  margin: 0 0 12px;
}
.xtc-search .xtc-btn{
  padding: 9px 12px;
  min-height: 38px;
  border-radius: 12px;
}
.xtc-btn-ghost{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
}
.xtc-btn-ghost:hover{
  background: rgba(251,141,0,.14);
  border-color: rgba(251,141,0,.55);
}
.xtc-drawer-buy{width:100%; margin: 0 0 14px;}
.xtc-drawer-nav{display:flex; flex-direction:column; gap:8px;}
.xtc-drawer-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-decoration:none;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.86);
  font-weight:900;
  letter-spacing:-0.01em;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.xtc-drawer-link:hover{
  transform: translateY(-1px);
  background: rgba(251,141,0,.14);
  border-color: rgba(251,141,0,.70);
  box-shadow: 0 18px 56px rgba(251,141,0,.10);
}
.xtc-drawer-link-muted{opacity:.78; font-weight:800;}

/* Footer */
.xtc-site-footer{
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(6,6,7,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position:relative;
}
.xtc-site-footer::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 260px at 18% 0%, rgba(251,141,0,.10), transparent 62%),
    radial-gradient(760px 240px at 82% 0%, rgba(255,107,0,.08), transparent 66%);
  opacity:.85;
}
.xtc-footer-inner{
  position:relative;
  display:flex;
  flex-direction:column;
  gap: 14px;
  padding: 26px 0;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}
.xtc-footer-top{
  display:flex;
  flex-wrap:wrap;
  gap: 12px 18px;
  align-items:center;
  justify-content:space-between;
}
.xtc-footer-copy{
  color: rgba(255,255,255,.60);
}
.xtc-footer-links{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.xtc-footer-links a{
  color: rgba(255,255,255,.72);
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.xtc-footer-links a:hover{
  color: rgba(255,255,255,.92);
  border-color: rgba(251,141,0,.55);
  background: rgba(251,141,0,.10);
}

.xtc-footer-social{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.xtc-footer-social a{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.82);
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease, color .14s ease;
  text-decoration:none;
}
.xtc-footer-social a svg{ width:18px;height:18px; display:block; }
.xtc-footer-social a:hover{
  transform: translateY(-1px);
  background: rgba(251,141,0,.14);
  border-color: rgba(251,141,0,.70);
  box-shadow: 0 18px 56px rgba(251,141,0,.12);
  color: rgba(255,255,255,.92);
}

@media (max-width: 560px){
  .xtc-footer-top{ flex-direction:column; align-items:flex-start; }
}

/* Shell / Blog */
.xtc-wrap{
  width:min(var(--xtc-wide), 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.xtc-shell{
  border-radius: 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow:hidden;
  position:relative;
}
.xtc-shell::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(800px 340px at 35% 0%, rgba(251,141,0,.14), transparent 60%),
    radial-gradient(620px 320px at 85% 30%, rgba(251,141,0,.08), transparent 62%);
  opacity:.9;
}
.xtc-shell > *{ position:relative; z-index:1; }

.xtc-shell-head{
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.xtc-shell__kicker{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.xtc-shell__title{
  margin: 14px 0 0;
}
.xtc-shell__body{
  padding: 22px;
}

.xtc-post-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.xtc-post{
  grid-column: span 6;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  padding: 16px 16px 14px;
  text-decoration:none;
  color: rgba(255,255,255,.86);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.xtc-post:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.05);
  border-color: rgba(251,141,0,.40);
  box-shadow: 0 24px 76px rgba(0,0,0,.38);
}
.xtc-post__meta{
  color: rgba(255,255,255,.56);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.xtc-post__title{
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -0.02em;
}
.xtc-post__excerpt{
  margin: 0;
  color: rgba(255,255,255,.60);
  line-height: 1.65;
  font-size: 14px;
}
.xtc-post__footer{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.xtc-post__more{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 900;
  color: rgba(255,255,255,.84);
}
.xtc-post__more svg{ width:16px;height:16px; }

@media (max-width: 980px){
  .xtc-post{ grid-column: span 12; }
  .xtc-shell-head{ padding: 18px 16px 14px; }
  .xtc-shell__body{ padding: 16px; }
}

/* Pagination */
.xtc-pagination{
  margin-top: 18px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.xtc-pagination a,
.xtc-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  text-decoration:none;
  font-weight: 900;
}
.xtc-pagination a:hover{
  border-color: rgba(251,141,0,.60);
  background: rgba(251,141,0,.10);
}
.xtc-pagination .current{
  color: rgba(0,0,0,.92);
  background: linear-gradient(180deg, var(--xtc-orange-2) 0%, var(--xtc-orange) 55%, var(--xtc-orange-3) 100%);
  border-color: rgba(251,141,0,.78);
}

/* WordPress default content fixes */
.xtc-content img{ max-width:100%; height:auto; }
.xtc-content a{ color: var(--xtc-orange-2); }
.xtc-content a:hover{ color: rgba(255,255,255,.92); }


.xtc-post__meta a{ color: rgba(255,255,255,.70); text-decoration:none; }
.xtc-post__meta a:hover{ color: rgba(255,255,255,.92); }


/* WordPress custom logo baseline */
.xtc-brand__logo .custom-logo-link{ display:inline-flex; align-items:center; }
.xtc-brand__logo .custom-logo{ max-height:80px; width:auto; height:34px; }

.xtc-footer-links-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.xtc-footer-links-list li{ margin:0; padding:0; }

@media (max-width: 640px){
  .xtc-brand__logo img{height:32px;max-height:80px;width:auto;display:block}
  .xtc-brand__logo .custom-logo{height:30px;max-height:80px;}
  .xtc-brand__name{font-size:20px;}
}


/* Footer mobile centering */
@media (max-width: 820px){
  .xtc-footer-top{flex-direction:column;align-items:center;gap:14px;text-align:center;}
  .xtc-footer-links{justify-content:center;flex-wrap:wrap;}
  .xtc-footer-social{justify-content:center;}
  .xtc-footer-bottom{text-align:center;}
}

/* Search form */
.xtc-searchform{margin:0;}
.xtc-searchform__row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.xtc-searchform__input{
  flex:1 1 240px;
  min-width:0;
  height:46px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.92);
  padding:0 14px;
  outline:none;
}
.xtc-searchform__input::placeholder{color:rgba(255,255,255,.55);}
.xtc-searchform__input:focus{
  border-color:rgba(251,141,0,.72);
  box-shadow:0 0 0 3px rgba(251,141,0,.18);
}
.xtc-searchform__btn{
  height:46px;
  border-radius:12px;
  white-space:nowrap;
}
@media (max-width: 560px){
  .xtc-searchform__row{flex-direction:column;align-items:stretch;}
  .xtc-searchform__btn{width:100%;}
}


/* Header adjustments (v7) */
.xtc-nav-toggle{
  color: rgba(255,255,255,.92);
}
.xtc-nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  border-radius:999px;
  background: currentColor;
}
.xtc-nav-toggle span + span{ margin-top:4px; }

/* Avoid duplicate search items in mobile drawer */
.xtc-drawer .xtc-menu-search{ display:none !important; }
@media (max-width: 980px){
  .xtc-site-header .xtc-menu-search{ display:none !important; }
}

/* Brand text size tweak on small screens */
@media (max-width: 520px){
  .xtc-brand-text{ font-size:18px; }
}
