/* =========================================
   PLUGINHUB PRO - RELATED PLUGINS MODULE
   ========================================= */
.ph-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ph-related-item {
    display: flex;
    flex-direction: column;
    background: var(--ph-bg-card);
    border: 1px solid var(--ph-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ph-related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--ph-shadow);
    border-color: var(--ph-accent);
}

.ph-related-thumb {
    width: 100%;
    height: 150px;
    background: var(--ph-bg-body);
    position: relative;
    overflow: hidden;
    display: block;
}

.ph-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ph-related-item:hover .ph-related-thumb img {
    transform: scale(1.05);
}

.ph-related-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.ph-related-name {
    margin: 0;
    line-height: 1.3;
}

.ph-related-name a {
    font-size: 14px;
    font-weight: 600;
    color: var(--ph-text-main);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.ph-related-name a:hover {
    color: var(--ph-accent);
}

.ph-related-ver {
    font-size: 11px;
    color: var(--ph-text-muted);
    font-weight: 400;
    margin-left: 4px;
    background: var(--ph-bg-body);
    padding: 1px 5px;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
}

/* --- Footer Area --- */
.ph-related-footer {
    display: flex !important; /* Flex'i zorla */
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--ph-border-light);
    font-size: 13px;
    line-height: 1; /* Dikey ortalamayı bozan satır yüksekliğini sıfırla */
}

.ph-related-left {
    display: flex;
    align-items: center;
}

.ph-related-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Rating Style */
.ph-related-rating {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--ph-text-main);
}

.ph-related-rating svg,
.ph-related-rating i {
    color: #fbbf24;
    width: 16px;
    height: 16px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mini Stats */
.ph-stat-mini {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ph-text-muted);
}

.ph-stat-mini svg,
.ph-stat-mini i {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Fallback */
@media (max-width: 992px) {
    .ph-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ph-related-grid {
        grid-template-columns: 1fr;
    }
}

/* For Related Plugins Title (Originally margin-top:0; margin-bottom:20px;) */
.ph-related-title {
    margin-top: 0;
    margin-bottom: 20px;
}