/* BioWorld Reports - Frontend Styles */

.bioworld-reports-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Categories Section */
.categories-section {
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5f3f0;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2d5a4a, #4a8b6f);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.category-icon {
    font-size: 2rem;
    color: #4a8b6f;
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a4037;
    margin-bottom: 0.5rem;
}

.category-count {
    color: #666;
    font-size: 0.9rem;
}

/* Documents Grid */
.documents-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a4037;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.documents-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2d5a4a, #4a8b6f);
    border-radius: 2px;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.document-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f8f5;
    position: relative;
    animation: fadeInUp 1s ease-out;
    cursor: pointer;
}

.document-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.document-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.document-icon {
    font-size: 2.5rem;
    color: #e74c3c;
    flex-shrink: 0;
}

.document-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a4037;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.document-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-download, .btn-view {
    background: linear-gradient(135deg, #4a8b6f 0%, #2d5a4a 100%);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.btn-download:hover, .btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .bioworld-reports-container {
        padding: 1.5rem 0.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-section h2 {
        font-size: 1.5rem;
    }
    
    .document-actions {
        flex-direction: column;
    }
    
    .btn-download, .btn-view {
        text-align: center;
        justify-content: center;
    }
}

/* Loading states */
.bioworld-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #666;
}

.bioworld-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top: 2px solid #4a8b6f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}