/* ── TravelSoftball.com ── LinkedIn-Style Profiles ── */

/* ── Profile Shared Layout ── */

.profile-page {
  max-width: 935px;
  margin: 0 auto;
  padding: 0 0 3rem;
}

/* ── Cover + Photo ── */
.profile-cover {
  position: relative;
  height: 280px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a4b8c 0%, #0f3460 40%, #16213e 100%);
}
.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-cover .cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(200,212,230,0.4) 0%, rgba(255,255,255,0.92) 100%);
}

.profile-photo-wrapper {
  position: relative;
  margin-top: -80px;
  margin-left: 32px;
  z-index: 2;
}
.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(245,166,35,0.15), 0 8px 30px rgba(0,0,0,0.4);
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-photo .photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-display);
  background: linear-gradient(135deg, #e8edf5, #c5d0e0);
  color: #1a1a2e;
}

/* ── Profile Header ── */
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
}
.profile-header-left {
  flex: 1;
  padding-top: 0.25rem;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.profile-headline {
  font-size: 1rem;
  color: var(--gold-light);
  margin: 0.15rem 0 0.3rem;
  font-weight: 500;
}
.profile-location {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.profile-location i { font-style: normal; }

.profile-header-right {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-shrink: 0;
  padding-top: 0.75rem;
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-linkedin-primary {
  background: #0a66c2;
  color: #fff;
}
.btn-linkedin-primary:hover {
  background: #004182;
  color: #fff;
}
.btn-linkedin-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-linkedin-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-linkedin-success {
  background: var(--green);
  color: #000;
}
.btn-linkedin-success:hover {
  background: #16a34a;
  color: #000;
}
.btn-linkedin-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
}
.btn-linkedin-outline:hover {
  background: var(--gold-glow);
  color: var(--gold);
}

/* ── Profile Body Grid ── */
.profile-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1rem;
  padding: 1rem 2rem;
}

@media (max-width: 860px) {
  .profile-body {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .profile-header { flex-direction: column; gap: 0.75rem; }
  .profile-photo-wrapper { margin-left: 16px; }
  .profile-photo { width: 120px; height: 120px; }
  .profile-cover { height: 180px; }
}

/* ── Profile Cards ── */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.profile-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.profile-card-link {
  font-size: 0.8rem;
  color: var(--gold-light);
  text-decoration: none !important;
}
.profile-card-link:hover { text-decoration: underline !important; }

/* ── About Section ── */
.profile-about-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
}

/* ── Experience / History Items ── */
.exp-item {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:last-child { border-bottom: none; padding-bottom: 0; }
.exp-item:first-child { padding-top: 0; }

.exp-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.exp-content { flex: 1; min-width: 0; }
.exp-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.exp-org {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.exp-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.exp-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* ── Skills / Tags ── */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text);
  transition: all 0.2s;
}
.skill-tag:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
  color: var(--gold-light);
}
.skill-tag .count {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

/* ── Info Grid ── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.info-item { }
.info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.info-value {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.1rem;
}

/* ── Social Links ── */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none !important;
  transition: all 0.2s;
}
.social-link:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
  color: var(--gold-light);
}

/* ── Achievement Items ── */
.achievement-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.achievement-item:last-child { border-bottom: none; }
.achievement-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.achievement-text { color: var(--text); }

/* ── Sidebar Cards ── */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.sidebar-card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.sidebar-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--text);
}
.sidebar-stat .stat-val { color: var(--gold-light); font-weight: 600; }

/* ── Contact Info (protected) ── */
.contact-protected {
  background: var(--bg-hover);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.contact-revealed {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}
.contact-revealed strong { color: var(--gold-light); }

/* ── Status Badges ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-looking {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-open {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.status-closed {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Video Embed ── */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
}
.video-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-hover);
  border: 1px solid var(--border);
}
.video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
}
.video-card .video-label {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Gear Used ── */
.gear-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gear-tag {
  padding: 0.35rem 0.85rem;
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text);
}

/* ── Tryout Availability ── */
.tryout-badge-available {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}
.tryout-badge-unavailable {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  background: rgba(239, 68, 68, 0.12);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── Sidebar Interest Button ── */
.interest-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}
.interest-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--gold-glow);
}

/* ── Team Roster Preview ── */
.roster-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.roster-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  overflow: hidden;
}
.roster-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.roster-mini.more {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* ── Profile Base ── */
.profile-card-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.profile-card-mini:last-child { border-bottom: none; }
.profile-card-mini .mini-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-hover);
  flex-shrink: 0;
  overflow: hidden;
}
.profile-card-mini .mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-card-mini .mini-info { flex: 1; min-width: 0; }
.profile-card-mini .mini-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}
.profile-card-mini .mini-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Directory / Listings ── */
.dir-header {
  max-width: 935px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}
.dir-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.dir-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.dir-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.dir-filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dir-filter-btn:hover, .dir-filter-btn.active {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
}

.dir-grid {
  max-width: 935px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.dir-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none !important;
  display: block;
}
.dir-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.dir-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.dir-card-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8edf5, #c5d0e0);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.dir-card-photo img { width: 100%; height: 100%; object-fit: cover; }

.dir-card-info { flex: 1; min-width: 0; }
.dir-card-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.dir-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.dir-card-positions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.dir-card-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background: var(--bg-hover);
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.dir-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Tournament Schedule Table ── */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.schedule-table td {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.schedule-table tr:last-child td { border-bottom: none; }

/* ── Sponsors ── */
.sponsor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.sponsor-item {
  padding: 0.4rem 1rem;
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}

/* ── Team Level Badge ── */
.level-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.level-elite { background: #f5a623; color: #000; }
.level-competitive { background: #3b82f6; color: #fff; }
.level-recreational { background: #22c55e; color: #000; }

/* ── Coach Philosophy Quote ── */
.philosophy-quote {
  position: relative;
  padding: 1rem 1rem 1rem 2rem;
  margin: 0.5rem 0;
  border-left: 3px solid var(--gold);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.philosophy-quote::before {
  content: '"';
  position: absolute;
  left: 0.5rem;
  top: 0.9rem;
  font-size: 1.5rem;
  color: var(--gold);
  font-style: normal;
}
