/*
Theme Name: R-DTR Theme
Theme URI: https://radio-dtr.live/
Author: Radio DTR
Description: Minimalny motyw bazowy Radia DTR. Zastępuje Astrę jako techniczna warstwa WordPressa; układ HOME pozostaje w R-DTR Layout Manager.
Version: 0.1.6
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: r-dtr-theme
*/

:root{
  --rdtr-bg:#0d1117;
  --rdtr-surface:#151b23;
  --rdtr-surface-2:#1b2430;
  --rdtr-text:#f3f5f7;
  --rdtr-muted:#aab4c0;
  --rdtr-line:rgba(255,255,255,.10);
  --rdtr-accent:#e30613;
  --rdtr-max:1240px;
  --rdtr-radius:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--rdtr-bg);color:var(--rdtr-text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.6}
a{color:inherit}
img{max-width:100%;height:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.screen-reader-text:focus{clip:auto!important;width:auto;height:auto;margin:8px;padding:10px 14px;z-index:100000;background:#fff;color:#111}

.site{min-height:100vh;display:flex;flex-direction:column}
.site-content{flex:1}
.rdtr-container,.ast-container{width:min(calc(100% - 32px),var(--rdtr-max));margin-inline:auto}

.site-header{position:relative;z-index:100;background:#111820;border-bottom:1px solid var(--rdtr-line)}
.site-header__inner{min-height:82px;display:flex;align-items:center;gap:28px}
.site-branding{display:flex;align-items:center;gap:12px;min-width:0}
.custom-logo-link{display:flex;align-items:center}
.custom-logo{max-height:58px;width:auto}
.site-title{font-size:1.25rem;font-weight:800;line-height:1.1;margin:0}
.site-title a{text-decoration:none}
.site-description{margin:3px 0 0;color:var(--rdtr-muted);font-size:.82rem}
.primary-navigation{margin-left:auto}
.primary-navigation ul{display:flex;align-items:center;gap:4px;list-style:none;margin:0;padding:0}
.primary-navigation a{display:block;text-decoration:none;padding:10px 12px;border-radius:9px;font-weight:650;font-size:.92rem}
.primary-navigation a:hover,.primary-navigation .current-menu-item>a{background:rgba(255,255,255,.08)}
.rdtr-menu-toggle{display:none;margin-left:auto;border:1px solid var(--rdtr-line);background:rgba(255,255,255,.05);color:#fff;border-radius:9px;padding:9px 12px;font-weight:700}

#content{padding:28px 0 44px}
body.home #content,body.front-page #content{padding-top:18px}
.site-main{min-width:0}
.entry-header{margin-bottom:18px}
.entry-title{margin:0;font-size:clamp(1.8rem,4vw,3rem);line-height:1.12;letter-spacing:-.025em}
.entry-meta{margin-top:8px;color:var(--rdtr-muted);font-size:.9rem}
.entry-content{min-width:0}
.entry-content>*:first-child{margin-top:0}
.entry-content a{text-decoration-thickness:.08em;text-underline-offset:.16em}
.entry-content p{margin:0 0 1.15em}
.entry-content h2,.entry-content h3,.entry-content h4{line-height:1.2;margin:1.5em 0 .65em}

.single-post .post-thumbnail,.single-post .post-thumb,.single-post .rdtr-featured-image{width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:var(--rdtr-radius);background:#090c10;margin:0 0 24px}
.single-post .post-thumbnail img,.single-post .post-thumb img,.single-post img.wp-post-image,.single-post .rdtr-featured-image img{display:block;width:100%;height:100%!important;aspect-ratio:16/9;object-fit:contain!important;object-position:center}

.rdtr-archive-header{margin-bottom:24px}
.rdtr-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.rdtr-post-card{background:var(--rdtr-surface);border:1px solid var(--rdtr-line);border-radius:var(--rdtr-radius);overflow:hidden}
.rdtr-post-card>a{text-decoration:none}
.rdtr-post-card__image{aspect-ratio:16/9;background:#090c10;overflow:hidden}
.rdtr-post-card__image img{width:100%;height:100%;object-fit:contain;display:block}
.rdtr-post-card__body{padding:15px 16px 17px}
.rdtr-post-card__title{font-size:1.05rem;line-height:1.3;margin:0}
.rdtr-post-card__meta{color:var(--rdtr-muted);font-size:.78rem;margin-top:7px}
.navigation.pagination{margin-top:28px}
.nav-links{display:flex;flex-wrap:wrap;gap:7px}
.page-numbers{display:inline-flex;min-width:38px;min-height:38px;align-items:center;justify-content:center;border:1px solid var(--rdtr-line);border-radius:8px;text-decoration:none;padding:4px 9px}
.page-numbers.current{background:#fff;color:#111}

.site-footer{margin-top:auto;background:#0a0e13;border-top:1px solid var(--rdtr-line)}
.site-footer__inner{padding:28px 0;color:var(--rdtr-muted);font-size:.88rem}
.footer-navigation ul{display:flex;flex-wrap:wrap;gap:12px 18px;list-style:none;margin:0 0 12px;padding:0}
.footer-navigation a{text-decoration:none;color:var(--rdtr-text)}

.wosp-banner,.promo-banner{margin:20px 0 28px;text-align:center}
.wosp-banner img,.promo-banner img{max-width:100%;height:auto;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.18);transition:transform .2s ease,box-shadow .2s ease}
.wosp-banner img:hover,.promo-banner img:hover{transform:scale(1.01);box-shadow:0 12px 32px rgba(0,0,0,.25)}



/* DTR Header — zegar i data */
.rdtr-header-utilities{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  min-width:0;
  flex:0 0 auto;
}
.rdtr-header-utilities .dtr-ddm__header-actions{margin-left:0}
.rdtr-header-datetime{
  display:none;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  flex:0 0 auto;
  min-width:max-content;
  text-align:right;
  line-height:1.05;
  padding:2px 0;
  font-variant-numeric:tabular-nums;
}
.rdtr-header-clock{
  display:block;
  color:var(--rdtr-text);
  font-size:1.28rem;
  line-height:1;
  font-weight:780;
  letter-spacing:.02em;
  text-decoration:none;
}
.rdtr-header-date{
  display:block;
  margin-top:5px;
  color:var(--rdtr-muted);
  font-size:.73rem;
  line-height:1.15;
  font-weight:600;
  white-space:nowrap;
  text-decoration:none;
}
@media(min-width:901px){
  .rdtr-header-datetime.is-desktop-enabled{display:flex}
  .rdtr-header-utilities ~ .primary-navigation{margin-left:0}
}

@media(max-width:900px){
  .rdtr-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rdtr-menu-toggle{display:block}
  .primary-navigation{display:none;position:absolute;left:16px;right:16px;top:72px;margin:0;padding:10px;background:rgba(17,24,32,.97);border:1px solid var(--rdtr-line);border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,.35)}
  .primary-navigation.is-open{display:block}
  .primary-navigation ul{display:block}
  .primary-navigation a{padding:11px 12px}
  .site-header__inner{min-height:72px}
  .custom-logo{max-height:50px}
}
@media(max-width:620px){
  .rdtr-container,.ast-container{width:min(calc(100% - 20px),var(--rdtr-max))}
  #content{padding-top:18px}
  .rdtr-post-grid{grid-template-columns:1fr;gap:15px}
  .entry-title{font-size:clamp(1.6rem,8vw,2.25rem)}
}


@media(max-width:900px){
  .rdtr-header-utilities{margin-left:auto;gap:8px}
  .rdtr-header-datetime.is-mobile-enabled{display:flex}
  .rdtr-header-datetime.is-mobile-enabled .rdtr-header-clock{font-size:1rem}
  .rdtr-header-datetime.is-mobile-enabled .rdtr-header-date{font-size:.62rem;margin-top:3px}
  .rdtr-header-utilities + .rdtr-menu-toggle{margin-left:0}
}
@media(max-width:520px){
  .rdtr-header-datetime.is-mobile-enabled .rdtr-header-clock{font-size:.94rem}
  .rdtr-header-datetime.is-mobile-enabled .rdtr-header-date{font-size:.58rem}
}


/* DTR UI — przycisk powrotu na górę */
.rdtr-scroll-top{
  --rdtr-scroll-top-color:#0d6efd;
  position:fixed;
  z-index:9997;
  bottom:26px;
  display:none;
  width:48px;
  height:48px;
  padding:0;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.22);
  border-radius:50%;
  background:var(--rdtr-scroll-top-color);
  color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.34);
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(12px) scale(.94);
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease,filter .2s ease;
  -webkit-tap-highlight-color:transparent;
}
.rdtr-scroll-top.is-right{right:26px}
.rdtr-scroll-top.is-left{left:26px}
.rdtr-scroll-top svg{width:25px;height:25px;fill:currentColor;display:block}
.rdtr-scroll-top.is-visible{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.rdtr-scroll-top:hover{filter:brightness(1.12);transform:translateY(-2px) scale(1.03)}
.rdtr-scroll-top:focus-visible{outline:3px solid rgba(255,255,255,.9);outline-offset:3px}
@media(min-width:901px){.rdtr-scroll-top.is-desktop-enabled{display:flex}}
@media(max-width:900px){
  .rdtr-scroll-top{width:44px;height:44px;bottom:18px}
  .rdtr-scroll-top.is-right{right:16px}
  .rdtr-scroll-top.is-left{left:16px}
  .rdtr-scroll-top.is-mobile-enabled{display:flex}
}
@media(prefers-reduced-motion:reduce){
  .rdtr-scroll-top{transition:none}
}
