/**
 * HopHop Blog Custom Styles
 *
 * @description Custom CSS for trucs.hphop.be blog
 * Color palette based on logo: Yellow #eab308, Orange #f97316
 */

:root {
  --hophop-yellow: #eab308;
  --hophop-orange: #f97316;
  --hophop-dark: #1f2937;
  --hophop-gray: #6b7280;
  --hophop-light: #f9fafb;
  --hophop-gradient: linear-gradient(135deg, #eab308 0%, #f97316 100%);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

body {
  background-color: #f3f4f6 !important;
}

a {
  color: #f97316 !important;
  transition: color 0.2s ease;
}

a:hover {
  color: #eab308 !important;
}

::selection {
  background: #eab308;
  color: #1f2937;
}

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

#header.section {
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

#header .navbar-brand {
  margin-right: 0 !important;
}

#header .navbar-brand img {
  height: 50px !important;
  width: auto !important;
}

#header.scrolled .navbar-brand img {
  height: 38px !important;
}

/* Navigation links */
#header .navbar-section.desktop-menu .dropmenu > ul > li > a {
  color: #1f2937 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

#header .navbar-section.desktop-menu .dropmenu > ul > li > a:hover {
  color: #f97316 !important;
}

/* Hide duplicate site title in nav if present */
#header .navbar-section.desktop-menu .dropmenu > ul > li:first-child > a[href="/"] {
  display: none;
}

/* ========================================
   HERO SECTION - Blog listing
   ======================================== */

#blog-hero.hero,
section.hero.modular-hero {
  position: relative !important;
  min-height: 280px !important;
  padding: 4rem 1rem !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Dark gradient overlay for readability */
#blog-hero.hero .image-overlay,
section.hero.modular-hero .image-overlay {
  display: block !important;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.85) 0%, rgba(124, 45, 18, 0.9) 50%, rgba(69, 26, 3, 0.95) 100%) !important;
}

/* Hero text styling - bright text on dark orange */
#blog-hero.hero h1,
section.hero.modular-hero h1 {
  color: #ffffff !important;
  font-size: 2.75rem !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
  z-index: 1 !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: -0.02em !important;
}

#blog-hero.hero h2,
#blog-hero.hero p,
section.hero.modular-hero h2,
section.hero.modular-hero p {
  color: #fef3c7 !important;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Hide the down arrow */
#blog-hero.hero #to-start,
section.hero.modular-hero #to-start {
  display: none !important;
}

/* ========================================
   BLOG LISTING - CARDS
   ======================================== */

section.blog-listing {
  background: #f3f4f6 !important;
  padding-top: 2rem !important;
}

.blog-listing .bricklayer .card {
  background: #ffffff !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  overflow: hidden !important;
  margin-bottom: 1.5rem !important;
}

.blog-listing .bricklayer .card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Card image */
.blog-listing .card .card-image {
  border-radius: 16px 16px 0 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.blog-listing .card .card-image img {
  transition: transform 0.4s ease !important;
  width: 100% !important;
  display: block !important;
}

.blog-listing .card:hover .card-image img {
  transform: scale(1.08) !important;
}

/* Card header (date + title) */
.blog-listing .card .card-header {
  padding: 1.25rem 1.5rem 0.5rem !important;
  background: transparent !important;
  border: none !important;
}

.blog-listing .card .card-subtitle {
  font-size: 0.8rem !important;
  color: #9ca3af !important;
  margin-bottom: 0.5rem !important;
}

.blog-listing .card .card-title h5,
.blog-listing .card .card-title a {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}

.blog-listing .card .card-title a:hover {
  color: #f97316 !important;
}

/* Card body (summary) */
.blog-listing .card .card-body {
  padding: 0.5rem 1.5rem 1rem !important;
}

.blog-listing .card .card-body p {
  color: #6b7280 !important;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* Card footer (tags) */
.blog-listing .card .card-footer {
  padding: 0.75rem 1.5rem 1.25rem !important;
  background: #f9fafb !important;
  border-top: 1px solid #f3f4f6 !important;
}

/* ========================================
   TAGS / TAXONOMY LABELS
   ======================================== */

.label,
span.label,
a.label {
  background: linear-gradient(135deg, #eab308 0%, #f97316 100%) !important;
  color: #ffffff !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  padding: 0.3rem 0.8rem !important;
  border-radius: 50px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  border: none !important;
  text-decoration: none !important;
  display: inline-block !important;
  margin: 0.15rem !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.label:hover,
span.label:hover,
a.label:hover {
  opacity: 0.9 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Secondary/category labels */
.label.label-secondary,
.taxonomy-category .label {
  background: #374151 !important;
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
  background: #ffffff !important;
  padding: 1.5rem !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.sidebar .sidebar-content {
  margin-bottom: 1.5rem !important;
}

.sidebar .sidebar-content:last-child {
  margin-bottom: 0 !important;
}

.sidebar h4 {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #6b7280 !important;
  margin: 0 0 1rem 0 !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 3px solid #eab308 !important;
}

/* Tags in sidebar */
.sidebar .tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem !important;
}

/* Archives in sidebar */
.sidebar ul.archives {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sidebar ul.archives li {
  margin-bottom: 0 !important;
}

.sidebar ul.archives li a {
  display: flex !important;
  align-items: center !important;
  padding: 0.6rem 0 !important;
  border-bottom: 1px solid #f3f4f6 !important;
  text-decoration: none !important;
  color: #374151 !important;
  font-size: 0.9rem !important;
}

.sidebar ul.archives li a:hover {
  color: #f97316 !important;
}

.sidebar ul.archives li a .badge {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  font-size: 0.75rem !important;
  padding: 0.2rem 0.6rem !important;
  border-radius: 50px !important;
  margin-right: 0.75rem !important;
}

/* Syndicate/RSS buttons */
.sidebar .syndicate .btn {
  background: #f3f4f6 !important;
  color: #374151 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  margin-right: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  transition: all 0.2s ease !important;
}

.sidebar .syndicate .btn:hover {
  background: #f97316 !important;
  color: #ffffff !important;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
  margin: 2rem 0 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 0.25rem !important;
}

.pagination .page-item .page-link,
.pagination li a {
  border-radius: 10px !important;
  border: none !important;
  background: #ffffff !important;
  color: #374151 !important;
  font-weight: 500 !important;
  padding: 0.5rem 0.9rem !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.pagination .page-item.active .page-link,
.pagination li.active a,
.pagination li a.active {
  background: linear-gradient(135deg, #eab308 0%, #f97316 100%) !important;
  color: #ffffff !important;
}

.pagination .page-item .page-link:hover,
.pagination li a:hover {
  background: #f3f4f6 !important;
  color: #f97316 !important;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn.btn-primary,
button.btn-primary {
  background: linear-gradient(135deg, #eab308 0%, #f97316 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 6px rgba(234, 179, 8, 0.25) !important;
}

.btn.btn-primary:hover,
button.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(234, 179, 8, 0.35) !important;
}

/* ========================================
   ARTICLE PAGE
   ======================================== */

/* Article title header bar (when no hero image) */
.content-item .content-title {
  background: linear-gradient(135deg, #92400e 0%, #7c2d12 50%, #451a03 100%) !important;
  margin: -2rem -1rem 2rem -1rem !important;
  padding: 2.5rem 2rem !important;
  border-radius: 16px 16px 0 0 !important;
  position: relative !important;
}

.content-item .content-title::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
  pointer-events: none !important;
  border-radius: 16px 16px 0 0 !important;
}

.content-item .content-title h2,
.content-item .content-title .p-name {
  color: #ffffff !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  margin: 0 0 0.75rem 0 !important;
  line-height: 1.3 !important;
  position: relative !important;
  z-index: 1 !important;
}

.content-item .content-title h2 a,
.content-item .content-title .p-name a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.content-item .content-title h3 {
  color: #fef3c7 !important;
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  margin: 0 0 1rem 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

.content-item .content-title .blog-date {
  color: rgba(255, 255, 255, 0.8) !important;
  position: relative !important;
  z-index: 1 !important;
}

.content-item .content-title .blog-date i {
  color: #fef3c7 !important;
}

.content-item .content-title .taxonomy {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 1rem !important;
}

/* Override label colors in article header */
.content-item .content-title .label {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.content-item .content-title .label:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Article content wrapper */
.content-item {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  margin-bottom: 2rem !important;
}

.content-item .e-content {
  padding-top: 0.5rem !important;
}

.blog-content-item {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 2.5rem !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.blog-content-item h1 {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  color: #1f2937 !important;
  line-height: 1.25 !important;
  margin-bottom: 1rem !important;
}

.blog-content-item h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 3px solid #eab308 !important;
}

.blog-content-item h3 {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
}

.blog-content-item p {
  line-height: 1.8 !important;
  margin-bottom: 1.25rem !important;
  color: #374151 !important;
}

/* Code blocks */
.blog-content-item code:not(pre code) {
  background: #fef3c7 !important;
  color: #92400e !important;
  padding: 0.15rem 0.4rem !important;
  border-radius: 4px !important;
  font-size: 0.9em !important;
}

.blog-content-item pre,
pre code,
pre.xdebug-var-dump {
  background: #1f2937 !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  overflow-x: auto !important;
  margin: 1.5rem 0 !important;
}

.blog-content-item pre code {
  background: transparent !important;
  color: #e5e7eb !important;
  padding: 0 !important;
}

/* Blockquotes */
.blog-content-item blockquote,
blockquote {
  border-left: 4px solid #eab308 !important;
  background: #fffbeb !important;
  padding: 1rem 1.5rem !important;
  margin: 1.5rem 0 !important;
  border-radius: 0 12px 12px 0 !important;
  font-style: italic !important;
  color: #92400e !important;
}

/* Lists */
.blog-content-item ul,
.blog-content-item ol {
  margin: 1rem 0 !important;
  padding-left: 1.5rem !important;
}

.blog-content-item li {
  margin-bottom: 0.5rem !important;
  line-height: 1.7 !important;
}

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

#footer {
  background: #1f2937 !important;
  color: #e5e7eb !important;
  padding: 2.5rem 0 !important;
  margin-top: 3rem !important;
}

#footer a {
  color: #eab308 !important;
}

#footer a:hover {
  color: #f97316 !important;
}

/* ========================================
   MOBILE MENU
   ======================================== */

.mobile-container .overlay {
  background: #1f2937 !important;
}

.mobile-container .overlay-menu ul li a {
  color: #ffffff !important;
  padding: 1rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mobile-container .overlay-menu ul li a:hover {
  color: #eab308 !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Hamburger button */
.mobile-menu .button_container span {
  background: #1f2937 !important;
}

.mobile-menu .button_container.active span {
  background: #ffffff !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 840px) {
  #blog-hero.hero h1 {
    font-size: 2.25rem !important;
  }

  #blog-hero.hero h2,
  #blog-hero.hero p {
    font-size: 1.1rem !important;
  }

  .blog-listing .card {
    margin-bottom: 1rem !important;
  }

  .blog-content-item {
    padding: 1.5rem !important;
  }

  .blog-content-item h1 {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 600px) {
  #header .navbar-brand img {
    height: 40px !important;
  }

  #blog-hero.hero {
    min-height: 200px !important;
    padding: 2rem 1rem !important;
  }

  #blog-hero.hero h1 {
    font-size: 1.75rem !important;
  }

  .sidebar {
    margin-top: 1.5rem !important;
  }
}

/* ========================================
   NOTICES (Markdown Notices Plugin)
   ======================================== */

.notices {
  border-radius: 12px !important;
  padding: 1rem 1.5rem !important;
  margin: 1.5rem 0 !important;
  border-left-width: 4px !important;
  border-left-style: solid !important;
}

.notices.yellow {
  background: #fef3c7 !important;
  border-left-color: #eab308 !important;
}

.notices.red {
  background: #fee2e2 !important;
  border-left-color: #ef4444 !important;
}

.notices.blue {
  background: #dbeafe !important;
  border-left-color: #3b82f6 !important;
}

.notices.green {
  background: #d1fae5 !important;
  border-left-color: #10b981 !important;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
  background: transparent !important;
  padding: 0.75rem 0 !important;
  margin-bottom: 1rem !important;
}

.breadcrumbs a {
  color: #6b7280 !important;
  font-size: 0.85rem !important;
}

.breadcrumbs a:hover {
  color: #f97316 !important;
}

/* ========================================
   FIX: Remove text-blue color on links
   ======================================== */

.text-primary,
a.text-primary {
  color: #f97316 !important;
}

/* ========================================
   SPECTRE OVERRIDES
   ======================================== */

.btn.btn-link {
  color: #f97316 !important;
}

.btn.btn-link:hover {
  color: #eab308 !important;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2) !important;
}
