/**
 * PCM Reference Builder Styles
 * استایل‌های رفرنس و منابع
 */

/* استایل Citation */
.pcm-reference-citation {
    display: inline-block;
    background: #2271b1;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    margin: 0 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    vertical-align: super;
    line-height: 1;
}

.pcm-reference-citation:hover {
    background: #135e96;
    transform: scale(1.1);
}

/* بخش لیست رفرنس‌ها */
.pcm-references-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 3px solid #e0e0e0;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
}

.pcm-references-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
}

.pcm-references-list {
    list-style: none;
    counter-reset: reference-counter;
    padding: 0;
}

.pcm-reference-item {
    position: relative;
    padding: 15px 0 15px 40px;
    margin-bottom: 15px;
    counter-increment: reference-counter;
    line-height: 1.7;
    border-bottom: 1px solid #e0e0e0;
}

.pcm-reference-item:last-child {
    border-bottom: none;
}

.pcm-reference-item::before {
    content: '[' counter(reference-counter) ']';
    position: absolute;
    left: 0;
    top: 15px;
    font-weight: 700;
    color: #2271b1;
    background: white;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pcm-ref-author {
    font-weight: 600;
    color: #333;
}

.pcm-ref-title {
    font-style: italic;
    color: #555;
}

.pcm-ref-link {
    color: #2271b1;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s ease;
}

.pcm-ref-link:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .pcm-references-section {
        padding: 20px 15px;
    }
    
    .pcm-references-title {
        font-size: 1.5em;
    }
    
    .pcm-reference-item {
        padding-left: 35px;
        font-size: 0.95em;
    }
}