/*
Theme Name: Street Rascals
Theme URI: https://streetrascals.com
Author: Street Rascals
Description: Ultra-light official Street Rascals theme.
Version: 1.7.0
Text Domain: street-rascals
*/

:root{
  --sr-bg:#06101d;
  --sr-bg2:#091728;
  --sr-text:#f7f9fc;
  --sr-muted:#96a7bc;
  --sr-line:rgba(255,255,255,.095);
  --sr-cyan:#33d7ff;
  --sr-blue:#1689ff;
  --sr-purple:#8d4dff;
  --sr-purple2:#bd55ff;
  --sr-max:1240px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100%;
  background:
    radial-gradient(900px 540px at 50% -10%,rgba(35,131,194,.12),transparent 66%),
    linear-gradient(180deg,var(--sr-bg),var(--sr-bg2));
  color:var(--sr-text);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto}
a{color:inherit}
.sr-site{
  min-height:100svh;
  display:flex;
  flex-direction:column;
  max-width:100%;
  overflow-x:clip;
}
.sr-shell{
  width:min(var(--sr-max),calc(100% - 36px));
  margin-inline:auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.sr-header{
  position:fixed !important;
  top:0;
  left:0;
  right:0;
  width:100%;
  z-index:2147483000;

  background:rgba(5,14,26,.94);
  border-bottom:1px solid var(--sr-line);

  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);

  box-shadow:0 7px 28px rgba(0,0,0,.18);

  transform:none !important;
  contain:layout paint;
}

/*
 * The spacer is automatically synchronized to the real header
 * height by header.php, so page content never hides underneath it.
 */
.sr-headerSpacer{
  width:100%;
  height:76px;
  flex:0 0 auto;
  pointer-events:none;
}

/* WordPress admin bar offsets while logged in. */
@media(min-width:783px){
  body.admin-bar .sr-header{
    top:32px;
  }
}

@media(max-width:782px){
  body.admin-bar .sr-header{
    top:46px;
  }
}

.sr-headerRow{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.sr-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  text-decoration:none;
}

.sr-brandLogo{
  display:block;
  width:58px;
  height:58px;
  object-fit:contain;
  flex:0 0 auto;
}

.sr-brandText{
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1;
}

.sr-brandTitle{
  color:#fff;
  font-size:17px;
  font-weight:950;
  letter-spacing:.1px;
  white-space:nowrap;
}

.sr-brandTag{
  margin-top:6px;
  color:var(--sr-muted);
  font-size:10.5px;
  font-weight:650;
  white-space:nowrap;
}

/* Fixed final navigation: no stale WP menu URLs. */
.sr-nav{
  min-width:0;
}

.sr-navList{
  list-style:none;
  display:flex;
  align-items:center;
  gap:4px;
  margin:0;
  padding:0;
}

.sr-navLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 13px;
  border:1px solid transparent;
  border-radius:11px;
  color:var(--sr-muted);
  text-decoration:none;
  font-size:12.5px;
  font-weight:850;
  transition:
    color .15s ease,
    background .15s ease,
    border-color .15s ease,
    transform .15s ease;
}

.sr-navLink:hover,
.sr-navLink.is-current{
  color:#fff;
  background:rgba(255,255,255,.05);
}

.sr-navLink:hover{
  transform:translateY(-1px);
}

.sr-navLinkBeta{
  color:#fff;
  border-color:rgba(98,193,255,.26);
  background:linear-gradient(135deg,rgba(21,137,255,.30),rgba(141,77,255,.34));
  box-shadow:0 0 20px rgba(88,102,255,.10);
}

.sr-navLinkBeta:hover,
.sr-navLinkBeta.is-current{
  color:#fff;
  border-color:rgba(78,211,255,.30);
  background:linear-gradient(135deg,rgba(21,137,255,.42),rgba(189,85,255,.42));
}

/* =========================================================
   CONTENT
   ========================================================= */

.sr-main{
  flex:1;
  width:100%;
}

.sr-entry{
  width:min(var(--sr-max),calc(100% - 36px));
  margin-inline:auto;
}

.sr-entry-content>:first-child{margin-top:0}
.sr-entry-content>:last-child{margin-bottom:0}

/* =========================================================
   FOOTER
   ========================================================= */

.sr-footer{
  margin-top:60px;
  border-top:1px solid var(--sr-line);
  color:var(--sr-muted);
  background:rgba(4,11,20,.52);
}

.sr-footerRow{
  min-height:80px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}

.sr-footerLeft{
  display:flex;
  align-items:center;
  gap:20px;
  min-width:0;
}

.sr-footerBrand{
  color:rgba(255,255,255,.88);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.sr-footerLinks{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px 16px;
}

.sr-footerLink{
  color:var(--sr-muted);
  text-decoration:none;
  font-size:11.5px;
  font-weight:650;
  transition:color .15s ease;
}

.sr-footerLink:hover{
  color:#fff;
}

.sr-copy{
  color:rgba(150,167,188,.72);
  font-size:11.5px;
  white-space:nowrap;
}

/* =========================================================
   404
   ========================================================= */

.sr-404{
  width:min(760px,calc(100% - 36px));
  margin:82px auto;
  padding:30px;
  border:1px solid var(--sr-line);
  border-radius:18px;
  background:rgba(8,20,35,.82);
}

.sr-404Code{
  color:var(--sr-cyan);
  font-weight:950;
  font-size:12px;
}

.sr-404 h1{
  margin:8px 0 10px;
  font-size:clamp(28px,5vw,46px);
}

.sr-404 p{
  color:var(--sr-muted);
  line-height:1.7;
}

.sr-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 15px;
  border-radius:11px;
  color:#fff;
  background:linear-gradient(135deg,var(--sr-blue),var(--sr-purple));
  font-weight:900;
  text-decoration:none;
}

/* =========================================================
   TABLET / MOBILE HEADER
   ========================================================= */

@media(max-width:760px){

  .sr-headerSpacer{
    height:112px;
  }

  .sr-shell,
  .sr-entry{
    width:min(100% - 24px,var(--sr-max));
  }

  .sr-headerRow{
    min-height:auto;
    padding:10px 0 11px;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }

  .sr-brand{
    width:100%;
    justify-content:flex-start;
  }

  .sr-brandLogo{
    width:46px;
    height:46px;
  }

  .sr-brandTitle{
    font-size:15.5px;
  }

  .sr-brandTag{
    margin-top:5px;
    font-size:9.8px;
  }

  .sr-nav{
    width:100%;
  }

  .sr-navList{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
    width:100%;
  }

  .sr-navLink{
    width:100%;
    min-width:0;
    min-height:35px;
    padding:0 7px;
    font-size:11px;
    white-space:nowrap;
  }

  /* MOBILE FOOTER */
  .sr-footer{
    margin-top:42px;
  }

  .sr-footerRow{
    min-height:auto;
    padding:20px 0 22px;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:15px;
  }

  .sr-footerLeft{
    flex-direction:column;
    align-items:center;
    gap:14px;
    width:100%;
  }

  .sr-footerBrand{
    text-align:center;
  }

  .sr-footerLinks{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 12px;
    width:min(100%,390px);
    margin-inline:auto;
  }

  .sr-footerLink{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:5px 8px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,.07);
    font-size:11.5px;
  }

  /*
   * Three-link mobile footer:
   * Privacy Policy | Terms
   *        Contact
   */
  .sr-footerLink:last-child{
    grid-column:1 / -1;
    width:50%;
    min-width:120px;
    justify-self:center;
  }

  .sr-copy{
    width:100%;
    text-align:center;
    white-space:normal;
    font-size:11px;
  }
}

/* Extra-small phones: 2x2 navigation instead of squeezing text. */
@media(max-width:390px){

  .sr-headerSpacer{
    height:150px;
  }

  .sr-navList{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .sr-navLink{
    min-height:36px;
    font-size:11.5px;
  }

  .sr-footerLinks{
    grid-template-columns:1fr 1fr;
  }

  .sr-footerLink:last-child{
    grid-column:1 / -1;
  }
}

/* Hide visual scrollbars on touch devices, keep scrolling functional. */
@media(hover:none) and (pointer:coarse){

  html,
  body{
    max-width:100%;
    overflow-x:clip;
    scrollbar-width:none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar{
    width:0;
    height:0;
    display:none;
  }
}
