/*
 * Gemini Custom Posts Grid Styles
 * Version: 1.2.0
 * Styles the output of [hd_recent_posts] and [hd_related_posts] shortcodes.
 */

*, *::before, *::after {
    box-sizing: border-box;
}
 
.gemini-recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    font-family: sans-serif; /* Consider using a specific font like Inter */
}

.gemini-post-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* This removes the underline */
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gemini-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.gemini-card-image {
    aspect-ratio: 16 / 10;
    width: 100%;
    background-color: #e5e7eb;
}

.gemini-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gemini-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #6b7280;
}

.gemini-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gemini-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 500;
}

.gemini-card-title {
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.6;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.gemini-post-card:hover .gemini-card-title {
    color: #d1225b;
}

.gemini-meta-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gemini-author-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

.gemini-pink-tag {
    background-color: #d1225b;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
}
