/* ============================================================
   UGO HUMBERT — PREMIUM UPGRADES
   Nouvelles sections : play-style, tournaments, big-quote
   Effets : magnetic, image-reveal, glass premium
   ============================================================ */

/* ============= PLAYING STYLE ============= */
.play-style {
  padding: 140px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.play-style::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.play-card {
  position: relative;
  padding: 50px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.6s var(--ease-out);
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 255, 0, 0.04), transparent 50%),
    linear-gradient(135deg, var(--bg-2), var(--bg-3));
}

.play-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(212, 255, 0, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}

.play-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
}

.play-card:hover::before {
  opacity: 1;
}

.play-card-num {
  position: absolute;
  top: 30px;
  right: 30px;
  font-family: var(--font-display);
  font-size: 60px;
  color: var(--text);
  opacity: 0.05;
  letter-spacing: -0.02em;
  transition: all 0.5s var(--ease-out);
}

.play-card:hover .play-card-num {
  opacity: 0.2;
  color: var(--accent);
}

.play-card-icon {
  width: 64px;
  height: 64px;
  color: var(--accent);
  margin-bottom: 30px;
  transition: transform 0.6s var(--ease-out);
}

.play-card:hover .play-card-icon {
  transform: rotate(15deg) scale(1.1);
}

.play-card-icon svg {
  width: 100%;
  height: 100%;
}

.play-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 400;
}

.play-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 30px;
}

.play-card-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.play-stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.play-stat-unit {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ============= TOURNAMENTS ============= */
.tournaments-section {
  padding: 140px 0;
  background: var(--bg-2);
  position: relative;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 60px;
}

.tour-card {
  position: relative;
  padding: 30px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  min-height: 200px;
}

.tour-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line-2);
  transition: all 0.4s var(--ease-out);
}

.tour-card.grand-slam::before { background: linear-gradient(90deg, #ce1126, #002654); }
.tour-card.masters::before { background: linear-gradient(90deg, var(--gold), #e0c68a); }
.tour-card.atp500::before { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.tour-card.atp250::before { background: linear-gradient(90deg, var(--accent), #ffeb3b); }
.tour-card.winner { background: linear-gradient(135deg, var(--bg), rgba(212, 255, 0, 0.05)); }

.tour-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  background: linear-gradient(135deg, var(--bg), var(--bg-3));
}

.tour-card:hover::before {
  height: 4px;
}

.tour-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-logo img {
  max-height: 50px;
  max-width: 100%;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all 0.4s var(--ease-out);
}

.tour-card:hover .tour-logo img {
  opacity: 1;
  transform: scale(1.05);
}

.tour-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.tour-type {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent);
}

.tour-surface {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  text-transform: uppercase;
}

.tour-best {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tour-best.gold {
  background: linear-gradient(135deg, var(--gold), #e0c68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* ============= BIG QUOTE ============= */
.big-quote {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px var(--gutter);
}

.big-quote-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(80%) brightness(0.3);
  z-index: 0;
  transform: scale(1.1);
  transition: transform 30s linear;
}

.big-quote:hover .big-quote-bg {
  transform: scale(1.2);
}

.big-quote::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(10,10,10,0.8) 70%),
    linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
  z-index: 1;
}

.big-quote .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.big-quote-content {
  text-align: center;
}

.big-quote-mark {
  width: 60px;
  height: 60px;
  color: var(--accent);
  opacity: 0.5;
  margin: 0 auto 40px;
}

.big-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 50px;
}

.big-quote blockquote span {
  display: block;
}

.big-quote blockquote .italic {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.big-quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.bq-line {
  display: block;
  width: 80px;
  height: 1px;
  background: var(--accent);
}

.bq-name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--accent);
}

/* ============= IMAGE REVEAL EFFECT ============= */
.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 1.2s var(--ease-expo);
  z-index: 2;
}

.img-reveal.revealed::before {
  transform: scaleX(0);
  transform-origin: right center;
}

.img-reveal img {
  opacity: 0;
  transform: scale(1.2);
  transition: opacity 1.2s 0.4s var(--ease-out), transform 1.5s 0.2s var(--ease-out);
}

.img-reveal.revealed img {
  opacity: 1;
  transform: scale(1);
}

/* ============= NOISE TEXTURE ============= */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============= GRADIENT TEXT EFFECT ============= */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 4s ease infinite;
}

/* ============= ENHANCED LIGHTBOX ============= */
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  z-index: 2;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-nav:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg { width: 20px; height: 20px; }

/* ============= NEW HERO ENHANCEMENTS ============= */
.hero-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(212, 255, 0, 0.1);
  border: 1px solid rgba(212, 255, 0, 0.3);
  border-radius: 100px;
  margin-left: 12px;
}

.hero-meta-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.hero-meta-tag span {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

/* ============= 3D TENNIS ICONS ============= */
.icon-3d {
  width: 80px;
  height: 80px;
  position: relative;
  perspective: 800px;
}

.icon-3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: icon3dRotate 8s linear infinite;
}

@keyframes icon3dRotate {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(360deg); }
}

.tennis-ball-3d {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #e8ff5e 0%, var(--accent) 40%, #88a700 100%);
  box-shadow:
    inset -8px -8px 16px rgba(0,0,0,0.3),
    0 4px 20px rgba(212,255,0,0.4);
  position: relative;
}

.tennis-ball-3d::before,
.tennis-ball-3d::after {
  content: '';
  position: absolute;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 50%;
}

.tennis-ball-3d::before {
  top: 8%; left: 0%; right: 0%; bottom: 50%;
  border-bottom: none;
}

.tennis-ball-3d::after {
  top: 50%; left: 0%; right: 0%; bottom: 8%;
  border-top: none;
}

/* ============= ENHANCED MAGNETIC EFFECT ============= */
.btn {
  will-change: transform;
}

/* ============= LOADING SHIMMER ============= */
.shimmer-bg {
  background: linear-gradient(
    90deg,
    var(--bg-2) 0%,
    var(--bg-3) 50%,
    var(--bg-2) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ============= RESPONSIVE PREMIUM ============= */
@media (max-width: 1024px) {
  .play-grid { grid-template-columns: 1fr 1fr; }
  .tour-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .play-grid { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: 1fr 1fr; }
  .play-card { padding: 40px 28px; }
  .play-card-num { font-size: 40px; }
  .play-stat-num { font-size: 36px; }

  .big-quote { min-height: 70vh; padding: 80px 20px; }
  .big-quote-mark { width: 40px; height: 40px; margin-bottom: 24px; }

  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
  .tour-grid { grid-template-columns: 1fr; }
}
