.graph-card {
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: rgba(39, 43, 48, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.graph-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.graph-image {
    height: 150px;
    background-color: rgba(27, 39, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.graph-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.graph-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(27, 39, 53, 0.6);
    color: #fff;
}
.card-body {
    padding: 1rem;
}
.card-title a {
    color: #f1f1f1;
    text-decoration: none;
    font-weight: bold;
}
.card-title a:hover {
    color: #9FB4FF;
}

.card-text {
    font-size: 0.9rem;
    color: #d1d1d1;
    height: 80px; /* Fixed height for 4 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.card-footer {
    background: rgba(33, 37, 41, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.graph-stats {
    color: #aaa;
    font-size: 14px;
}
.tags-container {
    margin-top: 10px;
}
.tag-badge {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
    font-size: 0.75rem;
    background: rgba(73, 80, 87, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: .25em .6em;
    color: #f1f1f1;
    text-decoration: none;
}
.tag-badge:hover {
    background: rgba(97, 132, 240, 0.7);
}
.user-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #9FB4FF;
    font-size: 0.9rem;
}
.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
} 

.like-btn.liked,
.bookmark-btn.bookmarked {
    color: #ff7b9b; /* A bright pink color */
    border-color: #ff7b9b;
}

.like-btn.liked:hover,
.bookmark-btn.bookmarked:hover {
    color: #fff;
    background-color: #ff7b9b;
    border-color: #ff7b9b;
} 