/* 
 * Styles for Softinator Recent Scholarly Articles 
 * Custom card matching Journalspress Figma Design
 */

/* Container */
.softinator-article-card {
    position: relative;
    background-color: #1a1a1a;
    color: #ffffff;
    border-radius: 0px !important;
    overflow: hidden;
    height: 480px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Background Image Overlay hidden by default */
.softinator-article-card .softinator-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1;
}

/* On card hover, show image and scale slightly */
.softinator-article-card:hover .softinator-bg-image,
.softinator-active-card .softinator-bg-image {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Inner content */
.softinator-card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Themes text coloration */
.softinator-theme-dark {
    color: #ffffff;
}

.softinator-theme-light {
    color: #1a1a1a;
}

/* Light Theme Defaults */
.softinator-theme-light .softinator-author-name {
    color: #1a1a1a;
}

.softinator-theme-light .softinator-category-holder a {
    color: #333333;
}

.softinator-theme-light .softinator-article-title a {
    color: #1a1a1a;
}

.softinator-theme-light .softinator-arrow-btn {
    background-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

/* Force text to white on hover across all themes because the background image is dark */
.softinator-article-card:hover .softinator-author-name,
.softinator-article-card:hover .softinator-category-holder a,
.softinator-article-card:hover .softinator-article-title a,
.softinator-article-card:hover .softinator-arrow-btn,
.softinator-article-card:hover .softinator-avatar,
.softinator-active-card .softinator-author-name,
.softinator-active-card .softinator-category-holder a,
.softinator-active-card .softinator-article-title a,
.softinator-active-card .softinator-arrow-btn,
.softinator-active-card .softinator-avatar {
    color: #ffffff;
}

.softinator-article-card:hover .softinator-arrow-btn,
.softinator-active-card .softinator-arrow-btn {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Author Row */
.softinator-author-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.softinator-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.softinator-author-name {
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.softinator-author-name b {
    font-weight: 700;
}

/* Category */
.softinator-category-holder {
    margin-bottom: auto;
}

.softinator-category-holder a {
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
    opacity: 0.8;
    transition: color 0.3s ease;
}

/* Title / Excerpt */
.softinator-article-title {
    margin-bottom: 0;
}

.softinator-article-title a {
    font-size: 16px;
    font-family: 'PlayfairDisplay-Bold';
    line-height: 1.6;
    text-decoration: none;
    display: block;
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Arrow Button */
.softinator-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 20px;
    backdrop-filter: blur(5px);
}

/* Stretched link to make the entire box clickable */
.softinator-arrow-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
}