/* Reset & Global */
body {
  font-family: sans-serif;
  margin: 0;
  background-color: #edf6fc;
  min-height: 100vh;
  padding: 100px 70px 50px;
  color: #000;
}
/* Grid */

@media (max-width: 768px) {
  body {
    padding: 100px 20px 50px;
  }
}

.sort-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.sort-catagory-item {
  background: linear-gradient(
    to bottom right,
    #eed1f7 0%, /* sort background */
    #ebeaf8 75%,
    #b9e3f5 100% /* bottom-right accent */
  );
  border: 1px solid #ffffff;
  padding: 28px 25px;
  border-radius: 12px;

  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  text-decoration: none;
  color: inherit;
  min-height: 100px;

  /* ✨ Glow Effect (bottom-right using #ebf4f8) */
  box-shadow:
    18px 18px 40px rgba(235,244,248,0.85), /* bottom-right glow using #ebf4f8 */
    0 0 8px rgba(235,244,248,0.6),
    inset 0 0 8px rgba(235,244,248,0.18);

  transition: 0.3s ease;

  margin-bottom: 10px;
}

/* Hover More Glow */
.sort-catagory-item:hover {
  box-shadow:
    24px 24px 60px rgba(235,244,248,0.95), /* stronger bottom-right glow on hover */
    0 0 24px rgba(235,244,248,0.7),
    inset 0 0 30px rgba(235,244,248,0.28);
   transform: scale(1.0050); /* subtle zoom in */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sort-catagory-title-h1 {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 600;
  margin: 20px 0 15px 0;
  padding-left: 5px;
  color: #525151;
  margin-bottom: 10px;
}

/* Circle before text */
.sort-catagory-title-h1::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #039723, #46e0e5);
  margin-right: 10px;
}



/* Icon */
.sort-catagory-icon {
  font-size: 48px;
  color: #6b5bcc;
  flex-shrink: 0;
  width: 60px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 20px;
}

/* Content */
.sort-catagory-content {
  flex-grow: 1;
  text-align: left;
  z-index: 1;
  position: relative;
  padding-right: 140px; /* Prevent text going under right panel */
  overflow-wrap: break-word;
}

.sort-catagory-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.sort-catagory-desc {
  font-size: 18px;
  color: #555;
  line-height: 1.3;
}

/* RIGHT INFO PANEL */
.sort-info-panel {
  position: absolute;
  right: 15px;
  top: 15px;
  bottom: 15px; /* ⭐ Full height panel */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ⭐ Top info & Bottom actions perfect split */
  align-items: flex-end; /* ⭐ Full Right Align */
}

/* TOP INFO */
.sort-top-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(120, 90, 200, 0.4);
  border-radius: 10px;
  background: rgba(160, 80, 255, 0.1);
  backdrop-filter: blur(3px);
}

.sort-info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #444;
}

.sort-info-row i {
  font-size: 20px;
  color: #6b5bcc;
}

/* BOTTOM ACTIONS (Vertical Icons) */
.sort-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(120, 90, 200, 0.4);
  border-radius: 50%;
  background: rgba(160, 80, 255, 0.08);
  backdrop-filter: blur(3px);

  align-items: flex-end; /* ⭐ Right aligned icons */
}


.sort-bottom-actions i {
  font-size: 22px;
  color: #6b5bcc;
  cursor: pointer;
  transition: .2s;
}

.sort-bottom-actions i:hover {
  color: #301f78;
}
.sort-eye-count {
  font-weight: bold;
  color: #6b5bcc;
}

.sort-file-count {
  margin-right: 5px;
  font-weight: bold;
  color: #6b5bcc;
}
/* MOBILE VERSION */
@media (max-width: 600px) {

.sort-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  gap: 10px;
}
  .sort-catagory-item {
  background: linear-gradient(
    to bottom right,
    #ebeaf8 0%, /* sort background */
    #ebeaf8 75%,
    #ebf4f8 100% /* bottom-right accent */
  );
  border: 1px solid #ffffff;
  padding: 10px 8px;
  min-height: 40px;
  border-radius: 12px;

  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  text-decoration: none;
  box-shadow:
    2px 2px 2px rgba(235,244,248,0.75), /* mobile bottom-right glow */
    0 0 3px rgba(235,244,248,0.5),
    inset 0 0 2px rgba(235,244,248,0.12);

  margin-bottom: 8px;
}

/* Hover More Glow */
.sort-catagory-item:hover {
  box-shadow:
    7px 7px 20px rgba(235,244,248,0.85),
    0 0 8px rgba(235,244,248,0.6),
    inset 0 0 7px rgba(235,244,248,0.18);
   transform: scale(1.0050); /* subtle zoom in */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sort-catagory-title-h1 {
  font-size: 18px;
  color: #494949;
  margin-bottom: 5px;
  font-family: "Alkatra";
  margin-bottom: 5px;
}
  .sort-catagory-icon {
    font-size: 16px;
    width: 30px;
    margin-bottom: 5px;
   
  }

  .sort-catagory-content {
    padding-right: 40px; /* Slight reduce for mobile */
  }

  .sort-catagory-title {
    font-size: 12px;
  }

  .sort-catagory-desc {
    font-size: 8px;
  }

  .sort-info-panel {
    right: 8px;
    top: 10px;
    gap: 10px;
  }
  .sort-top-info {
 padding: 3px 4px;
  }

  .sort-bottom-actions {
    padding: 3px 4px;
    gap: 5px;
 
  }

  .sort-bottom-actions i {
    font-size: 8px;
  }

  .sort-info-row {
  font-size: 8px;

}

.sort-info-row i {
  font-size: 8px;
}
}

/* Dark Mode */


html.dark-mode .sort-catagory-item {
  background: linear-gradient(
      135deg,
      rgba(120, 50, 200, 0.25) 0%,   /* Soft Dark Purple */
      rgba(30, 30, 30, 0.9) 50%,      /* Dark Center */
      rgba(150, 60, 250, 0.2) 100%    /* Light Purple */
  );
  border: 1px solid rgba(160, 80, 255, 0.4);
  color: #f1f1f1;
  box-shadow:
    0 0 12px rgba(160, 80, 255, 0.35),
    0 0 25px rgba(140, 100, 255, 0.3),
    inset 0 0 22px rgba(200, 120, 255, 0.22);
  transition: 0.3s ease;
}

html.dark-mode .sort-catagory-item:hover {
  box-shadow:
    0 0 18px rgba(209, 183, 241, 0.55),
    0 0 35px rgba(180, 80, 226, 0.4),
    inset 0 0 30px rgba(160, 80, 255, 0.28);
  transform: scale(1.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Icon */
html.dark-mode .sort-catagory-icon {
  color: #cbbfff;
}

/* Content */
html.dark-mode .sort-catagory-title {
  color: #f1f1f1;
}

html.dark-mode .sort-catagory-desc {
  color: #dcdcdc;
}

/* Right Info Panel */

html.dark-mode .sort-top-info {
  background: rgba(80, 50, 120, 0.2);
  border: 1px solid rgba(160, 80, 255, 0.4);
}

html.dark-mode .sort-info-row {
  color: #f1f1f1;
}

html.dark-mode .sort-info-row i {
  color: #cbbfff;
}

/* Bottom Actions */
html.dark-mode .sort-bottom-actions {
  background: rgba(80, 50, 120, 0.15);
  border: 1px solid rgba(160, 80, 255, 0.4);
}

html.dark-mode .sort-bottom-actions i {
  color: #cbbfff;
}

html.dark-mode .sort-bottom-actions i:hover {
  color: #ff8fff;
}
html.dark-mode .sort-catagory-title-h1 {color: #cbbfff;}

