/*
 * Article Summary Component Styling
 * Reusable styling for article summary components across different pages
 */

/* Article summary container */
.obj_article_summary {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    max-width: 1200px;
    margin: 0 auto;
}

.obj_article_summary:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #2c5aa0;
}

/* Article cover image */
.obj_article_summary .cover {
    flex-shrink: 0;
    width: 80px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.obj_article_summary .cover:hover {
    transform: scale(1.05);
}

.obj_article_summary .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.obj_article_summary .cover a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Article title */
.obj_article_summary .title {
    flex: 1;
    margin: 0;
}

.obj_article_summary .title a {
    color: #2c5aa0;
    font-family: 'Quattrocento', serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.obj_article_summary .title a:hover {
    color: #1e3f6b;
    text-decoration: underline;
}

.obj_article_summary .title .subtitle {
    color: #666;
    font-size: 0.9rem;
    font-weight: normal;
    display: block;
    margin-top: 0.25rem;
    font-style: italic;
    line-height: 1.3;
}

/* Article metadata */
.obj_article_summary .meta {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.obj_article_summary .meta .authors {
    color: #2c5aa0;
    font-weight: 500;
    margin-bottom: 0.25rem;
    flex: 1;
    min-width: 200px;
    line-height: 1.3;
}

.obj_article_summary .meta .pages {
    color: #28a745;
    font-weight: 500;
    background: #e8f5e8;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.obj_article_summary .meta .published {
    color: #666;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Article galleys */
.obj_article_summary .galleys {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.obj_article_summary .galleys .galley-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.obj_article_summary .galleys .galley-link:hover {
    background: #1e3f6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.2);
    color: white;
    text-decoration: none;
}

.obj_article_summary .galleys .galley-link.restricted {
    background: #6c757d;
    opacity: 0.8;
}

.obj_article_summary .galleys .galley-link.restricted:hover {
    background: #5a6268;
}

.obj_article_summary .galleys .galley-link.pdf {
    background: #dc3545;
}

.obj_article_summary .galleys .galley-link.pdf:hover {
    background: #c82333;
}

.obj_article_summary .galleys .galley-link .lock-icon {
    margin-right: 0.25rem;
    font-size: 0.8rem;
}

.obj_article_summary .galleys .galley-link .purchase-cost {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Responsive design for article summary */
@media (max-width: 768px) {
    .obj_article_summary {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .obj_article_summary .cover {
        width: 60px;
        height: 80px;
        align-self: flex-start;
    }
    
    .obj_article_summary .title a {
        font-size: 1rem;
    }
    
    .obj_article_summary .meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .obj_article_summary .meta .authors {
        min-width: auto;
        width: 100%;
    }
    
    .obj_article_summary .galleys {
        justify-content: flex-start;
    }
    
    .obj_article_summary .galleys .galley-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .obj_article_summary .cover {
        width: 70px;
        height: 90px;
    }
    
    .obj_article_summary .title a {
        font-size: 1.05rem;
    }
}

/* Large screen enhancements */
@media (min-width: 1200px) {
    .obj_article_summary .cover {
        width: 90px;
        height: 120px;
    }
    
    .obj_article_summary .title a {
        font-size: 1.15rem;
    }
}
