/* Athlete Profile Page Styles */

.athlete-hero {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5a3d 50%, #3d7a5a 100%);
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.athlete-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.stats-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.achievement-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dasharray 0.35s;
    transform-origin: 50% 50%;
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.data-visualization {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.activity-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button {
    @apply px-8 py-4 rounded-2xl font-bold transition-all duration-300 ease-in-out relative overflow-hidden;
    background: linear-gradient(135deg, #86bba2 0%, #6ba38a 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(134, 187, 162, 0.2);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.95rem;
    will-change: transform, box-shadow;
    min-height: 3.5rem;
    overflow: hidden;
    padding: 14px;
    border-radius: 30px;
}

/* Video Section Background */
.video-section-bg {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    overflow: hidden;
}

.video-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
    pointer-events: none;
}

.video-section-bg::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 50%;
    animation: float1 6s ease-in-out infinite;
    pointer-events: none;
}

.video-section-bg .floating-dot-1 {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.08));
    border-radius: 50%;
    animation: float2 8s ease-in-out infinite;
    pointer-events: none;
}

.video-section-bg .floating-dot-2 {
    position: absolute;
    bottom: 15%;
    left: 20%;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, rgba(16, 185, 129, 0.08), rgba(34, 197, 94, 0.08));
    border-radius: 50%;
    animation: float3 7s ease-in-out infinite;
    pointer-events: none;
}

/* Video Carousel Styles */
.video-carousel-container {
    position: relative;
    padding: 0 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.video-carousel {
    width: 100%;
    height: auto;
    padding: 20px 0;
}

.video-carousel .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-item-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    position: relative;
}

.video-item {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-color: #e2e8f0;
}

.video-item:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.video-item iframe {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.video-carousel .swiper-pagination {
    bottom: 0px !important;
}

.video-carousel .swiper-pagination-bullet {
    background: #CBD5E1;
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

.video-carousel .swiper-pagination-bullet-active {
    background: #3B82F6 !important;
    width: 24px;
    border-radius: 4px;
}

/* Video-specific navigation arrows - more specific selectors */
.video-carousel-container .swiper-button-prev,
.video-carousel-container .swiper-button-next {
    display: none !important;
}

.video-carousel-nav-prev,
.video-carousel-nav-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    color: #6B7280 !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
}

.video-carousel-nav-prev:hover,
.video-carousel-nav-next:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    transform: translateY(-50%) scale(1.1) !important;
    color: #374151 !important;
}

.video-carousel-nav-prev {
    left: -22px !important;
}

.video-carousel-nav-next {
    right: -22px !important;
}

/* Hide default Swiper arrows */
.video-carousel-nav-prev::after,
.video-carousel-nav-next::after {
    display: none !important;
}

@media (max-width: 768px) {
    .video-carousel-container {
        padding: 0 10px;
        max-width: 100%;
    }
    .video-carousel-nav-prev {
        left: 5px !important;
    }
    .video-carousel-nav-next {
        right: 5px !important;
    }
    .video-item-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .video-carousel-container {
        padding: 0 5px;
    }
    .video-carousel-nav-prev {
        left: 2px !important;
    }
    .video-carousel-nav-next {
        right: 2px !important;
    }
}

/* Activity Image Carousel Styles */
.activity-carousel {
  width: 100%;
  height: 320px;
  padding: 20px 0;
}

.swiper-slide {
  height: 100%;
}

.photo-item {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: #e2e8f0; /* Light gray background for placeholder */
}

.photo-item.loaded {
  background-color: transparent;
}

.photo-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.photo-item.loaded img {
  opacity: 1;
}

.swiper-pagination {
  bottom: 0px !important;
}

.swiper-pagination-bullet {
  background: #CBD5E1; /* gray-300 */
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #3B82F6 !important; /* blue-500 */
  width: 24px;
  border-radius: 4px;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #9CA3AF; /* light gray */
}

.nav-arrow:hover {
  background-color: transparent;
  transform: translateY(-50%) scale(1.1);
  color: #6B7280; /* darker gray on hover */
}

/* Activity carousel specific navigation arrows */
.activity-carousel-nav-prev,
.activity-carousel-nav-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  color: #6B7280 !important;
  cursor: pointer !important;
  border: none !important;
  outline: none !important;
}

.activity-carousel-nav-prev:hover,
.activity-carousel-nav-next:hover {
  background-color: rgba(255, 255, 255, 1) !important;
  transform: translateY(-50%) scale(1.1) !important;
  color: #374151 !important;
}

.activity-carousel-nav-prev {
  left: -22px !important;
}

.activity-carousel-nav-next {
  right: -22px !important;
}

/* Override any Swiper default styles */
.activity-carousel-nav-prev::after,
.activity-carousel-nav-next::after {
  display: none !important;
}

.photo-grid {
  position: relative;
  padding: 0 30px; /* Space for arrows */
}

@media (max-width: 768px) {
  .photo-grid {
    padding: 0;
  }
  .activity-carousel-nav-prev {
    left: 5px !important;
  }
  .activity-carousel-nav-next {
    right: 5px !important;
  }
}

.modal-nav {
  width: 44px;
  height: 44px;
}

/* Biography container styles */
.biography-container {
    position: relative;
}

.biography-text {
    transition: all 0.3s ease;
    line-height: 1.6;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border: none;
    background: none;
    outline: none;
}

.read-more-btn:hover {
    transform: translateY(-1px);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateY(1px);
}

/* Responsive adjustments for hero section */
@media (max-width: 1024px) {
    .athlete-hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .athlete-hero .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .biography-container {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .athlete-hero {
        min-height: 90vh;
        padding: 1rem 0;
    }
    
    .athlete-hero h1 {
        font-size: 3rem !important;
    }
    
    .biography-container {
        margin: 0 auto 1.5rem auto;
        max-width: 100% !important;
    }
    
    .biography-text {
        font-size: 1.125rem !important;
        line-height: 1.7;
    }
    
    .read-more-btn {
        font-size: 1rem !important;
        margin-top: 0.75rem;
    }
}

@media (max-width: 640px) {
    .athlete-hero {
        min-height: 100vh;
        padding: 0.5rem 0;
    }
    
    .athlete-hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .biography-text {
        font-size: 1rem !important;
    }
    
    .athlete-hero .flex {
        gap: 2rem !important;
    }
    
    .athlete-hero .w-48 {
        width: 8rem !important;
        height: 8rem !important;
    }
}

@keyframes gradientShift {
    0%, 100% { 
        opacity: 0.7;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes float1 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes float2 {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-15px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes float3 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-25px) rotate(-180deg);
        opacity: 0.7;
    }
} 