/* Main Styles for ML Papers Summarizer */

body {
    background-color: #f8f9fa;
    color: #333;
}

/* Card styles */
.card {
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

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

.card-title {
    color: #0d6efd;
}

.summary-content {
    line-height: 1.6;
}

/* Badge styles */
.badge {
    font-weight: 400;
    border-radius: 4px;
    padding: 5px 8px;
    margin-right: 3px;
}

/* Navbar and footer */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

footer {
    border-top: 1px solid #e9ecef;
}

/* Paper details */
.abstract, .summary {
    line-height: 1.8;
    font-size: 1.1rem;
}

.paper-metadata {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Category cards */
.category-card {
    text-align: center;
    background: linear-gradient(to bottom right, #f8f9fa, #e9ecef);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-card .card-header {
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    color: white;
    border-bottom: none;
    padding: 15px;
    position: relative;
}

.category-card .card-title {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.category-card .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
}

.category-card .card-text {
    color: #495057;
    margin-bottom: 20px;
    height: 4.5rem;
    overflow: hidden;
}

.category-card .btn-primary {
    background: linear-gradient(90deg, #0d6efd, #0d8bfd);
    border: none;
    padding: 10px 15px;
    transition: all 0.3s;
}

.category-card .btn-primary:hover {
    background: linear-gradient(90deg, #0b5ed7, #0b79e3);
    transform: translateY(-2px);
}

/* Custom buttons */
.btn-outline-primary, .btn-outline-secondary {
    border-width: 2px;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .abstract, .summary {
        font-size: 1rem;
    }
}

/* Animation for fetching papers */
@keyframes pulsate {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.fetching-animation {
    animation: pulsate 1.5s infinite;
}

/* Enhanced styles for markdown-formatted technical summaries */
.technical-summary {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: justify;
}

/* Main title */
.technical-summary h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #0d6efd;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

/* Section headings */
.technical-summary h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #0d6efd;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #f1f1f1;
}

/* First section heading needs less top margin */
.technical-summary h2:first-of-type {
    margin-top: 0.5rem;
}

/* Lists in technical summaries */
.technical-summary ul, 
.technical-summary ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.technical-summary ul li,
.technical-summary ol li {
    margin-bottom: 0.5rem;
}

/* Bold text in technical details */
.technical-summary strong {
    color: #495057;
    font-weight: 600;
}

/* Add styles for the timestamp */
.summary-timestamp {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-style: italic;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Specific styling for technical details section */
.technical-summary ul li strong {
    display: inline-block;
    min-width: 100px;
}

/* Enhanced styles for technical details section */
.technical-summary h2.section-title {
    font-size: 1.6rem;
    color: #0056b3;
    background-color: #f0f8ff;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 1.5rem 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid #0d6efd;
}

/* Technical details category labels */
.technical-summary ul li .category-label {
    display: inline-block;
    min-width: 120px;
    color: #0056b3;
    font-weight: 700;
    font-size: 1.05rem;
    margin-right: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Improve spacing for bullet points in technical details */
.technical-summary ul {
    padding-left: 0;
    list-style-type: none;
}

.technical-summary ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    line-height: 1.6;
}

/* Bullet point styling */
.technical-summary ul li:before {
    content: "•";
    color: #0d6efd;
    font-size: 1.5rem;
    margin-right: 10px;
    line-height: 1;
}

/* Format the technical details content */
.technical-summary ul li .detail-content {
    flex: 1;
}

/* Special styling for TECHNICAL DETAILS and RESULTS headers */
.technical-summary h2#technical-details,
.technical-summary h2#results {
    color: #0d6efd;
    font-size: 1.75rem;
    font-weight: 700;
    background-color: #f8f9fa;
    border-bottom: 2px solid #0d6efd;
    padding: 8px 0;
    margin: 2rem 0 1.5rem 0;
    text-align: left;
} 