@charset "UTF-8";
/* ============================================================================
   PORTFOLIO ARCHIVE - Clean Modern Design
   Archive and Category Pages Styles
   ========================================================================== */
.portfolio-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

/* ============================================================================
   BREADCRUMBS CUSTOMIZATION FOR ARCHIVE
   Note: Base breadcrumb styles are in base.scss
   ========================================================================== */
.portfolio-breadcrumbs-wrapper {
  margin-bottom: 30px;
}

/* Archive-specific breadcrumb title size */
.portfolio-breadcrumbs-title {
  font-size: 1.75rem;
}

/* ============================================================================
   ARCHIVE HEADER SECTION
   ========================================================================== */
.portfolio-archive-header {
  margin-bottom: 50px;
}

/* Linia 1: Tytuł wyśrodkowany */
.portfolio-header-title {
  text-align: center;
  margin-bottom: 20px;
}

.portfolio-archive-header .page-title {
  font-size: 1.75rem;
  margin: 15px 0 0 0;
  font-weight: 700;
  color: #1a1a1a;
}

/* Linia 2: Przełącznik filtra po prawej */
.portfolio-filter-toggle-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.taxonomy-description {
  max-width: 800px;
  margin: 0 auto;
  color: #666;
  line-height: 1.6;
}

/* ============================================================================
   FILTER TOGGLE - Toggle Switch Style
   ========================================================================== */
.portfolio-filter-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Toggle Label - Plain text */
.toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

/* Toggle Switch - The clickable button */
.filter-toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #ccc;
  border-radius: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none !important;
  display: block;
  flex-shrink: 0;
  border: none;
  padding: 0;
  outline: none;
}
.filter-toggle-switch:hover {
  background: #b0b0b0;
}
.filter-toggle-switch.active {
  background: #4CAF50;
}
.filter-toggle-switch.active:hover {
  background: #45a049;
}
.filter-toggle-switch.active .toggle-slider {
  transform: translateX(20px);
}

/* Toggle Slider - The moving circle */
.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hidden items when filtered */
.portfolio-item.filtered-hidden {
  display: none;
}

/* Mobile - keep same 3-line layout */
@media (max-width: 768px) {
  .portfolio-filter-toggle-wrapper {
    justify-content: center;
  }
}
/* ============================================================================
   CATEGORIES GRID - Under Header
   ========================================================================== */
.portfolio-categories-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
}

.portfolio-category-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  /* hover and active styles set via inline style from settings */
}

.portfolio-category-name {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  /* color set via inline style from settings */
}

/* ============================================================================
   PORTFOLIO GRID LAYOUT
   ========================================================================== */
/* Grid Layout - Fixed 3 columns */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 50px;
}

/* Portfolio Item Card */
.portfolio-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.12);
}
.portfolio-item:hover .portfolio-item-image img {
  transform: scale(1.08);
}

.portfolio-item-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}
.portfolio-item-link:hover {
  text-decoration: none !important;
  /* title color set via inline style from settings */
}

/* Image */
.portfolio-item-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
}
.portfolio-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.portfolio-no-image .dashicons {
  font-size: 80px;
  width: 80px;
  height: 80px;
  color: rgba(255, 255, 255, 0.5);
}

/* Content */
.portfolio-item-content {
  padding: 24px;
  text-align: center;
}

.portfolio-item-title {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

/* ============================================================================
   PAGINATION
   ========================================================================== */
.portfolio-pagination {
  text-align: center;
  margin-top: 50px;
}

.portfolio-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portfolio-pagination .page-numbers {
  display: inline-block;
  padding: 8px 15px;
  background: #f0f0f0;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: background 0.3s;
}
.portfolio-pagination .page-numbers:hover, .portfolio-pagination .page-numbers.current {
  background: #333;
  color: #fff;
}

/* ============================================================================
   NO RESULTS MESSAGE
   ========================================================================== */
.no-results {
  text-align: center;
  padding: 60px 20px;
}
.no-results p {
  font-size: 1.2rem;
  color: #666;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  .portfolio-archive-header .page-title {
    font-size: 1.8rem;
  }
}
@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
