/**
 * Feuds & Rivalries Styles
 * File: /wp-content/themes/extendable-child/assets/css/feuds-rivalries.css
 * Version: 1.0.0
 * Description: Styles for bidirectional feuds and rivalries display
 */

/* Main wrapper and container */
.feuds-rivalries-wrapper {
  margin-top: 0px;
}

.feuds-rivalries-container {
  background-color: #121921;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin-top:0px;
}

/* Header section */
.feuds-rivalries-header {
  display: block;
  width: 100%;
  background-color: #1A242E;
  padding-top: .7rem;
  padding-bottom: .5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  font-family: 'sofia-sans', sans-serif;
  font-size: 24px;
  color: #E4DCD6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  font-weight: 500;
}

.feuds-rivalries-title {
  font-family: 'sofia-sans', sans-serif;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #E5625E;
  margin: 0;
}

/* Cards container */
.feuds-rivalries-cards-container {
  padding: 1rem;
  background-color: #121921;
}

/* Individual feud item */
.feuds-rivalries-item {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background-color: #1A242E;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.feuds-rivalries-item:last-child {
  margin-bottom: 0;
}

/* Rival info section */
.feuds-rivalries-rival-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
}

.feuds-rivalries-rival-thumb {
  width: 4rem;
  height: 4rem;
  border-radius: 10%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  background-color: #C5D1EB;
  padding: 2px;
}

.feuds-rivalries-rival-name {
  font-family: 'bebas-neue', sans-serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: #CEE5F2;
  text-decoration: none;
}

.feuds-rivalries-rival-name:hover {
  color: #E6C97F;
}

/* Text content styles */
.feuds-rivalries-item p {
  margin: 0.2rem 0;
  line-height: 1.5;
  font-weight: 400;
  font-size: 16px;
  color: #CEE5F2;
}

.feuds-rivalries-item p strong {
  font-family: 'sofia-sans', sans-serif;
  font-size: 16px;
  color: #CEE5F2;
  margin-right: 2px;
  font-weight: 500;
}

/* Value spans - softer color for actual content */
.feuds-rivalries-value {
  color: #E9ECF2;
}

.feuds-rivalries-summary-text {
  color: #E9ECF2 !important;
}

/* Summary section */
.feuds-rivalries-summary-wrapper {
  margin: 0.2rem 0 1.5rem 0;
}

.feuds-rivalries-summary-wrapper > p {
  margin: 0 0 0.5rem 0;
}

.feuds-rivalries-summary-wrapper p:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}

/* Key matches table */
.feuds-rivalries-key-matches-wrapper {
  padding: 0px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #3c4256 #121921;
}


.feuds-rivalries-key-matches-wrapper::-webkit-scrollbar {
  height: 8px;
}

.feuds-rivalries-key-matches-wrapper::-webkit-scrollbar-track {
  background: #121921;
}

.feuds-rivalries-key-matches-wrapper::-webkit-scrollbar-thumb {
  background: #3c4256;
  border-radius: 4px;
}

.feuds-rivalries-key-matches-wrapper::-webkit-scrollbar-thumb:hover {
  background: #4a5568;
}

.feuds-rivalries-key-matches {
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  min-width: 700px;
  white-space: nowrap;
}

.feuds-rivalries-key-matches thead {
  background: #10161d;
}

.feuds-rivalries-key-matches thead td {
  background: #121921;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 1rem;
  color: #CEE5F2;
}

.feuds-rivalries-key-matches td {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  color: #E9ECF2;
}

.feuds-rivalries-key-matches tr + tr td {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.feuds-rivalries-key-matches tr td {
  background: #121921;
}

.feuds-rivalries-key-matches td {
  font-size: 16px;
}

.feuds-rivalries-key-matches td:first-child { 
  width: 30%; 
  max-width: 30%; 
}

.feuds-rivalries-key-matches td:nth-child(2) { 
  width: 20%; 
  max-width: 20%; 
}

.feuds-rivalries-key-matches td:nth-child(3) { 
  width: 40%; 
  max-width: 40%; 
}

.feuds-rivalries-key-matches td:last-child {
  width: 10%;
  max-width: 10%;
  text-align: center;
  white-space: nowrap;
}

/* Key matches links */
.feuds-rivalries-key-matches a {
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  color: #E6C97F;
}

.feuds-rivalries-key-matches a:hover {
  color: #8A96C7;
}

.feuds-rivalries-key-matches td:first-child a {
  font-size: 16px;
}

.feuds-rivalries-key-matches td:last-child a {
  background: #E6C97F;
  color: #0B1724;
  padding: .15rem .65rem;
  border-radius: 4px;
  font-size: 14px;
}

.feuds-rivalries-key-matches td:last-child a:hover {
  background: #CEE5F2;
  color: #0B1724;
}

/* Key matches heading */
.feuds-rivalries-key-matches-heading {
  font-family: 'sofia-sans', sans-serif;
  font-size: 18px;
  color: #E9ECF2;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 0;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Actions section */
.feuds-rivalries-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  box-sizing: border-box;
}

.feuds-rivalries-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #E6C97F;
  color: #0B1724;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'sofia-sans', sans-serif;
  box-sizing: border-box;
  max-width: 100%;
}

.feuds-rivalries-details-btn:hover {
  background: #CEE5F2;
  color: #0B1724;
  transform: translateY(-1px);
}

.feuds-rivalries-details-btn svg {
  transition: transform 0.3s ease;
}

.feuds-rivalries-details-btn:hover svg {
  transform: translateX(2px);
}

/* Tablet responsive styles */
@media (max-width: 768px) {
  .feuds-rivalries-item {
    padding: 10px;
  }
  
  .feuds-rivalries-cards-container {
    padding: 10px;
  }
  
  .feuds-rivalries-item p strong {
    font-size: 18px;
  }
  
  .feuds-rivalries-summary-wrapper > p {
    font-size: 18px;
  }
  
  .feuds-rivalries-details-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: 14px;
  }
  
  .feuds-rivalries-summary-wrapper p:last-child {
    -webkit-line-clamp: 8;
  }
  .feuds-rivalries-key-matches td:first-child { 
  width: 40%; 
  max-width: 40%; 
}

.feuds-rivalries-key-matches td:nth-child(2) { 
  width: 20%; 
  max-width: 20%; 
}

.feuds-rivalries-key-matches td:nth-child(3) { 
  width: 30%; 
  max-width: 30%; 
}

.feuds-rivalries-key-matches td:last-child {
  width: 10%;
  max-width: 10%;
  text-align: center;
  white-space: nowrap;
}
}

/* Mobile responsive styles */
@media (max-width: 430px) {
  .feuds-rivalries-item {
    padding: 10px;
  }
  
  .feuds-rivalries-cards-container {
    padding: 10px;
  }
  
  .feuds-rivalries-details-btn {
    font-size: 14px;
    padding: 0.6rem 0.8rem;
  }
}