/* Art Assets Page Styling */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-image: url("../../images/bg/aboutcorridor.webp");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: #ffffff;
  overflow-y: auto;
}

/* Dark overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

main {
  padding: 80px 20px;
}

/* Main Container */
#art-container,
#art-assets-container {
  max-width: 1400px;
  margin: 60px auto;
  padding: 45px 35px;
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.92), rgba(45, 45, 60, 0.92));
  border-radius: 20px;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: fadeIn 1s ease;
}

/* Header Section */
.art-header {
  text-align: center;
  margin-bottom: 50px;
}

.art-header h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff, #9370db, #8a2be2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(147, 112, 219, 0.7);
  letter-spacing: 1px;
  font-weight: 800;
}

.art-tagline {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Subcategory Navigation */
.subcategory-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
}

.subcategory-nav::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 120px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0),
    #9370db,
    #8a2be2,
    rgba(255, 255, 255, 0)
  );
  box-shadow: 0 0 15px rgba(147, 112, 219, 0.5);
}

.subcategory-btn {
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 25px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.subcategory-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.subcategory-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(147, 112, 219, 0.3);
  border-color: rgba(147, 112, 219, 0.5);
}

.subcategory-btn:hover::before {
  left: 100%;
}

.subcategory-btn.active {
  background: linear-gradient(135deg, #9370db, #8a2be2);
  border: 2px solid rgba(147, 112, 219, 0.7);
  box-shadow: 
    0 6px 25px rgba(147, 112, 219, 0.5),
    0 0 30px rgba(138, 43, 226, 0.3);
  transform: translateY(-2px);
}

/* Section Styling */
.asset-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  margin-bottom: 60px;
}

.asset-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  margin-bottom: 40px;
  position: relative;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff, #ff85c5, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 15px rgba(147, 112, 219, 0.6);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-line {
  height: 3px;
  width: 120px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0),
    #ff69b4,
    #a855f7,
    rgba(255, 255, 255, 0)
  );
  margin: 0 auto;
  box-shadow: 0 0 15px rgba(147, 112, 219, 0.5);
}

/* Search and Filter */
.search-filter-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 auto 35px;
  width: 100%;
  max-width: 900px;
  align-items: stretch;
}

.search-box {
  display: flex;
  gap: 12px;
  width: 100%;
}

.search-box input {
  flex: 1;
  padding: 14px 22px;
  border: 2px solid rgba(147, 112, 219, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.05rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.search-box input:focus {
  outline: none;
  border-color: #9370db;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 0 20px rgba(147, 112, 219, 0.6),
    0 4px 15px rgba(147, 112, 219, 0.3);
  transform: translateY(-2px);
}

.search-box button {
  padding: 14px 32px;
  background: linear-gradient(135deg, #9370db, #8a2be2);
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(147, 112, 219, 0.4);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: fit-content;
}

.search-box button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.search-box button:hover {
  background: linear-gradient(135deg, #a982e0, #9a42f3);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(147, 112, 219, 0.5),
    0 0 30px rgba(138, 43, 226, 0.4);
}

.search-box button:hover::before {
  left: 100%;
}

.search-box button:active {
  transform: translateY(-1px);
}

.filter-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.filter-container select {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(147, 112, 219, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  min-width: 180px;
}

.filter-container select option {
  background-color: #2a2a3a;
  color: white;
  padding: 10px;
}

.filter-container select:hover {
  border-color: #9370db;
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(147, 112, 219, 0.3);
}

.filter-container select:focus {
  outline: none;
  border-color: #9370db;
  box-shadow: 
    0 0 20px rgba(147, 112, 219, 0.6),
    0 4px 15px rgba(147, 112, 219, 0.3);
}

/* Art Grid */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 35px;
  position: relative;
  margin-bottom: 50px;
}

/* Grid refreshing animation */
.art-grid.refreshing {
  opacity: 0.6;
  transition: opacity 0.3s ease;
  position: relative;
  animation: flash-highlight 0.6s ease-out;
}

.art-grid.refreshing::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(147, 112, 219, 0.3);
  border-radius: 50%;
  border-top-color: #ff69b4;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(147, 112, 219, 0.5);
}

@keyframes flash-highlight {
  0% {
    background-color: rgba(147, 112, 219, 0.15);
  }
  100% {
    background-color: transparent;
  }
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Art Card Styling */
.art-card {
  background: linear-gradient(145deg, rgba(35, 35, 50, 0.9), rgba(45, 45, 65, 0.9));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 10px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeIn 0.8s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.art-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(147, 112, 219, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.art-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(147, 112, 219, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(147, 112, 219, 0.6);
}

.art-card:hover::before {
  opacity: 1;
}

/* Art preview area at the top of each card */
.art-preview {
  height: 220px;
  background: linear-gradient(to bottom, rgba(147, 112, 219, 0.25), rgba(30, 30, 40, 0.25));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.art-card:hover .art-preview {
  background: linear-gradient(to bottom, rgba(147, 112, 219, 0.35), rgba(30, 30, 40, 0.35));
}

.art-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.art-card:hover .art-preview img {
  transform: scale(1.12);
}

.art-details {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.art-card h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  color: #ffffff;
  line-height: 1.3;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #9370db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.art-card:hover h3 {
  text-shadow: 0 0 20px rgba(147, 112, 219, 0.8);
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}

.art-author,
.art-category,
.art-resolution {
  color: #e8e8e8;
  font-size: 0.95rem;
  font-weight: 500;
  background: rgba(147, 112, 219, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}

.art-card:hover .art-author,
.art-card:hover .art-category,
.art-card:hover .art-resolution {
  background: rgba(147, 112, 219, 0.25);
  color: #ffffff;
}

.art-controls {
  margin-top: auto;
  display: flex;
  gap: 12px;
  padding-top: 10px;
}

.preview-button,
.download-button {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.preview-button::before,
.download-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.preview-button {
  background: linear-gradient(135deg, #9370db, #8a2be2);
  border: none;
  box-shadow: 0 4px 15px rgba(147, 112, 219, 0.4);
}

.preview-button:hover {
  background: linear-gradient(135deg, #a982e0, #9a42f3);
  transform: translateY(-3px);
  box-shadow: 
    0 6px 20px rgba(147, 112, 219, 0.6),
    0 0 25px rgba(138, 43, 226, 0.4);
}

.preview-button:hover::before {
  left: 100%;
}

.download-button {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.download-button:hover::before {
  left: 100%;
}

/* No results message */
.no-results {
  text-align: center;
  padding: 50px 40px;
  background: linear-gradient(145deg, rgba(35, 35, 50, 0.9), rgba(45, 45, 65, 0.9));
  border-radius: 16px;
  margin: 30px auto;
  max-width: 600px;
  box-shadow: 
    0 10px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(147, 112, 219, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.no-results h2 {
  background: linear-gradient(135deg, #ffffff, #9370db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0 40px;
  gap: 25px;
  flex-wrap: wrap;
}

.pagination-button {
  padding: 14px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #9370db, #8a2be2);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(147, 112, 219, 0.4);
  position: relative;
  overflow: hidden;
}

.pagination-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.pagination-button:hover {
  background: linear-gradient(135deg, #a982e0, #9a42f3);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(147, 112, 219, 0.6),
    0 0 30px rgba(138, 43, 226, 0.4);
}

.pagination-button:hover::before {
  left: 100%;
}

.pagination-button:active {
  transform: translateY(-1px);
}

.pagination-button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  background: linear-gradient(135deg, #555, #777);
  box-shadow: none;
}

.pagination-button[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.pagination-button[disabled]::before {
  display: none;
}

.pagination-info {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Preview Modal */.pagination-info {
  color: #ffffff;
  font-size: 1rem;
}

/* Modal for full-size image preview */
.preview-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.preview-modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  position: relative;
  animation: zoomIn 0.3s ease;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid rgba(147, 112, 219, 0.5);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  background: rgba(20, 20, 30, 0.6);
}

.modal-caption {
  color: white;
  margin-top: 15px;
  font-size: 1.1rem;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  background: rgba(147, 112, 219, 0.6);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: rgba(147, 112, 219, 0.9);
  transform: rotate(90deg);
}

/* Footer Section */
.art-footer {
  background: rgba(30, 30, 40, 0.85);
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.art-footer h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(147, 112, 219, 0.4);
}

.art-footer p {
  max-width: 700px;
  margin: 0 auto 25px;
  font-size: 1.1rem;
  color: #e0e0e0;
}

.contribute-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    rgba(147, 112, 219, 0.8),
    rgba(138, 43, 226, 0.8)
  );
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contribute-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  background: linear-gradient(
    135deg,
    rgba(147, 112, 219, 1),
    rgba(138, 43, 226, 1)
  );
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .art-header h1 {
    font-size: 2.2rem;
  }

  .art-tagline {
    font-size: 1rem;
  }

  .subcategory-nav {
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto 30px;
  }

  .subcategory-btn {
    width: 100%;
    padding: 10px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

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

  .search-box,
  .filter-container {
    width: 100%;
  }

  .art-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .art-card h3 {
    font-size: 1.2rem;
  }

  .art-preview {
    height: 150px;
  }

  .art-footer {
    padding: 30px 20px;
  }

  .art-footer h2 {
    font-size: 1.8rem;
  }

  .art-footer p {
    font-size: 1rem;
  }

  .contribute-button {
    width: 100%;
    padding: 12px 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .art-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 2560px) {
  #art-container {
    max-width: 1800px;
  }

  .art-header h1 {
    font-size: 4rem;
  }

  .art-tagline {
    font-size: 1.5rem;
    max-width: 1000px;
  }

  .subcategory-btn {
    font-size: 1.3rem;
    padding: 15px 30px;
  }

  .section-header h2 {
    font-size: 2.6rem;
  }

  .art-grid {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  }

  .art-card h3 {
    font-size: 1.6rem;
  }
}
