/**
 * Theme Name: Fish Forever
 * Template:   salient
 */

 /* TITLE @ SINGLE LEARNING LIBRARY */
  #library-single .heading-title {
    padding-bottom: 0;
    margin-bottom: 0;
  }
  #library-single h1 {
    text-align: left;
  }


 /* OPEN BUTTON @ SINGLE LEARNING LIBRARY */
 #library-single .cta-box {
  margin-top: 44px;
 }
 #library-single .cta-box a {
  padding: 16px 32px;
  font-size: 16px;
  margin-right: 16px;
 }

/* SIDEBAR @ SINGLE LEARNING LIBRARY */

@media screen and (max-width: 999px) {
 #library-single #block-1 {
  margin-top: 40px;
 }
}
@media screen and (max-width:575px) {
   #library-single .cta-box .back {
    margin-top: 16px;
 }
}

/* LEARNING LIBRARY POSTS / ARCHIVE */
#library-posts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  background-color: transparent;
}
#library-posts .post {
  padding: 30px;
  margin: 25px;
  background-color: white;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .14);
  border-radius: 5px;
  overflow: hidden;
}
#library-posts .post h3 {
  color: #000;
  margin: 12px 0 10px;
}
#library-posts .post .content {
  font-size: 18.7px;
  color: #000;
}
#library-posts .post.hidden {
  display: none;
}
#library-posts .size,
#library-posts .pageSize {
  display: none;
}

/* LOAD MORE */
#library-posts .btn-container {
  text-align: center;
  width: 100%;
  margin: 30px 0;
}
#library-posts .btn-container button {
  background-color: #0074bb;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
}
#library-posts .btn-container button:hover {
  background-color: #005fa3;
}

/* LEARNING LIBRARY SIDEBAR LAYOUT */
.library-layout {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.library-sidebar {
  flex: 0 0 250px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.library-sidebar h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #333;
}

.filter-group {
  margin-bottom: 15px;
}

.filter-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.resource-filter-dropdown,
.theme-filter-dropdown,
.media-filter-dropdown,
.search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.filter-actions {
  margin-top: 32px;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-secondary:hover {
  background: #5a6268;
}

.library-content {
  flex: 1;
  min-width: 0;
}

.posts-container {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 20px;
  margin-bottom: 20px;
}

.btn-container {
  text-align: center;
  margin-top: 30px;
}

/* Empty state styling */
.no-posts-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
  margin: 20px 0;
}

.empty-state h3 {
  color: #6c757d;
  margin: 0 0 10px 0;
  font-size: 24px;
}

.empty-state p {
  color: #868e96;
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.5;
}

#reset-filters {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

#reset-filters:hover {
  background: #0056b3;
}

/* Responsive design */

/* Mobile-first approach */
.library-layout {
  flex-direction: column;
  gap: 15px;
}

.library-sidebar {
  flex: none;
  position: static;
  padding: 15px;
  margin-bottom: 10px;
}

.library-sidebar h3 {
  text-align: center;
  margin-bottom: 15px;
}

.filter-group {
  margin-bottom: 12px;
}

.posts-container {
  grid-template-columns: 1fr;
  gap: 15px;
}

/* Tablet breakpoint - 768px and up */
@media (min-width: 768px) {
  .library-layout {
    flex-direction: row;
    gap: 20px;
  }
  
  .library-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 20px;
    padding: 20px;
    margin-bottom: 0;
    width: 280px;
  }
  
  .library-sidebar h3 {
    text-align: left;
    margin-bottom: 15px;
  }
  
  .filter-group {
    margin-bottom: 15px;
  }
  
  .posts-container {
    grid-template-columns: 1fr;
    gap:    0px;
  }
}

@media screen and (max-width: 767px) {
  #library-posts .post {
    margin: 25px 0;
  }
}

/* Desktop breakpoint - 1024px and up */
@media (min-width: 1024px) {
  .library-sidebar {
    flex: 0 0 250px;
  }
  
  .posts-container {
    grid-template-columns: 50% 50%;
  }
}

/* Large desktop breakpoint - 1200px and up */
@media (min-width: 1200px) {
  .library-layout {
    gap: 30px;
  }
  
  .library-sidebar {
    flex: 0 0 280px;
    padding: 25px;
  }
}

/* Extra small devices - max 480px */
@media (max-width: 480px) {
  .library-sidebar {
    padding: 12px;
    border-radius: 6px;
  }
  
  .filter-group label {
    font-size: 13px;
  }
  
  .resource-filter-dropdown,
  .theme-filter-dropdown,
  .media-filter-dropdown,
  .search-input {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .btn-secondary {
    padding: 6px 12px;
    font-size: 13px;
    width: 100%;
  }
  
  .posts-container {
    gap: 12px;
  }
}

/* POST ITEM ADJUSTMENTS */
#library-posts .post span {
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
}