/* ==========================================================
   ITL CORE CSS
   Global foundation for InTheLoop
   Structure: Root variables → Resets → Typography → Helpers → Layout → Header/Footer
========================================================== */

@font-face {
  font-family: "tv";
  src: url("../fonts/tv.otf");
  src:
    url("../fonts/tv.woff") format("woff"),
    url("../fonts/tv.otf") format("opentype"),
    url("../fonts/tv.svg#filename") format("svg");
}

/* ===========================  ROOT VARIABLES  =========================== */
:root {
  /* ITL palette */
  --itl-bg: #fffffa;
  --itl-surface: #fafafa;
  --itl-text: #000;
  --itl-muted: #212c3b;
  --itl-link: #d81c23;
  --itl-link-hover: #6a0206;
  --itl-accent: #e8b12f;

  --color-danger: #ff0000;
  --color-success: #6bc56b;

  /* SPACING SCALE */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;

  /* TYPOGRAPHY SCALE */
  --font-title: 'tv';
  --font-sans: 'Lato', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --text-xs: clamp(0.75rem, 0.6vw, 0.8rem);
  --text-sm: clamp(0.875rem, 0.8vw, 0.95rem);
  --text-md: clamp(1rem, 1vw, 1.1rem);
  --text-lg: clamp(1.25rem, 1.4vw, 1.4rem);
  --text-xl: clamp(1.5rem, 2vw, 2rem);
  --text-xxl: clamp(2rem, 3vw, 3rem);

  /* RADIUS / SHADOWS */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.12);

  /* TRANSITIONS */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;

  /* FOOTER */
  --footer-h: 320px;
}

.darkmode {
  --itl-bg: #181815;
  --itl-surface: #050505;
  --itl-text: #fff;
  --itl-muted: #b8b8b8;
  --itl-link: #ffd700;
  --itl-link-hover: #ff3b42;
  --itl-accent: #e8b12f;
}

/* ------------------------------ THEME TOGGLE -------------------------------------- */
#theme-switch {
  height: 25px;
  padding: 7px;
  border-radius: 10%;
  background-color: #f9f9f9;
  border: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
#theme-switch:hover { background-color: gold; cursor: pointer; }
#theme-switch i:last-child { display: none; }
.darkmode #theme-switch i:first-child { display: none; }
.darkmode #theme-switch i:last-child { display: block; }

/* =========================== RESET & BASE =========================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  /*background-color: var(--itl-bg);*/
  background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%);
  color: var(--itl-text);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-y: scroll;
}




img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--itl-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--itl-link-hover); }

button { cursor: pointer; font: inherit; }

/* =========================== TYPOGRAPHY =========================== */
@font-face {
font-family: "intheloop";
src: url("../fonts/dubbaDubbaNF.otf");
src: url("../fonts/dubbadubbanf-webfont.woff") format("woff"),
url("../fonts/dubbadubbanf-webfont.otf") format("opentype"),
url("../fonts/dubbadubbanf-webfont.svg#filename") format("svg");
}
.font-intheloop {
font-family: 'intheloop', Arial, sans-serif;
font-weight:normal;
font-style:normal;
}
@font-face {
font-family: "logo-thin";
src: url("../fonts/typo_grotesk_thin_demo-webfont.otf");
src: url("../fonts/typo_grotesk_thin_demo-webfont.woff") format("woff"),
url("../fonts/typo_grotesk_thin_demo-webfont.otf") format("opentype"),
url("../fonts/typo_grotesk_thin_demo-webfont.svg#filename") format("svg");
}


h1,h2,h3,h4,h5,h6 {
  color: var(--itl-text);
  line-height: 1.2;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

h1 { font-size: var(--text-xxl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

p { margin-bottom: var(--space-md); color: var(--itl-text); }
small { font-size: var(--text-sm); }

.title { font-family: var(--font-title); font-size: var(--text-xxl); }
.uppercase { text-transform: uppercase; }

/* =========================== HELPERS =========================== */
.flex { display: flex; gap: var(--space-md); }
.flex.center { align-items: center; justify-content: center; }
.grid { display: grid; gap: var(--space-md); }
.center { text-align: center; }

.box {
  display: inline-block;
  padding: 4px 18px;
  border: 1px solid var(--itl-link);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--itl-link) !important;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.box:hover { background: var(--itl-link); color: #fff !important; }

/* =========================== HEADER & NAV =========================== */
header { padding: var(--space-md) 0; position: relative; z-index: 1000; }

header .nav .mainpage {
  width: 1250px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.top-lang {
  float: left;
  font-family: var(--font-title);
  font-size: var(--text-md);
  text-transform: uppercase;
  padding: var(--space-sm);
}
.top-lang a { color: var(--itl-text); }
.top-lang a.active { color: var(--itl-link); }

.social {
  float: right;
  display: flex;
  font-size: var(--text-md);
  padding: var(--space-sm);
}
.social a { color: var(--itl-text); }
.social a:hover { color: var(--itl-link) !important; }
.social div { padding-right: 5px; }


/* =========================== MAIN WRAPPER =========================== */
.container {
  position: relative;
  z-index: 2;
  background: var(--itl-bg);
  padding-bottom: 50px;
  	width:1250px;
	margin: auto;
}

/* =========================== COOKIE NOTICE =========================== */
#noteBar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(20,20,20,0.95);
  color: #f1f1f1;
  text-align: center;
  padding: 14px 20px;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
}
html.cookie-accepted #noteBar { display: none !important; }

#noteBar .ack-btn {
  display: inline-block;
  margin-left: 12px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--itl-link);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  border: 2px solid rgba(0,0,0,0.2);
  transition: transform .15s ease, background .15s ease;
}
#noteBar .ack-btn:hover { background: #fff; color:#000 !important; transform: translateY(-1px); }













.pill-btn{
    border:1px solid rgba(0,0,0,.18);
    border-radius:6px;
    padding:4px;
    cursor:pointer;
    margin-right:4px;
  }
  .pill-btn.on{
    background: linear-gradient(90deg, rgba(0,100,121,1) 0%, rgba(4,124,129,1) 100%);
    color:#fff;
  }
  .rating-widget{
  display:flex;
  align-items:center;
  gap:10px;
}
.rating-stars{
  display:flex;
  gap:4px;
  user-select:none;
}
/* ---------- base star ---------- */
.rating-star{
  font-size:18px;
  line-height:1;
  cursor:pointer;
  opacity:.25;
  transition: opacity .12s, transform .12s, color .12s;
}

/* ---------- NO rating yet (default) ---------- */
.rating-widget:not(.has-user) .rating-star{
  color: #2196f3; /* blue */
}

/* ---------- HOVER preview (before click) ---------- */
.rating-widget:not(.has-user) .rating-star.on{
  color: #4caf50; /* green */
  opacity: 1;
}

/* ---------- AFTER user has rated ---------- */
.rating-widget.has-user .rating-star{
  color: #f5b301; /* gold */
}

/* ---------- active stars ---------- */
.rating-star.on{
  opacity: 1;
  transform: translateY(-1px);
}

/* ---------- subtle hover lift ---------- */
.rating-star:hover{
  transform: translateY(-1px);
}
.rating-num{
  font-weight:700;
  color:#333;
  min-width:36px;
  text-align:right;
}




/* ---------------------------------------------- animations ---------------------------------------------- */
.grow {
	
  transform: scale(1);
  transition: all 0.5s ease-out;
}
.grow:hover {
  
  transform: scale(1.2);
  cursor: pointer;
  transition: all 0.5s ease-out;
}

.grow-small {
  display:inline-flex;
  transform: scale(1);
  transition: all 0.5s ease-out;
}
.grow-small:hover {
  display:inline-flex;
  transform: scale(1.1);
  cursor: pointer;
  transition: all 0.5s ease-out;
}







/* =========================
       HEADER / MENU BASE
    ========================= */
    .site-header{
      position: relative;
      z-index: 1000;
      width: 100%;
      border-bottom: 1px solid rgba(255,255,255,.08);
      background: #3f4224;
background: radial-gradient(circle,rgba(63, 66, 36, 1) 0%, rgba(42, 42, 38, 1) 100%);
      color: #fff;
      box-shadow: 0 10px 30px rgba(0,0,0,.18);
      font-family: intheloop;
    }

    .site-header a{
      color: inherit;
      text-decoration: none;
    }

    .site-header-top,
    .site-header-main{
      width: min(1400px, calc(100% - 32px));
      margin: 0 auto;
    }

    .site-header-top{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      min-height: 40px;
      font-size: 13px;
      border-bottom: 1px solid rgba(255,255,255,.07);
    }

    .site-header-lang,
    .site-header-social{
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .site-header-lang a{
      opacity: .72;
      font-weight: 700;
      letter-spacing: .04em;
      transition: opacity .18s ease;
    }

    .site-header-lang a.active,
    .site-header-lang a:hover{
      opacity: 1;
    }

    .site-header-main{
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 20px;
      align-items: center;
      padding: 0;
    }

    .site-header-logo{
      display: flex;
      align-items: center;
      justify-content: flex-start;
    }

    .site-logo-link{
      display: inline-flex;
      align-items: center;
    }

    .site-logo{
      height: 140px;
      position: relative;
      width: auto;
      max-width: 100%;
      transform: rotate(-8deg) scale(1.05);
      margin: -10px 0;
    }

    .site-header-navwrap{
      min-width: 0;
      display: grid;
      grid-template-rows: auto auto;
      gap: 12px;
    }

    .site-header-actions{
      display: grid;
      grid-template-columns: auto minmax(220px, 1fr) auto;
      gap: 12px;
      align-items: center;
      min-width: 0;
    }

    .site-header-search{
      min-width: 0;
    }

    .site-header-tools{
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .header-icon-btn,
    .header-theme-btn{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 42px;
      padding: 0 14px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 12px;
      background: rgba(255,255,255,.06);
      color: #fff;
      cursor: pointer;
      transition: background .18s ease, border-color .18s ease, transform .18s ease;
      font: inherit;
    }

    .header-icon-btn:hover,
    .header-theme-btn:hover{
      background: rgba(255,255,255,.11);
      border-color: rgba(255,255,255,.2);
      transform: translateY(-1px);
    }

    .header-support-btn{
      font-weight: 700;
    }

    .header-burger{
      display: none;
      width: 42px;
      padding: 0;
      font-size: 18px;
    }

    .header-darkmode{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: gold !important;
      width: 50px;
      min-width: 50px;
      height: 50px;
      border: 0;
      border-radius: 12px;
      background: transparent !important;
      cursor: pointer;
      font-size: 18px;
    }

    /* =========================
       SEARCH
    ========================= */
    .site-search{
      position: relative;
      width: 100%;
    }

    .site-search-input{
      width: 100%;
      height: 44px;
      padding: 0 14px;
      border: 1px solid rgba(255,255,255,.13);
      border-radius: 14px;
      background: rgba(255,255,255,.08);
      color: #fff;
      outline: none;
      font: inherit;
    }

    .site-search-input::placeholder{
      color: rgba(255,255,255,.62);
    }

    .site-search-input:focus{
      border-color: rgba(255,255,255,.26);
      background: rgba(255,255,255,.11);
    }

    .site-search-dd{
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 16px;
      background: #fff;
      color: #111;
      box-shadow: 0 18px 40px rgba(0,0,0,.25);
      z-index: 3000;
    }

    .ss-group-title{
      padding: 10px 14px;
      font-size: 12px;
      font-weight: 800;
      color: #666;
      background: rgba(0,0,0,.03);
      border-bottom: 1px solid rgba(0,0,0,.06);
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    .ss-item{
      display: block;
      padding: 11px 14px;
      border-bottom: 1px solid rgba(0,0,0,.06);
      color: #111;
    }

    .ss-item:last-child{
      border-bottom: none;
    }

    .ss-item:hover{
      background: rgba(0,0,0,.04);
    }

    .ss-main{
      font-weight: 800;
      line-height: 1.25;
    }

    .ss-sub{
      margin-top: 2px;
      font-size: 12px;
      color: #666;
      line-height: 1.25;
    }

    .ss-empty{
      padding: 14px;
      color: #666;
      font-size: 13px;
    }

    /* =========================
       DESKTOP MENU
    ========================= */
    .desktop-nav{
      min-width: 0;
    }

    .menu-row{
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      gap: 4px;
      width: 100%;
    }

    .menu-item{
      position: relative;
      flex: 1 1 0;
      min-width: 0;
    }

    .menu-link{
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 0 12px;
      border-radius: 12px;
      font-size: 28px;
      text-align: center;
      letter-spacing: .01em;
      transition: background .18s ease, color .18s ease;
      white-space: nowrap;
    }

    .menu-link:hover{
      background: rgba(255,255,255,.08);
    }

    .menu-dropdown{
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      min-width: 220px;
      padding: 8px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 16px;
      /*background: rgba(15,20,32,.98);*/
      background:#323326;
      box-shadow: 0 18px 40px rgba(0,0,0,.28);
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
      z-index: 2500;
    }

    .menu-dropdown a{
      display: block;
      padding: 10px 12px;
      border-radius: 10px;
      font-size: 17px;
      color: rgba(255,255,255,.9);
    }

    .menu-dropdown a:hover{
      background: rgba(255,255,255,.08);
      color: #fff;
    }

    .menu-item:hover .menu-dropdown,
    .menu-item:focus-within .menu-dropdown{
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .mobile-menu-group-toggle{
      display: none;
    }
/* =========================
   MOBILE FULLSCREEN MENU
========================= */
.mobile-menu{
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(10,14,24,.99), rgba(12,17,29,.99));
  color: #fff;
  z-index: 5000;
  padding: 18px 16px 24px;
  overflow-y: auto;
}

.mobile-menu.is-open{
  display: flex;
}

.mobile-menu-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.mobile-menu-title{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .02em;
}

.mobile-menu-search{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.mobile-menu-quicklink{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.mobile-menu-nav{
  display: block !important;
  width: 100%;
  margin-bottom: 22px;
}

.mobile-menu-nav .menu-row{
  display: block !important;
  width: 100%;
}

.mobile-menu-nav .menu-item{
  display: block;
  position: relative;
  width: 100%;
  margin: 0 0 10px 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.mobile-menu-nav .menu-link{
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 52px;
  padding: 0 56px 0 16px;
  border-radius: 0;
  font-size: 16px;
  color: #fff !important;
  white-space: normal;
}

.mobile-menu-nav .mobile-menu-group-toggle{
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.mobile-menu-nav .menu-dropdown{
  display: none;
  position: static !important;
  width: 100%;
  min-width: 0;
  padding: 0 10px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.mobile-menu-nav .menu-item.is-open .menu-dropdown{
  display: block;
}

.mobile-menu-nav .menu-dropdown a{
  display: block;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #fff !important;
  font-size: 15px;
}

.mobile-menu-bottom{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.mobile-menu-lang,
.mobile-menu-social{
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-lang a{
  opacity: .75;
  font-weight: 700;
}

.mobile-menu-lang a.active{
  opacity: 1;
}

body.menu-open{
  overflow: hidden;
}

    /* =========================
       RESPONSIVE
    ========================= */
    @media (max-width: 1180px){
      .site-header-main{
        grid-template-columns: 190px 1fr;
      }

      .site-logo{
        height: 64px;
      }

      .menu-link{
        font-size: 14px;
        padding: 0 8px;
      }
      

    }

    @media (max-width: 980px){
      .site-header-actions{
        grid-template-columns: auto 1fr;
      }

      .site-header-tools{
        grid-column: 1 / -1;
        justify-content: flex-start;
      }

      .menu-row{
        gap: 2px;
      }

      .menu-link{
        font-size: 13px;
      }
      

    }

    @media (max-width: 820px){
      .site-header-main{
        grid-template-columns: 1fr;
        gap: 14px;
      }

      .site-header-logo{
        justify-content: center;
      }

      .site-header-navwrap{
        gap: 10px;
      }

      .desktop-nav{
        display: none;
      }

      .header-burger{
        display: inline-flex;
      }

      .site-header-actions{
        grid-template-columns: auto 1fr auto;
      }
      

    }

    @media (max-width: 640px){
      .site-header-top,
      .site-header-main{
        width: min(100%, calc(100% - 20px));
      }

      .site-header-top{
        min-height: 36px;
        font-size: 12px;
      }

      .site-logo{
        height: 56px;
      }

      .site-header-actions{
        grid-template-columns: auto 1fr;
      }

      .site-header-tools{
        grid-column: 1 / -1;
        justify-content: flex-start;
      }

      .header-support-btn span{
        display: none;
      }

      .header-darkmode{
        width: 44px;
        min-width: 44px;
        height: 44px;
      }
.container {

  	width:100%;
	margin: auto;
}
    }

    @media (max-width: 460px){
      .site-header-lang,
      .site-header-social,
      .mobile-menu-bottom{
        gap: 8px;
      }

      .site-header-tools{
        gap: 8px;
      }

      .header-icon-btn,
      .header-theme-btn{
        min-height: 40px;
        padding: 0 12px;
      }

    }












/* =========================== FOOTER =========================== */
footer {
  width: 100%;
  min-height: var(--footer-h);
  background: var(--itl-bg);
  padding: var(--space-md) 0;
  color: #9d9d9d;
  font-size: var(--text-sm);
  text-align: center;
}

.footer-logo {  height: 130px; margin: var(--space-md); }
.footer-links a { color: #9d9d9d; }
.footer-links a:hover { color: #fff; }
.social-footer a { color:#9d9d9d; }
.social-footer a:hover { color: var(--itl-link); }


