/* spotforteam — Fantasy Tennis Styles */

:root {
  --ft-purple: #7C3AED;
  --ft-purple-dark: #5B21B6;
  --ft-purple-light: #8B5CF6;
  --ft-accent: #10B981;
  --ft-accent-hover: #059669;
  --ft-bg-dark: #0F172A;
  --ft-card-bg: #1E293B;
  --ft-border: rgba(255, 255, 255, 0.1);
  --ft-text-light: #F8FAFC;
  --ft-text-muted: #94A3B8;
}

/* Hero Section */
.fantasy-hero {
  position: relative;
  min-height: 480px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(91, 33, 182, 0.85) 100%),
              url('../assets/images/tennis_hero.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  border-bottom: 4px solid var(--ft-accent);
}

.fantasy-hero__content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.fantasy-hero__badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.fantasy-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fantasy-hero p {
  font-size: 1.2rem;
  color: #CBD5E1;
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* Benefits Section */
.section-benefits {
  background: #0B0F19;
  padding: 3.5rem 1.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.benefit-card {
  background: #131A29;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
}

.benefit-card__icon-wrapper {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.benefit-card__icon-text {
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1;
  color: #A78BFA;
  text-transform: uppercase;
}

.benefit-card h3 {
  color: #F8FAFC;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  color: #94A3B8;
  font-size: 0.95rem;
  margin: 0;
}

/* Play Now Section */
.section-play {
  background: #0F172A;
  padding: 4rem 1.5rem;
  color: #F8FAFC;
}

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

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #94A3B8;
  font-size: 1.1rem;
}

.player-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #1E293B;
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--ft-purple);
  color: #FFFFFF;
  border-color: var(--ft-purple-light);
}

/* Player Cards Grid / Slider */
.players-slider-wrapper {
  position: relative;
  margin-bottom: 3.5rem;
}

.players-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .players-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  .player-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
}

.player-card {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.player-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.player-card.is-selected {
  border: 2px solid var(--ft-accent);
  background: #162438;
}

.player-card__thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #0B0F19;
}

.player-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.player-card:hover .player-card__thumb img {
  transform: scale(1.04);
}

.player-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #10B981;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.player-card__category {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--ft-purple);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}

.player-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.player-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.player-card__country {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-bottom: 1rem;
}

.player-card__stats {
  display: flex;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.5);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #CBD5E1;
  margin-bottom: 1.25rem;
}

.btn-add-player {
  margin-top: auto;
  width: 100%;
  padding: 0.75rem;
  background: var(--ft-purple);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-add-player:hover {
  background: var(--ft-purple-light);
}

.player-card.is-selected .btn-add-player {
  background: #10B981;
  color: #0F172A;
}

/* Team Builder Dock (Твоя команда) */
.team-builder-dock {
  background: #1E293B;
  border: 2px dashed rgba(139, 92, 246, 0.4);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.team-builder-dock__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.team-builder-dock__header h3 {
  font-size: 1.5rem;
  color: #FFFFFF;
  margin: 0;
}

.team-status-pill {
  background: rgba(124, 58, 237, 0.2);
  color: #A78BFA;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.team-status-pill.is-ready {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.4);
}

.team-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .team-slots-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }
  .team-slot {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

.team-slot {
  background: #0B0F19;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  min-height: 120px;
  display: flex;
  align-items: center;
  padding: 1rem;
  transition: all 0.2s ease;
}

.team-slot.filled {
  border-style: solid;
  border-color: var(--ft-purple-light);
  background: #162032;
}

.team-slot__empty {
  width: 100%;
  text-align: center;
  color: #64748B;
  font-size: 0.95rem;
}

.team-slot__content {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.team-slot__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--ft-purple);
  flex-shrink: 0;
}

.team-slot__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-slot__info {
  flex-grow: 1;
}

.team-slot__info .name {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1.05rem;
}

.team-slot__info .sub {
  font-size: 0.8rem;
  color: #94A3B8;
}

.btn-remove-slot {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.btn-remove-slot:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.team-action-wrapper {
  text-align: center;
}

.btn-play-game {
  background: #10B981;
  color: #0F172A;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 1rem 3.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-play-game:hover:not(:disabled) {
  background: #059669;
  color: #FFFFFF;
  transform: scale(1.03);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.6);
}

.btn-play-game:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  background: #475569;
  color: #94A3B8;
}

/* Predictions Section */
.section-predictions {
  background: #0B0F19;
  padding: 4rem 1.5rem;
}

.predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pred-card {
  background: #131A29;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pred-card__img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.pred-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pred-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ft-purple);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.pred-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pred-card__date {
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 0.5rem;
}

.pred-card__title {
  color: #F8FAFC;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.pred-card__text {
  color: #94A3B8;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.pred-card__link {
  color: #A78BFA;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  user-select: none;
}

/* Modals */
.ft-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ft-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.ft-modal {
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.ft-modal-overlay.is-open .ft-modal {
  transform: translateY(0);
}

.ft-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.ft-modal h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.ft-modal p {
  color: #94A3B8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.ft-form-group {
  margin-bottom: 1.25rem;
}

.ft-form-group label {
  display: block;
  font-size: 0.85rem;
  color: #CBD5E1;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.ft-form-group input {
  width: 100%;
  background: #0B0F19;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  font-size: 1rem;
  outline: none;
}

.ft-form-group input:focus {
  border-color: var(--ft-purple-light);
}

.ft-btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--ft-accent);
  color: #0F172A;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ft-btn-submit:hover {
  background: var(--ft-accent-hover);
  color: #FFFFFF;
}

.ft-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}
