* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================
   PNG STATION PAGE LOADER
   ========================== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff; /* same as PNGEgg white background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 150px; /* adjust size to match your logo */
  height: auto;
  animation: fadeInLogo 1.5s ease-in-out infinite alternate;
}

/* Gentle breathing animation for the logo */
@keyframes fadeInLogo {
  0% {
    opacity: 0.7;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  top: 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-align: center;
}

.logo a {
  display: inline-block;
}

.logo-img {
  height: 44px; /* adjust size as needed */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05); /* small hover zoom */
}

.search-form {
  width: 750px;
  max-width: 750px;
}

.search-container {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 30px;
  padding: 6px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.search-container:focus-within {
  background: #fff;
  border-color: #3498db;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.search-bar {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 20px;
  font-size: 15px;
  outline: none;
  color: #333;
}

.search-bar::placeholder {
  color: #999;
}

.search-btn {
  border: none;
  font-size: 25px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 10px;
  background: none;
}

.search-btn svg {
  display: block;
  margin: auto;
}
/* Main Content */
main {
  padding: 30px 20px;
  min-height: calc(100vh - 200px);
}

.page-title {
  margin: 30px 0px 30px 0px;
  font-size: 32px;
  color: #2c3e50;
  text-align: center;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 10px; /* small base row height */
  gap: 15px;
}

.image-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  grid-row-end: span var(--row-span);
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
}

.image-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(45deg, #e8e8e8 25%, transparent 25%),
    linear-gradient(-45deg, #e8e8e8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8e8e8 75%),
    linear-gradient(-45deg, transparent 75%, #e8e8e8 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: #f5f5f5;
  padding: 0; /* remove extra space */
  height: auto; /* allow auto height */
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.image-card:hover .image-overlay {
  opacity: 1;
}

.view-btn {
  color: #fff;
  background: #3498db;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}

/* Image info section below image */
.image-card-info {
  padding: 12px 15px;
  background: #fff;
}

.image-card-title {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 36px;
  text-align: center; /* ✅ Center align title */
  font-weight: 600;
}

.image-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #333;
  background: #f5f7fa;
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 6px;
  transition: background 0.3s ease;
}

.image-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.image-card-meta svg {
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.image-card:hover .image-card-meta svg {
  transform: scale(1.15);
  opacity: 1;
}

.image-card-size {
  display: flex;
  align-items: center;
  gap: 5px;
}

.image-card-filesize {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.pagination a,
.pagination span.current,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  background: #ecf0f1;
  color: #2c3e50;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination a:hover {
  background: #3498db;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.pagination span.current {
  background: #3498db;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Ellipsis style */
.pagination span.ellipsis {
  background: transparent;
  color: #666;
  box-shadow: none;
  pointer-events: none;
}

/* Hide mobile pagination on desktop */
.pagination .mobile {
  display: none;
}

/* Hide desktop pagination on mobile */
@media (max-width: 768px) {
  .pagination .desktop {
    display: none;
  }
  .pagination .mobile {
    display: inline;
  }

  /* Adjust spacing for mobile pagination */
  .pagination a,
  .pagination span.current,
  .pagination span.ellipsis {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* Optional: consistent ellipsis spacing */
.pagination span.ellipsis {
  margin: 0 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }

  .image-card a {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }

  .image-card-info {
    padding: 8px 10px;
  }

  .image-card-title {
    font-size: 12px;
    height: 32px;
  }
}
/* Breadcrumb */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
}

.breadcrumb a {
  color: #3498db;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Image Detail Page */
.detail-container {
  display: grid;
  max-width: 1500px;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.image-display {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image {
  width: 100%;
  max-width: 600px;
  background: linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
    linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
}

.main-image img {
  width: 100%;
  display: block;
}

.image-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.image-title {
  font-size: 28px;
  color: #2c3e50;
}

.image-description {
  color: #666;
  line-height: 1.8;
}

.image-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item .label {
  font-weight: 600;
  color: #2c3e50;
}

.detail-item .value {
  color: #666;
}

.download-btn.full-width {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  background: #3498db;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
}

.download-btn.full-width:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

/* Download Section */
.download-section {
  display: flex;
  gap: 15px;
}

.download-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.download-btn.primary {
  background: #3498db;
  color: #fff;
}

.download-btn.primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.download-btn.secondary {
  background: #ecf0f1;
  color: #2c3e50;
}

.download-btn.secondary:hover {
  background: #bdc3c7;
}

/* PNG Keywords Section - Subtle Highlight */
.png-keywords {
  margin-top: 20px;
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 8px;
}

.png-keywords h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* PNG Keywords Section - Square Button Style */
.keyword {
  background: #d6eaf8; /* light blue */
  color: #2c3e50; /* dark text for readability */
  padding: 8px 14px; /* consistent with download buttons */
  border-radius: 5px; /* same as download buttons */
  font-size: 13px;
  font-weight: 500;
  cursor: default;
  transition: all 0.3s;
}

.keyword:hover {
  background: #a9d0f5; /* slightly darker blue on hover */
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .keywords-list {
    gap: 8px;
  }

  .keyword {
    font-size: 12px;
    padding: 4px 10px;
  }
}

@media (max-width: 480px) {
  .keywords-list {
    gap: 6px;
  }

  .keyword {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* Size Options */
.size-options h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-btn {
  padding: 8px 15px;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.size-btn:hover {
  border-color: #3498db;
  color: #3498db;
}

.size-btn.active {
  background: #3498db;
  color: #fff;
  border-color: #3498db;
}

/* Related Section */
.related-section {
  margin-top: 50px;
}

.related-section h2 {
  margin-bottom: 25px;
  font-size: 26px;
  color: #2c3e50;
}

/* Footer */
footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .detail-container {
    grid-template-columns: 1fr;
  }

  .search-bar {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  header .container {
    flex-direction: column;
    gap: 15px;
  }

  .search-form {
    max-width: 100%; /* Override the 750px limit */
    padding: 0; /* Remove padding since container has it */
  }

  .search-container {
    padding: 5px; /* Slightly reduce padding on mobile */
  }

  .search-bar {
    width: 100%;
    padding: 10px 15px; /* Adjust padding for mobile */
    font-size: 14px; /* Slightly smaller text on mobile */
  }

  .search-btn {
    margin-right: 5px; /* Reduce margin on mobile */
  }

  .search-btn svg {
    width: 24px; /* Slightly smaller icon on mobile */
    height: 24px;
  }

  .search-bar {
    width: 100%;
  }

  .download-section {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .search-form {
    width: 100%;
    max-width: 100%; /* Override the 750px limit */
    padding: 0; /* Remove padding since container has it */
  }


  .page-title {
    font-size: 24px;
  }

  .image-title {
    font-size: 22px;
  }
}
