/* Home Gym Links - Full Polished Design */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2416 50%, #1a1a1a 100%);
  min-height: 100vh;
  color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ========== HEADER ========== */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.logo-fallback {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37 0%, #f0d060 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  color: #1a1a1a;
  border: 4px solid #d4af37;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.header h1 {
  color: #d4af37;
  font-size: 2.2em;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
  color: #c19a2e;
  font-style: italic;
  font-size: 1.05em;
  margin-bottom: 20px;
}

/* ========== SEARCH BAR ========== */
.search-bar {
  margin-bottom: 25px;
}

.search-bar input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 30px;
  color: #f5f5f5;
  font-size: 1em;
  outline: none;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.search-bar input::placeholder {
  color: #888;
}

/* ========== SPOTLIGHT SECTION ========== */
.spotlight {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(193, 154, 46, 0.1) 100%);
  border: 3px solid #d4af37;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 8px 40px rgba(212, 175, 55, 0.4);
  position: relative;
  overflow: hidden;
}

.spotlight-header-label {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #d4af37 0%, #f0d060 100%);
  color: #1a1a1a;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9em;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.6);
}

.spotlight-title {
  color: #d4af37;
  font-size: 1.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.spotlight-creator {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
}

.spotlight-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #d4af37;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
}

.spotlight-initial {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #d4af37 0%, #f0d060 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  color: #1a1a1a;
  border: 4px solid #d4af37;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
  flex-shrink: 0;
}

.spotlight-info h3 {
  color: #d4af37;
  font-size: 1.8em;
  margin-bottom: 5px;
}

.spotlight-info p {
  color: #c19a2e;
  font-size: 1em;
}

.spotlight-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.spotlight-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  text-decoration: none;
  color: #f5f5f5;
  transition: all 0.2s ease;
  font-size: 0.9em;
  font-weight: 600;
}

.spotlight-link:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  transform: translateX(3px);
}

.spotlight-link .link-arrow {
  color: #c19a2e;
}

.spotlight-more {
  color: #c19a2e;
  font-size: 0.9em;
  padding: 10px 14px;
  font-style: italic;
}

/* ========== VIEW TOGGLE ========== */
.view-toggle {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.view-btn {
  padding: 15px 40px;
  background: linear-gradient(135deg, #d4af37 0%, #c19a2e 100%);
  color: #1a1a1a;
  border: none;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.view-btn.active {
  background: linear-gradient(135deg, #f0d060 0%, #d4af37 100%);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.7);
}

/* ========== ALPHABET NAVIGATION ========== */
.alphabet-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(45, 36, 22, 0.5);
  border-radius: 10px;
}

.alpha-letter {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.3);
  color: #d4af37;
  border: 1px solid #d4af37;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alpha-letter:hover {
  background: rgba(212, 175, 55, 0.5);
  transform: scale(1.1);
}

/* ========== COLLAPSIBLE CARDS ========== */
.collapsible-card {
  background: linear-gradient(135deg, rgba(45, 36, 22, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
  border: 2px solid #d4af37;
  border-radius: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.collapsible-card:hover {
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.card-header-clickable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.card-header-clickable:hover {
  background: rgba(212, 175, 55, 0.1);
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.card-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d4af37;
}

.card-icon-fallback {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #d4af37 0%, #c19a2e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #1a1a1a;
  flex-shrink: 0;
}

.card-icon-fallback.brand-icon {
  font-size: 26px;
}

.card-title-section h3 {
  color: #d4af37;
  font-size: 1.3em;
  margin-bottom: 5px;
}

.card-title-section p {
  color: #c19a2e;
  font-size: 0.9em;
}

.expand-icon {
  color: #d4af37;
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

/* ========== CARD CONTENT (LINKS) ========== */
.card-content {
  display: none;
  border-top: 2px solid rgba(212, 175, 55, 0.3);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.links-container {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

/* ========== AFFILIATE LINKS ========== */
.brand-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  text-decoration: none;
  color: #f5f5f5;
  transition: all 0.2s ease;
}

.brand-link:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
  transform: translateX(3px);
}

.link-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.link-brand {
  font-weight: bold;
  color: #d4af37;
  font-size: 0.95em;
}

.link-description {
  font-size: 0.8em;
  color: #c19a2e;
  font-style: italic;
}

.link-arrow {
  color: #c19a2e;
  font-size: 1.2em;
  flex-shrink: 0;
  margin-left: 10px;
}

/* ========== FOOTER ========== */
.footer {
  margin-top: 60px;
  padding: 30px 20px 25px;
  border-top: 2px solid rgba(212, 175, 55, 0.3);
  background: rgba(26, 26, 26, 0.5);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.footer-link {
  color: #c19a2e;
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 5px;
}

.footer-link:hover {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
}

.footer-link.discreet {
  color: rgba(193, 154, 46, 0.3);
  font-size: 0.75em;
}

.footer-link.discreet:hover {
  color: #c19a2e;
}

.footer-separator {
  color: rgba(212, 175, 55, 0.5);
  font-size: 0.85em;
}

.footer-copy {
  color: rgba(193, 154, 46, 0.6);
  font-size: 0.8em;
  margin-top: 12px;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  .container { padding: 15px; }
  .header h1 { font-size: 1.8em; }
  .logo-image { width: 100px; height: 100px; }

  .spotlight { padding: 20px; }
  .spotlight-header-label { top: 10px; right: 10px; font-size: 0.8em; padding: 6px 12px; }
  .spotlight-creator { flex-direction: column; text-align: center; }
  .spotlight-initial, .spotlight-logo { width: 80px; height: 80px; font-size: 36px; }
  .spotlight-info h3 { font-size: 1.4em; }
  .spotlight-links { grid-template-columns: 1fr; }

  .view-toggle { flex-direction: column; gap: 10px; }
  .view-btn { padding: 12px 20px; font-size: 1em; width: 100%; }

  .alphabet-bar { gap: 5px; padding: 12px; }
  .alpha-letter { width: 28px; height: 28px; font-size: 0.75em; }

  .card-header-clickable { padding: 15px; }
  .card-icon-fallback, .card-logo { width: 40px; height: 40px; font-size: 18px; }
  .card-title-section h3 { font-size: 1.05em; }

  .links-container { grid-template-columns: 1fr; padding: 10px; }
  .brand-link { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .header h1 { font-size: 1.5em; }
  .subtitle { font-size: 0.9em; }
  .spotlight-info h3 { font-size: 1.2em; }
  .alpha-letter { width: 24px; height: 24px; font-size: 0.65em; }
  .card-title-section h3 { font-size: 0.95em; }
  .card-title-section p { font-size: 0.8em; }
}
