/**
                          ,
   ,-.       _,---._ __  / \
  /  )    .-'       `./ /   \
 (  (   ,'            `/    /|
  \  `-"             \'\   / |
   `.              ,  \ \ /  |
    /`.          ,'-`----Y   |
   (            ;        |   '
   |  ,-.    ,-'         |  /
   |  | (   |            | /
   )  |  \  `.___________|/
   `--'   `--'
    I'm aitji (also known as **Suriya Inchoo**)
    the host of the following websites
    * https://aitji.is-a.dev
    * https://pr.thatako.net or http://pr.thatako.ac.th

    If you're interested in contributing to the project,
    you're welcome to reach out to me on Discord my username is "aitji".  
    You can also submit an inquiry through the support ticket system available at https://aitji.is-a.dev/discord

    Further information about the project and licensing
    can be found at "https://council.thatako.net/LICENSE"

    Sincerely,  
    Suriya Inchoo (aitji)
*/

.search-sort-container {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.5rem;
}

.submission-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-card);
}

.submission-card:hover {
  box-shadow: var(--shadow-md);
}

.submission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timestamp {
  color: var(--sub-text-color);
  font-size: 0.9rem;
}

.status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-success {
  background: var(--ok-color);
  color: white;
}

.status-pending {
  background: var(--warning-color);
  color: white;
}

.status-rejected {
  background: var(--danger-color);
  color: white;
}

.problem-text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.admin-note {
  background: var(--light-blue);
  padding: 0.8rem;
  border-radius: 8px;
  margin-top: 1rem;
  border-left: 4px solid var(--blue);
}

.reactions-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-card);
}

.reaction-btn {
  background: var(--light-bg);
  border: 2px solid var(--border-card);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.reaction-btn:hover:not(.voted):not(:disabled) {
  background: var(--light-blue-hover);
  border-color: var(--blue);
}

.reaction-btn.voted {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.reaction-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.reaction-btn.sending {
  opacity: 0.7;
}

.reaction-upvote.voted {
  background: var(--ok-color);
  border-color: var(--ok-color);
}

.reaction-laugh.voted {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.reaction-downvote.voted {
  background: var(--danger-color);
  border-color: var(--danger-color);
}

.reaction-trash.voted {
  background: var(--dark-red);
  border-color: var(--dark-red);
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.page-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  min-width: 40px;
  text-align: center;
}

.page-btn:hover:not(:disabled) {
  background: var(--light-blue-hover);
  border-color: var(--blue);
}

.page-btn.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-input {
  width: 80px;
  text-align: center;
  border: 1px solid var(--form-input-border);
  border-radius: 8px;
  padding: 0.5rem;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.media-gallery {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.media-link {
  background: var(--light-blue);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--blue);
  transition: var(--transition);
}

.media-link:hover {
  background: var(--light-blue-hover);
  color: var(--secondary-color);
}

.score-display {
  font-weight: 600;
  color: var(--sub-text-color);
}

.marginTop {
  margin-top: 4rem;
}

.media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.media-item {
  position: relative;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #eee;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-item:hover .overlay {
  opacity: 1;
}

.media-item .overlay i {
  color: white;
  font-size: 24px;
}

.hover-shadow,
.action-icon {
  transition: var(--transition-normal)
}
.hover-shadow:hover {
  box-shadow: var(--shadow-md)
}

.hover-shadow:hover .action-icon {
  transform: scale(1.1) rotate(5deg);
}
.arrow-icon {
  transition: transform 0.3s ease;
}
.hover-shadow:hover .arrow-icon {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .submission-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-sort-container {
    margin-top: 2.5rem;
  }

  .container-noStyle {
    padding: 0 !important;
  }

  .pagination-container {
    font-size: 0.9rem;
  }

  .reaction-btn {
    padding: 0.2rem 0.35rem;
    border-radius: 8px;
    font-size: 0.7rem;
  }

  .status-badge {
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-size: 0.75rem;
  }

  .problem-text,
  .admin-note {
    font-size: 0.95rem;
  }
}
