/*
Theme Name: dataunderground
Theme URI: https://www.dataunderground.net/
Author: Data Underground
Author URI: https://www.dataunderground.net/
Description: Modern Bootstrap-based WordPress theme with modular PHP partials.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mmedia
Tags: bootstrap, responsive, custom
*/

/* assets/css/style.css */

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #f5f5f5;
  color: #111;
}

body {
  font-family: "Source Sans 3";
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #111;
}

/* Headlines, nav, section headers */
h1,
h2,
h3,
h4,
h5,
h6,
nav,
.section-title {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Body text, timestamps, captions */
body,
p,
time,
.post-meta,
.excerpt {
  font-family: "Source Sans 3";
  line-height: 1.6;
}

/* Utilities */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #111;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.post-headline {
  height: 400px;
  position: relative;
  border-radius: 6px;
}

.headline-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.headline-bg img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: brightness(0.75);
  transition: filter 0.3s ease;
}

.post-headline:hover .headline-bg img {
  filter: brightness(0.55);
}

.headline-overlay {
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
  color: #fff;
}

.headline-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.post-inline img {
  object-fit: cover;
  width: 100%;
  height: 70px;
}

.post-info h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin: 0;
}

.post-info p {
  font-family: "Source Sans 3";
  font-size: 1.3rem;
  color: #666;
}

.post-overlay {
  height: 250px;
  background-color: #000;
}

.post-overlay-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-overlay-bg img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: brightness(0.7);
  transition: filter 0.3s ease;
}

.post-overlay:hover .post-overlay-bg img {
  filter: brightness(0.5);
}

.post-overlay-content {
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
}

.post-overlay-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.post-mini-overlay {
  transition: all 0.3s ease;
  cursor: pointer;
}
.post-mini-overlay:hover {
  filter: brightness(1.1);
}

.post-hero,
.post-micro {
  margin-bottom: 0.75rem;
}

.post-hero .p-4,
.post-micro .p-3 {
  padding: 1rem !important;
}

.post-hero h4,
.post-micro h5 {
  margin-bottom: 0.5rem;
}

.post-hero h1,
.post-micro h5 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.du-pill {
  display: inline-block;
  font: 700 10px/1 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: #fff;
  margin: 0 0.35rem 0.35rem 0;
  white-space: nowrap;
  text-decoration: none;
}
.du-pill:hover {
  opacity: 0.9;
  text-decoration: none;
}

.custom-logo {
  max-width: 125px;
}

footer .nav a:hover {
  text-decoration: underline;
}
footer .custom-logo {
  max-height: 28px;
  width: auto;
}
footer .text-truncate {
  max-width: 100%;
}

/* Footer readability fixes */
footer .footer-headlines a {
  display: block;
  white-space: normal; /* allow wrapping */
  overflow-wrap: anywhere; /* wrap long words */
  word-break: break-word; /* safety on long unbroken strings */
  line-height: 1.35;
}
footer,
footer .text-body-secondary {
  color: #444 !important;
}
footer h6 {
  color: #222 !important;
}
footer a {
  color: #222;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

#du-cookie-banner {
  background: #fff;
  color: #000;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  padding: 1.5rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 2px solid #000;
  z-index: 9999;
}

#du-cookie-banner .title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#du-cookie-banner button {
  padding: 0.5rem 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

#du-cookie-banner button:first-child {
  background: #000;
  color: #fff;
}

#du-cookie-banner button:last-child {
  background: #eee;
  color: #000;
  border: 1px solid #000;
}
