/* gematerial2 Content Styles for MOD Thanks
---------------------------------------- */

/* Thankslist pagination - mobile stacking like memberlist */
.thankslist-card .pagination {
  width: 100%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.thankslist-card .pagination .nav-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: var(--spacing-xs) 0;
}

.thankslist-card .pagination .nav-links > * {
  scroll-snap-align: center;
  flex-shrink: 0;
}

.thankslist-card .pagination .nav-links a,
.thankslist-card .pagination .nav-links span {
  min-width: auto;
  min-height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 769px) {
  .thankslist-card .pagination {
    width: auto;
    flex-direction: row;
    text-align: left;
    margin-left: auto;
  }

  .thankslist-card .pagination .nav-links {
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  .thankslist-card .pagination .nav-links a,
  .thankslist-card .pagination .nav-links span {
    min-width: auto;
    min-height: auto;
  }
}

/* Thankslist page - card styling like memberlist */
.thankslist-card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-elevation);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}

/* First member item gets border-top */
.thankslist-card .memberlist .member-item:first-child {
  border-top: 1px solid var(--divider-color);
}

/* Last member item gets border-bottom */
.thankslist-card .memberlist .member-item:last-child {
  border-bottom: 1px solid var(--divider-color);
}

/* Mobile layout for thankslist member items */

.thankslist-card .member-avatar {
  flex-shrink: 0;
}

.thankslist-card .member-info {
  flex: 1;
  min-width: 0;
}

/* Stats: full width below on mobile */
.thankslist-card .member-stats {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xs);
  padding-top: var(--spacing-xs);
  border-top: 1px solid var(--divider-color);
}

.thankslist-card .member-stats .stat-item {
  text-align: center;
  min-width: 60px;
}

.thankslist-card .member-stats .stat-value {
  font-weight: 600;
  font-size: 14px;
}

.thankslist-card .member-stats .stat-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* Desktop: inline stats on the right */
@media (min-width: 769px) {
  .thankslist-card .member-item {
    flex-wrap: nowrap;
    align-items: center;
  }
  
  .thankslist-card .member-stats {
    width: auto;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    margin-left: auto;
    justify-content: flex-end;
  }
  
  .thankslist-card .member-stats .stat-item {
    min-width: 80px;
  }
}

/* Thanks results (given/received) - search results styling */
.thankslist-card .return-link {
  margin-top: var(--spacing-sm);
}

.thankslist-card .return-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
}

.thankslist-card .return-link a:hover {
  text-decoration: underline;
}

.thankslist-card .search-results-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
}

.thankslist-card .search-post-item {
  border: 1px solid var(--divider-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  transition: border-color var(--transition-short);
}

.thankslist-card .search-post-item:hover {
  border-color: var(--primary-light);
}

.thankslist-card .search-post-item.reported {
  border-left: 3px solid var(--error-color);
}

.thankslist-card .search-post-item.empty {
  text-align: center;
  color: var(--text-secondary);
  border: none;
  padding: var(--spacing-lg);
}

.thankslist-card .search-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs) var(--spacing-md);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--divider-color);
}

.thankslist-card .search-post-author {
  font-weight: 500;
}

.thankslist-card .search-post-meta a {
  color: var(--primary-color);
  text-decoration: none;
}

.thankslist-card .search-post-meta a:hover {
  text-decoration: underline;
}

.thankslist-card .search-post-body h3 {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: 15px;
  font-weight: 600;
}

.thankslist-card .search-post-body h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.thankslist-card .search-post-body h3 a:hover {
  color: var(--primary-color);
}

.thankslist-card .search-post-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

.thankslist-card .search-post-actions {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--divider-color);
}

.thankslist-card .search-post-actions .button-small {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 12px;
}

/* Mobile adjustments for search results */
@media (max-width: 768px) {
  .thankslist-card .search-results-list {
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
  }
  
  .thankslist-card .search-post-item {
    padding: var(--spacing-sm);
  }
  
  .thankslist-card .search-post-meta {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .thankslist-card .search-post-body h3 {
    font-size: 14px;
  }
  
  .thankslist-card .search-post-content {
    font-size: 13px;
  }
}

/* Profile page thanks panel - compact, no card styling */
.profile-page .panel.bg {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.profile-page .panel.bg .inner {
  padding: 0;
}

/* Let the main stylesheet handle h3.profile-section-title styling */

.profile-page .panel.bg .column1,
.profile-page .panel.bg .column2 {
  padding: var(--spacing-xs) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

/* Icon-only button - hide text, show only icon */
.profile-page .panel.bg .button.button-icon-only {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  float: none !important;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  transition: background-color 0.2s, color 0.2s;
}

.profile-page .panel.bg .button.button-icon-only:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

.profile-page .panel.bg .button.button-icon-only svg {
  width: 16px;
  height: 16px;
}

.profile-page .panel.bg .post-buttons {
  margin: 0;
  padding: 0;
  list-style: none;
  float: none !important;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px; /* Align with text baseline */
}

.profile-page .panel.bg .post-buttons li {
  display: inline-flex;
  float: none !important;
}

.profile-page .panel.bg dl {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
  flex: 1;
}

.profile-page .panel.bg dt {
  padding: 0;
  width: auto;
  font-size: 14px;
  color: var(--text-primary);
}

.profile-page .panel.bg dd {
  padding: 0;
  font-size: 14px;
}

.profile-page .panel.bg dd a {
  color: var(--primary-color);
}

dl.thanks {
	min-height: 35px;
	background-position: 10px 50%;		/* Position of folder icon */
	background-repeat: no-repeat;
}

dl.thanks dt {
	padding-left: 45px;					/* Space for folder icon */
	background-repeat: no-repeat;
	background-position: 5px 95%;		/* Position of topic icon */
	width: 45%;
}

dd.lastpostthanks {
	width: auto;
	font-size: 1.1em;
}
dd.lastpostthanks span {
	display: block;
	padding-left: 5px;
}
/* List in forum description */
dl.thanks dt ol,
dl.thanks dt ul {
	list-style-position: inside;
	margin-left: 1em;
}

dl.thanks dt li {
	display: list-item;
	list-style-type: inherit;
}
li.header dl.thanks {
	min-height: 0;
}

li.header dl.thanks dt {
	/* Tweak for headers alignment when folder icon used */
	padding-left: 0;
	padding-right: 50px;
}

/* Forum list column styles */
dl.thanks {
	min-height: 35px;
	background-position: 10px 50%;		/* Position of folder icon */
	background-repeat: no-repeat;
}

dl.thanks dt {
	padding-left: 45px;					/* Space for folder icon */
	background-repeat: no-repeat;
	background-position: 5px 95%;		/* Position of topic icon */
}


/* Profile & navigation icons */
.thanks-icon:before
{
  content: '\f087';
  font-size: 14px;
}

.removethanks-icon:before
{
  content: '\f088';
  font-size: 14px;
}

.thanks_reput_image_back
{
	background:  url(../../../images/rating/reput_star_back.gif);
	background-repeat: repeat-x;
}
.thanks_reput_image
{
	background:  url(../../../images/rating/reput_star_gold.gif);
	background-repeat: repeat-x;
}

