/*
Theme Name: Afroregion
Theme URI: https://afroregion.com/
Author: Jupiter Digital Agency
Author URI: https://jupiterdigitalagency.online/
Description: A custom theme for Afroregion.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afroregion
*/

:root {
    /* Color styles */
    --brown-black: #070300;
    --grey-accent: #161618;
    --orange: #FE6500;
    --brown: #090401;
    --altwhite: rgba(255, 255, 255, 0.6);
    --white: #fff;
    --orange20: rgba(254, 101, 0, 0.2);
  
    /* Text-size styles */
    --sectioncaption: 20px;
    --morebtn: 15px;
    --menulinks: 15px;
    --smalltitle: 16px;
    --metatext: 14px;
    --newstitle: 16px;
    --footertext: 14px;
    --footerlinks: 13px;
    --copyright: 14px;
    --archivecaption: 24px;
    --btntext: 15px;
    --paragraph: 16px;
    --newstitle: 26px;
    --smallmeta: 13px;
  }


  p {
    margin-bottom: 1.5em;
}

  

/* Use the Inter font */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--brown-black);
    color: var(--grey-accent);
    font-size: var(--paragraph);
    color: #fff;
  }

  a {
    color: var(--orange);
  }

  a:hover{
    color: var(--altwhite);
  }
  
  /* Example: Using text sizes */
  h1 {
    font-size: var(--archivecaption);
  }

  h2,h3,h4,h5,h6 {
    font-size: var(--sectioncaption);
  }
  
  p.section-caption {
    font-size: var(--sectioncaption);
  }
  
  /* Example: Buttons */
  .btn {
    font-size: var(--btntext);
    padding: 10px 20px;
    background-color: var(--grey-accent);
    color: #fff;
    border: none;
    cursor: pointer;
  }
  
  /* Example: Footer styling */
  .site-footer {
    font-size: var(--footertext);
    background-color: var(--brown);
    color: #fff;
  }
  
 
  .custom-header-border {
    border-bottom: 1px solid #532100;
  }
  
  .altwhite {
    color: var(--altwhite);
  }


  
  .footertext {
    font-size: var(--footertext);
    color: var(--altwhite);
  }

  .footer-menu li {
    margin: 5px 10px;
}

.footer-menu a {
    color: var(--footerlinks); /* Use your custom variable or any color */
    text-decoration: none;
    font-size: var(--footertext);
}

.footer-menu a:hover {
    text-decoration: underline;
}

.footer-social-media a {
    font-size: 24px; /* Icon size */
    color: var(--altwhite); /* 60% white as defined */
    padding: 10px;
  }
  
  .footer-social-media a:hover {
    color: #fff; /* Optional: change to full white on hover */
  }
  

  .search-container {
    position: relative;
    width: 100%;
  }
  
  .search-field {
    width: 100%;
    border: 1px solid var(--orange);
    border-radius: 25px;
    background: transparent;
    padding: 8px 12px;
    /* Extra right padding to make room for the button */
    padding-right: 45px;
    outline: none;
    box-sizing: border-box;
    font-size:14px;
    color: var(--altwhite);
  }
  
  .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, #FE6500, #FE6500);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #fff;
  }
  



  /* Header icons */
  .header-icons-container {
    overflow-x: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
    margin-bottom:50px;
  }
  .header-icons-container::-webkit-scrollbar {
    display: none;             /* WebKit browsers */
  }
  
  .header-icons-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;   /* Center on larger screens */
    align-items: center;
  }
  
  @media (max-width: 767px) {
    /* On mobile, align items to the left so that scrolling works naturally */
    .header-icons-wrapper {
      justify-content: flex-start;
    }
  }

  .search-field {
color: var(--brown-black);
  }
  
  .header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;  /* Ensures there's enough width for each item to scroll */
  }
  
  .icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--orange); /* your orange variable */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .icon-circle i {
    font-size: 20px;
    color: var(--brown-black); /* Icon color set to your custom variable */
  }
  
  .icon-text {
    color: var(--menulinks);
    font-size: 15px;
    margin-top: 5px; 
  }

  .header-icons-container a {
    color: #fff !important;
    text-decoration: none !important;
  }
  
  .header-icons-container a:hover {
    color: #fff !important;
    text-decoration: none !important;
  }
  
  
  

  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    overflow-x: auto;
  }
  .filter-bar a.btn-filter {
    flex: 1 0 auto;
    background-color: var(--grey-accent);
    color: #fff;
    padding: 6px 12px;
    text-align: center;
    text-decoration: none;
    border: none;
    font-size: 0.85rem;
    border-radius: 30px;
    white-space: nowrap;
  }
  .filter-bar a.btn-filter.active {
    background-color: var(--orange);
  }
  @media (min-width: 768px) {
    .filter-bar a.btn-filter {
      flex: none;
    }
  }

  .card-title {
    font-size: var(--smalltitle); /* 16px */
  }
  
  .card-text {
    font-size: var(--metatext);   /* 14px */
  }
  

  .music-grid-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
  @media (min-width: 992px) {
    .music-grid-item {
      flex: 0 0 20%;
      max-width: 20%;
    }
  }

  .album-grid-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0.5rem;
  }
  @media (min-width: 992px) {
    .album-grid-item {
      flex: 0 0 20%;
      max-width: 20%;
      padding: 0.5rem;
    }
  }
  


  .djmix-grid-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0.5rem; /* add gap */
  }
  @media (min-width: 992px) {
    .djmix-grid-item {
      flex: 0 0 20%;
      max-width: 20%;
      padding: 0.5rem; /* same gap on large screens */
    }
  }
  

.search-field {
color: var(--altwhite);
  }
 

   /* Customize horizontal scrollbar for the grid wrapper */
   div[style*="overflow-x: auto"]::-webkit-scrollbar {
    height: 8px;
  }
  div[style*="overflow-x: auto"]::-webkit-scrollbar-track {
    background: #333; /* Adjust to your dark color */
  }
  div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb {
    background-color: var(--orange); /* Use your orange variable */
    border-radius: 4px;
  }


  .song-title {
    color: var(--white);
  }
  
  .song-info {
    color: var(--altwhite);
    font-size: var(--metatext);
  }
  .new-songs-table tbody tr {
    border-bottom: 1px solid var(--orange20);
  }

  .orange {
    color: var(--orange);
  }

 


/* Total scrollbar width */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

/* Background of the scrollbar track */
::-webkit-scrollbar-track {
  background: var(--grey-accent);
}

/* Scrollbar handle */
::-webkit-scrollbar-thumb {
  background-color: var(--orange);
  border-radius: 6px;
  border: 3px solid var(--grey-accent);
}




.comment-author {
  color: #fff;
  font-family: var(--menulinks);
  font-weight: bold;
}

.comment-text {
  color: var(--altwhite);
  font-size: var(--metatext);
}




.artiste-image-wrapper {
  position: relative;
  display: inline-block;
}

.artiste-image-wrapper img {
  display: block;
  transition: transform 0.3s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--orange);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.artiste-container:hover .overlay {
  opacity: 0.6;
}

.artiste-container:hover img {
  transform: scale(1.05);
}

.newstitle {
  font-size: var(--newstitle);
  font-weight:700;
}



.pagination .page-link {
  color: var(--orange);
  background-color: transparent;
  border: none;
}
.pagination .page-item.active .page-link {
  color: #fff;
  background-color: var(--orange);
  border-radius: 0.25rem;
}
.pagination .page-link:hover {
  color: #fff;
  background-color: var(--orange);
  border-radius: 0.25rem;
}


.card-img-top {
  width: 100%;
  height: 100%; /* match the custom image size height */
  object-fit: cover;
}



/* Stacked cards container using grid layout */
.stacked-cards {
  display: grid;
  gap: 10px;
  position: relative;
  justify-items: center;
  
  /* Desktop: show 3 columns */
  grid-template-columns: repeat(3, 1fr);
  /* Force a minimum width for the grid so that horizontal scrolling is triggered even on desktop */
  min-width: calc(300px * 3 + 20px); /* Adjust based on your column widths and gap */
}

/* On mobile: show 1 column per card */
@media (max-width: 767px) {
  .stacked-cards {
    grid-template-columns: 100%;
    /* Force the container to be as wide as the number of items (e.g., 3 items = 300% of viewport) */
    min-width: calc(100% * 3);
  }
}

/* Each card styling remains */
.stacked-card {
  position: relative;
  width: 90%; /* Adjust to control card width relative to the grid cell */
  transition: transform 0.3s ease;
}

/* Overlap effect for cards beyond the first */
.stacked-cards > .stacked-card:nth-child(n+2) {
  margin-left: -30px; /* Adjust overlap as needed */
}

.stacked-card:hover {
  transform: scale(1.05);
}

/* Card image styling */
.stacked-card .card-img {
  width: 100%;
  height: 300px; /* Fixed height for the card */
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  position: relative;
}

/* Overlay for title */
.stacked-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}




/* Desktop: normal grid */
.scrolling-wrapper {
  overflow-x: visible;
}

/* Mobile: single row with horizontal scroll */
@media (max-width: 767px) {
  .scrolling-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .scrolling-wrapper .row {
    flex-wrap: nowrap;
  }
  /* Custom orange scrollbar (WebKit only) */
  .scrolling-wrapper::-webkit-scrollbar {
    height: 8px;
  }
  .scrolling-wrapper::-webkit-scrollbar-track {
    background: #222;
  }
  .scrolling-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--orange);
    border-radius: 4px;
  }
}





@media (max-width: 767px) {
  .entry-header .row {
    text-align: center;
  }
  .entry-header .col-md-3,
  .entry-header .col-md-9 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .music-thumbnail {
    margin: 0 auto;
  }
}


.footer-menu ul {
  flex-wrap: wrap; /* Allow items to flow to the next line */
}

.footer-menu ul li a {
  white-space: nowrap; /* Prevent text from wrapping inside the link */
}




/* Mobile Search Container */
.mobile-search-container {
  display: none; /* Hidden by default */
  position: absolute;
  top: 120px; /* Adjust this value as needed to position below the header */
  left: 0;
  width: 100%;
  background: var(--white); /* White background */
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1050; /* Ensure it's above other content */
}

/* Search Toggle Button */
.search-toggle-btn {
  background: none;
  border: none;
  color: var(--white); /* Dark brown color */
  font-size: 24px;
  cursor: pointer;
}


.search-toggle-btn:hover {
  color: var(--white);  
}

.search-toggle-btn:focus {
  color: var(--white);  
  border:none !important;
}





 




/* ─ Horizontal scroll only ─ */
.playlist-scroll {
  overflow-x: auto;               /* horizontal scroll */ 
  overflow-y: hidden;             /* no vertical scroll */ 
  scroll-behavior: smooth;        /* smooth dragging */  
}

/* ─ Grid flows in columns, one row only ─ */
.playlist-cards {
  display: grid;                  
  grid-auto-flow: column;   
    grid-auto-columns: 50%;        
     gap: 1rem;
}

/* ─ 3‑across on desktop ─ */
@media (min-width: 768px) {
  .playlist-cards {
    grid-auto-columns: 25%;     }
}

/* ─ Square cards via aspect-ratio ─ */
.playlist-card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;            /* perfect square */ 
  background-size: cover;         /* cover crop */ 
  background-position: center;
  position: relative;
}

/* ─ Title overlay ─ */
.playlist-card .title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: .5rem;
  text-align: center;
  font-size: var(--smalltitle);
}
 

.playlist-scroll::-webkit-scrollbar {
  height: 8px;    
}


 






/* Modern Floating Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 60px 0;
}

.pagination ul {
  display: flex;
  list-style: none;
  padding: 20px;
  margin: 0;
  gap: 10px;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pagination ul li a,
.pagination ul li span {
  display: inline-block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  background: transparent;
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-weight: 500;
}

/* Hover state */
.pagination ul li a:hover {
  background: #FE6500;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(254, 101, 0, 0.5);
}

/* Current page */
.pagination ul li span.current {
  background: #FE6500;
  color: #fff;
  box-shadow: 0 0 20px rgba(254, 101, 0, 0.5);
  transform: scale(1.1);
}

/* Previous/Next special styling */
.pagination ul li:first-child a,
.pagination ul li:last-child a {
  width: auto;
  padding: 0 20px;
  border-radius: 25px;
}


.post-meta {
  color: var(--altwhite);
}







/* Custom Scrollbar Styles */

/* For Webkit browsers (Chrome, Safari, newer Edge) */
.row.flex-nowrap.overflow-auto::-webkit-scrollbar {
  height: 8px; /* Adjust this value for thickness/height of the horizontal scrollbar */ 
}

.song-title a:hover {
  text-decoration:none;
}   

.post-date, .post-author {
  font-size: var(--smallmeta);
}

.artiste-name a{
  color: var(--orange) !important;
}


.header-logo {
    width: 150px;
    height: auto; /* maintains aspect ratio */
    max-width: 50%; /* responsive */
}