/**
 * AI Content Auto Post Pro - Frontend Styles
 */

/* Related Posts Styles */
.aicp-related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.aicp-related-posts h3 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

/* Cards Style */
.aicp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.aicp-related-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.aicp-related-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.aicp-related-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f3f4f6;
}

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

.aicp-related-card:hover .aicp-related-thumbnail img {
    transform: scale(1.05);
}

.aicp-related-content {
    padding: 15px;
}

.aicp-related-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.aicp-related-content h4 a {
    color: #1f2937;
    text-decoration: none;
}

.aicp-related-content h4 a:hover {
    color: #6366f1;
}

.aicp-related-content p {
    margin: 0 0 10px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.aicp-related-date {
    font-size: 12px;
    color: #9ca3af;
}

/* List Style */
.aicp-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aicp-related-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.aicp-related-list li:last-child {
    border-bottom: none;
}

.aicp-related-list a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
}

.aicp-related-list a:hover {
    color: #6366f1;
}

.aicp-related-list .aicp-related-date {
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .aicp-related-grid {
        grid-template-columns: 1fr;
    }
    
    .aicp-related-posts h3 {
        font-size: 20px;
    }
}