/* --- Jason Jones Imagery Styles --- */

/* Offset for the fixed top navbar */
body {
  padding-top: 85px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: justify;
  /* Fixed Hexagon Background */
  background-attachment: fixed;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cg fill='none' stroke='%232b3035' stroke-width='1'%3E%3Cpolygon points='28,0 56,16 56,48 28,64 0,48 0,16'/%3E%3Cpolygon points='0,48 28,64 28,96 0,112 -28,96 -28,64'/%3E%3Cpolygon points='56,48 84,64 84,96 56,112 28,96 28,64'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 96px;
  background-repeat: repeat;
}

/* Forces the footer to stay at the bottom of short pages */
main {
  flex: 1;
}

/* Main Menu Styliung */
#main-nav-menu {
  background-color: #4b3925;
}

/* Subtle logo interaction */
.navbar-brand img {
  transition: filter 0.3s ease, transform 0.2s ease-in-out;
  will-change: filter, transform;
}

.navbar-brand:hover img {
  transform: scale(1.02);
  filter: brightness(1.2);
}

/* Active menu item styling - pulling the yellow from the logo as an accent */
.nav-link.active {
  color: #ffc107 !important; /* Bootstrap Warning Yellow */
}

/* --- About Page Specific Styles --- */

/* Restricts the main bio imagery footprint on large displays */
.about-profile-img {
  max-width: 400px;
}

/* Tech Logo Animations - Handles smooth scaling on hover with GPU acceleration */
.tech-logo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.tech-logo {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  max-width: 100%;
  will-change: transform;
}

.tech-logo:hover {
  transform: scale(1.15);
}

/* --- Global Lightbox/Modal Utilities --- */

/* Changes mouse arrow to a magnifying glass over zoomable images */
.img-zoom {
  cursor: zoom-in;
  transition: opacity 0.2s ease-in-out;
}

.img-zoom:hover {
  opacity: 0.9;
}

/* Shrink-wraps the modal to fit the precise photo size, eliminating wide gaps */
.lightbox-content {
  width: max-content !important;
  max-width: 90vw;
  margin: auto;
}

/* Restricts oversized imagery from spilling out of the screen layout height */
.lightbox-img {
  max-height: 82vh;
  object-fit: contain;
  display: block;
}

/* --- Splide Framework Custom Layout Styles (Added) --- */

/* Standardize the slider footprint cleanly across devices */
.hero-slider-container {
  overflow: hidden;
}

#main-full-splider {
  max-width: 100%;
  margin-top: -12px;
}

/* Regulate layout height parameters strictly without using inline style blocks */
.hero-slider-img {
  width: 100%;
  height: 136px; //300
object-fit: cover; /* Keeps images crisp without distorting aspect ratios */
}

h3.slider-caption-overlay-inner.text-warning {
  font-size: 3vw
}

@media (min-width: 768px) {
  .hero-slider-img {
    height: 590px; /* Taller display window for desktop layouts */
    object-fit: cover; /* Keeps images crisp without distorting aspect ratios */
  }

  h3.slider-caption-overlay-inner.text-warning {
    font-size: 2vw
  }
}

/* Semi-transparent text overlay backdrops matching the dark-mode aesthetic */
.slider-caption-overlay {
  background: rgba(33, 37, 41, 0.65); /* Native Bootstrap dark background code with transparency */
  backdrop-filter: blur(0px); // Soft glassmorphism accent 4
}


/* Elements are hidden by default */
.slider-caption-overlay,
.slider-caption-overlay-inner  {
  opacity: 0;
  transform: translateX(-2000px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When the slide is active, the elements come in */
.splide__slide.is-active .slider-caption-overlay {
  opacity: 1;
  transform: translateX(0);
}

/* Add a delay to stagger the second element */
.splide__slide.is-active .slider-caption-overlay-inner  {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.8s;
}





/* --- Universal Article Directory Engine Extensions --- */

/* Uniform wrapper bounding box for standard image scaling */
.article-img-wrapper {
  position: relative;
  overflow: hidden;
  display: block;
}

/* Performs crisp zoom scaling safely on hover */
.article-card-zoom {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}

.article-img-wrapper:hover .article-card-zoom {
  transform: scale(1.08);
}

/* Color transition safety loop for title links */
.hover-link-light {
  transition: color 0.2s ease-in-out;
}

.hover-link-light:hover {
  color: #f8f9fa !important; /* Forces transition color shift to clean white */
}

/* Thumbnail Layout System Overlay Box - Fills lower 2/3rds */
.article-thumbnail-overlay {
  background: linear-gradient(to top, rgba(33, 37, 41, 0.95) 0%, rgba(33, 37, 41, 0.8) 75%, rgba(33, 37, 41, 0) 100%);
  padding-top: 4rem !important; /* Soft protective gradient blend buffer */
}

/* Regulates standardized grid dimensions for Description thumbnails */
.article-desc-img {
  width: 100%;
  max-width: 100%;
  height: 200px;
}

@media (min-width: 768px) {
  .article-desc-img {
    width: 260px;
    height: 180px;
  }
}

article {
  margin-bottom: 20px;
}
/* Line-clamping safety constraints to keep grid components balanced */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Pagination Dark Theme & Theme Color Matching Override Blocks --- */
.pagination .page-link {
  background-color: #212529; /* Standard dark theme backing */
  border-color: #495057;     /* Secondary sub-grid tracking border lines */
  color: #f8f9fa;            /* High visibility clean off-white lettering */
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination .page-link:hover {
  background-color: #343a40; /* Soft charcoal highlights during interaction states */
  color: #ffc107;            /* Pops the layout accents to Warning Yellow */
  border-color: #6c757d;
}

.pagination .page-item.active .page-link {
  background-color: #ffc107 !important; /* Locks structural layout focus color block to warning gold */
  border-color: #ffc107 !important;
  color: #212529 !important;            /* Reverts font color layer to deep charcoal for text contrast */
  font-weight: 600;
}

.pagination .page-item.disabled .page-link {
  background-color: #1a1d20; /* Fades out elements when navigating past extreme terminal indexes */
  border-color: #343a40;
  color: #6c757d;
  opacity: 0.6;
}

/* --- Expandable Nav Search Bar --- */
.search-expandable-form {
  height: 40px;
}

.search-input {
  width: 0;
  opacity: 0;
  padding: 0;
  margin: 0;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toggled via jQuery */
.search-input.expanded {
  width: 300px;
  opacity: 1;
  padding: 0.375rem 1rem;
  margin-right: 0.5rem; /* Adds breathing room before the icon */
  border: 1px solid #495057; /* Matches the established dark theme */
  border-radius: 10px;
}

.search-toggle-btn {
  text-decoration: none;
  transition: color 0.2s;
  width: 35px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.search-toggle-btn:hover {
  color: #ffc107 !important; /* Warning yellow accent */
}

/* --- Absolute Center Navbar Menu --- */
@media (min-width: 992px) {
  /* Set the positioning context to the container */
  #main-nav-menu .container-fluid {
    position: relative;
  }

  /* Lock the menu to the exact center of the screen */
  #mainMenu .navbar-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}
