/* Partnerships Page & Widget Styles */

/* ===== PARTNERSHIPS PAGE ===== */

.partnerships-hero {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(17, 24, 39, 0.95) 100%);
  border-bottom: 1px solid rgba(147, 51, 234, 0.2);
  padding: 3rem 1rem;
  text-align: center;
}

.partnerships-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.partnerships-hero p {
  color: #9ca3af;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.partnerships-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .partnerships-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .partnerships-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 3rem;
  }
}

/* Partnership Card */
.partnership-card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.98) 100%);
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.partnership-card:hover {
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 10px 40px -10px rgba(147, 51, 234, 0.3);
  transform: translateY(-4px);
}

.partnership-card .card-banner {
  height: 120px;
  background: linear-gradient(135deg, #4c1d95 0%, #1e1b4b 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.partnership-card .card-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(17, 24, 39, 1), transparent);
}

@media (min-width: 768px) {
  .partnership-card .card-banner {
    height: 140px;
  }
}

.partnership-card .card-content {
  padding: 1.25rem;
  position: relative;
}

.partnership-card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 3px solid #111827;
  background: #1f2937;
  position: absolute;
  top: -32px;
  left: 1.25rem;
  object-fit: cover;
}

.partnership-card .card-icon-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 3px solid #111827;
  background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%);
  position: absolute;
  top: -32px;
  left: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partnership-card .card-icon-placeholder i {
  font-size: 1.75rem;
  color: #c4b5fd;
}

.partnership-card .card-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
}

.partnership-card .card-description-wrapper {
  margin-bottom: 1rem;
}

.partnership-card .card-description {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.partnership-card .card-description.expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.partnership-card .show-more-btn {
  background: none;
  border: none;
  color: #a78bfa;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.partnership-card .show-more-btn:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

.partnership-card .card-buttons {
  display: flex;
  gap: 0.5rem;
}

.partnership-card .join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.partnership-card .join-btn:hover {
  background: linear-gradient(135deg, #6874F4 0%, #5865F2 100%);
  transform: scale(1.02);
}

.partnership-card .join-btn i {
  font-size: 1rem;
}

.partnership-card .website-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.partnership-card .website-btn:hover {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  transform: scale(1.02);
}

.partnership-card .website-btn i {
  font-size: 1rem;
}

/* Empty State */
.partnerships-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}

.partnerships-empty i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.partnerships-empty h2 {
  font-size: 1.5rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

/* ===== PARTNERSHIP WIDGET BANNER ===== */

.partnerships-widget {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  border-bottom: 1px solid rgba(147, 51, 234, 0.3);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.partnerships-widget.hiding {
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

.partnerships-widget-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}

.partnerships-widget-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.partnerships-widget-label i {
  color: #a78bfa;
}

.partnerships-widget-partner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(147, 51, 234, 0.2);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  max-width: 200px;
}

.partnerships-widget-partner:hover {
  background: rgba(147, 51, 234, 0.4);
}

.partnerships-widget-partner img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.partnerships-widget-partner .partner-icon-placeholder {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #5b21b6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partnerships-widget-partner .partner-icon-placeholder i {
  font-size: 0.65rem;
  color: #c4b5fd;
}

.partnerships-widget-partner span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partnerships-widget-link {
  color: #a78bfa;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.partnerships-widget-link:hover {
  color: #c4b5fd;
}

.partnerships-widget-close {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.partnerships-widget-close:hover {
  color: #9ca3af;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .partnerships-widget {
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
  }

  .partnerships-widget-label {
    display: none;
  }

  .partnerships-widget-partner {
    max-width: 150px;
  }

  .partnerships-widget-partner span {
    font-size: 0.8rem;
  }

  .partnerships-widget-link {
    font-size: 0.75rem;
  }
}

/* Adjust body padding when widget is visible */
body.has-partnership-widget {
  padding-top: 44px;
}

@media (max-width: 640px) {
  body.has-partnership-widget {
    padding-top: 40px;
  }
}

/* Widget multiple partners (ticker style) */
.partnerships-widget-ticker {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: ticker 20s linear infinite;
}

.partnerships-widget-ticker:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
