/*
  DennisDB – Custom fixes / improvements
  ------------------------------------
  Purpose:
  - Keep template CSS intact (templatemo-cyborg-gaming.css)
  - Override only what we need: navbar dropdown behaviour, spacing, and small UX fixes
*/

:root{
  --ddb-radius: 23px;
  --ddb-panel-bg: rgba(0,0,0,.80);
}

/* ===== Navbar ===== */
.custom-navbar{
  /* Keep your look, but ensure dropdowns sit above content */
  position: sticky;
  top: 1rem;
  z-index: 1100;
}

.custom-navbar .nav-link{
  text-transform: uppercase;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .75rem 1rem;
}

.custom-navbar .nav-link.active{
  opacity: 1;
}

/* Bootstrap-like dropdown (no forced absolute positioning)
   This fixes issues in collapsed navbar + makes it behave like Bootstrap expects */
.custom-navbar .dropdown-menu{
  background: #2e2f31;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  z-index: 1101;
}

.custom-navbar .dropdown-item{
  color: #ddd;
  border-radius: 8px;
  padding: .55rem .75rem;
  font-weight: 600;
}

.custom-navbar .dropdown-item:hover,
.custom-navbar .dropdown-item:focus{
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* When navbar is collapsed on mobile, keep dropdown aligned and readable */
@media (max-width: 991.98px){
  .custom-navbar .navbar-collapse{
    padding-top: .5rem;
  }
  .custom-navbar .dropdown-menu{
    position: static;
    float: none;
    width: 100%;
    margin-top: .25rem;
  }
}

/* ===== Spacing / cards ===== */

/* Global section rhythm inside the page-content */
.page-content > .row{
  margin-bottom: 1.25rem;
}

/* Make shadow panels breathe a bit and avoid cramped content */
.shadow-org{
  box-shadow: 0 0 5px 10px rgba(0, 0, 0, 0.35);
}

.pages,
.programoversigt-banner,
.top-streamers,
.main-banner{
  margin-bottom: 1.5rem;
}

/* Genveje boxes: consistent spacing + structure */
.genveje-wrapper{
  margin-bottom: 1.25rem;
}


/* Force consistent spacing between shortcut boxes even if Bootstrap gutters are overridden elsewhere */
.genveje-wrapper{
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}
.genveje-wrapper > .col{
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.50rem;
  padding-bottom: 0.75rem;
}

/* Ensure equal-height boxes + full clickable area */
.genveje-wrapper > [class*="col"]{
  display: flex;
}
.genveje-wrapper > [class*="col"] > a{
  display: block;
  width: 100%;
}

.genvejebox{
  border-radius: var(--ddb-radius);
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 150px;
}

.genvejebox::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.15) 60%);
}

.genvejebox h1{
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.1;
}

.genvejebox h1{
  position: relative;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: .06em;
}

/* Program cards: keep consistent rounding & remove accidental gaps */
.program-item,
.program-item .thumb,
.program-item img{
  border-radius: 20px;
}

.program-grid{
  gap: 18px;
}

/* Top-streamers: avoid overflow with very large inline font sizes */
.top-streamers ul li h6{
  max-width: 100%;
}

/* ===== Discord section ===== */
.discord-panel{
  border-radius: var(--ddb-radius);
  background: var(--ddb-panel-bg);
  backdrop-filter: blur(3px);
  padding: 30px;
}

.discord-panel p{
  margin-bottom: 0;
  opacity: .9;
}

.discord-widget iframe{
  width: 100%;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}


/* Nav font scaling */
@media (max-width: 991.98px){
  .custom-navbar .nav-link{
    font-size: 1.15rem;
    padding: .7rem .85rem;
  }
  .custom-navbar .dropdown-item{
    font-size: 1.05rem;
  }
}


/* ===== UX polish ===== */

/* Make interactive elements feel responsive */
a, button, .btn, .nav-link, .dropdown-item{
  transition: transform .12s ease, opacity .12s ease, background-color .12s ease, box-shadow .12s ease, color .12s ease;
}

.main-button a,
.main-border-button a,
.btn{
  border-radius: 999px;
}

/* Subtle lift on hover for common cards/panels */
.item,
.genvejebox,
.program-item,
.discord-panel{
  transition: transform .14s ease, box-shadow .14s ease;
}

.item:hover,
.genvejebox:hover,
.program-item:hover,
.discord-panel:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

/* Improve readability: consistent text rendering */
body{
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Better keyboard focus (accessibility) */
:focus{
  outline: none;
}
:focus-visible{
  outline: 2px solid rgba(255,255,255,.55);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Slightly larger dropdown items for easier tapping */
.custom-navbar .dropdown-item{
  font-size: 1.05rem;
}

/* Footer polish */
footer{
  opacity: .95;
}
footer a{
  text-decoration: none;
}
footer a:hover{
  text-decoration: underline;
}
