/* Enhanced styles for Day One Strategy report */

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

.fade-in {
    opacity: 0;
}

.fade-in-active {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.hover-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Pulse animation for key metrics */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-on-hover:hover {
    animation: pulse 1s infinite;
}

/* Timeline styles */
.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #3B82F6, #10B981);
}

/* Progress bar animations */
@keyframes progressBar {
    from {
        width: 0;
    }
    to {
        width: var(--progress-width);
    }
}

.progress-bar {
    animation: progressBar 2s ease-out forwards;
}

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

/* Gradient backgrounds */
.gradient-bg-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-green {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.gradient-bg-purple {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Interactive tooltips */
.tooltip {
    position: relative;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Section dividers */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #3B82F6, transparent);
    margin: 3rem 0;
}

/* Highlight box */
.highlight-box {
    border-left: 4px solid #3B82F6;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), transparent);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

/* Print optimization */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 10pt;
    }
    
    .section-break {
        page-break-inside: avoid;
    }
    
    .chart-container {
        height: 250px !important;
    }
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .timeline-item::before {
        display: none;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-primary {
    color: #fff;
    background-color: #3B82F6;
}

.badge-success {
    color: #fff;
    background-color: #10B981;
}

.badge-warning {
    color: #000;
    background-color: #F59E0B;
}

/* Icon animations */
.icon-bounce {
    animation: bounce 2s infinite;
}

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