/* Activity V1 Page Styles */

/* Wave Separators */
.wave-separator {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
    transform: rotateY(180deg);
}

.wave-separator .shape-fill {
    fill: #FFFFFF;
}

.wave-separator-1 {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5a3d 50%, #3d7a5a 100%);
}

.wave-separator-2 {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.wave-separator-3 {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

.wave-separator-4 {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.wave-separator-5 {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
}

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

.activity-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.activity-hero h1,
.activity-hero h2,
.activity-hero h3,
.activity-hero .text-2xl,
.activity-hero .text-sm {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.activity-hero .container {
    position: relative;
    z-index: 2;
}

.activity-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.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

/* Floating Elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Metric Cards */
.metric-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 2px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

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

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

/* Progress Rings */
.progress-ring {
    transform: rotate(-90deg);
}

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

/* Performance Charts */
.chart-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(139, 92, 246, 0.2);
}

/* Segment Cards */
.segment-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.segment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669, #047857);
}

.segment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Exercise Items */
.exercise-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
}

.exercise-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

/* Media Gallery */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.media-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(245, 158, 11, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.media-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Animated Background Elements */
.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    animation: bubble 8s ease-in-out infinite;
}

@keyframes bubble {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* General H2 Styling */
h2 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Icon Badges */
.icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    margin: 0 auto 1rem;
}

.icon-badge.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.icon-badge.secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.icon-badge.accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .metric-value {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .wave-separator {
        height: 80px;
    }
    
    .wave-separator svg {
        height: 80px;
    }
}

/* Loading Animations */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Custom Scrollbar */
.activity-page::-webkit-scrollbar {
    width: 8px;
}

.activity-page::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.activity-page::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 4px;
}

.activity-page::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
} 