/* Custom Styles for Woman Health & Fitness Campaign */

/* Font Family */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Styles */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ec4899;
    background-color: #fdf2f8;
}

.nav-link.active {
    color: #ec4899;
    background-color: #fce7f3;
    font-weight: 600;
}

/* Section Management - All sections visible for single page layout */
.scroll-section {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
    margin-bottom: 2rem;
    scroll-margin-top: 100px; /* Account for sticky nav */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Hover Effects */
.objective-card, .activity-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.objective-card:hover, .activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #ec4899;
}

/* Timeline Animations */
.timeline-dot {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-section {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.scroll-section:nth-child(even) {
    animation-delay: 0.1s;
}

.scroll-section:nth-child(odd) {
    animation-delay: 0.2s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active navigation highlight based on scroll position */
.nav-link.scroll-active {
    color: #ec4899;
    background-color: #fce7f3;
    font-weight: 600;
}

/* Gradient Text Effects */
.gradient-text {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #db2777, #7c3aed);
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Interactive Elements */
.interactive-element {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-element:hover {
    transform: scale(1.05);
}

.interactive-element:active {
    transform: scale(0.98);
}

/* Progress Indicators */
.progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: #fce7f3;
    color: #be185d;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background: #1f2937;
    color: white;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .objective-card, .activity-card {
        margin-bottom: 1rem;
    }
    
    .timeline-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    .section {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .bg-gradient-to-r, .bg-gradient-to-br {
        background: #f9fafb !important;
        color: #111827 !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .nav-link:hover {
        background-color: #000;
        color: #fff;
    }
    
    .objective-card:hover, .activity-card:hover {
        border-color: #000;
        background-color: #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles for Accessibility */
.nav-link:focus,
.interactive-element:focus {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

.btn-secondary {
    background: white;
    color: #ec4899;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid #ec4899;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #fdf2f8;
    transform: translateY(-1px);
}

/* Stats Counter Animation */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ec4899;
    display: block;
}

/* Pulse Animation for Important Elements */
.pulse-animation {
    animation: pulse 2s infinite;
}

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

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

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

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Grid Layout Enhancements */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Sticky Elements */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 40;
}

/* Success States */
.success-state {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.error-state {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}