/* لیست کارت فراخوان — الهام از کارت‌های رقابتی (شبکه، فوتر دو ستونه) */

.calls-page {
    padding-bottom: 2rem;
}

.calls-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .calls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .calls-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.call-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-width: 3px 1px 1px;
    border-style: solid;
    border-color: var(--call-card-accent, #2563eb) #e2e8f0 #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.call-card:hover {
    border-right-color: #cbd5e1;
    border-bottom-color: #cbd5e1;
    border-left-color: #cbd5e1;
    border-top-color: var(--call-card-accent, #2563eb);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.call-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
}

.call-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-card__img--placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
}

.call-card__org-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid #fff;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.call-card__org-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-card__body {
    flex: 1;
    padding: 1rem 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.call-card__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.call-card__menu {
    position: relative;
    flex-shrink: 0;
}

.call-card__menu summary {
    list-style: none;
    cursor: pointer;
    color: #64748b;
    padding: 0.25rem;
    border-radius: 0.375rem;
}

.call-card__menu summary::-webkit-details-marker {
    display: none;
}

.call-card__menu summary:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.call-card__menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    min-width: 11rem;
    padding: 0.35rem 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    z-index: 20;
}

.call-card__menu-item {
    display: block;
    width: 100%;
    text-align: right;
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
    color: #334155;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.call-card__menu-item:hover:not(:disabled) {
    background: #f8fafc;
}

.call-card__menu-item--muted {
    opacity: 0.5;
    cursor: not-allowed;
}

.call-card__title {
    margin: 0.25rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}

.call-card__title a {
    color: inherit;
    text-decoration: none;
}

.call-card__title a:hover {
    color: #2563eb;
}

.call-card__snippet {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.call-card__teams {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.call-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding: 0.85rem 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8125rem;
}

.call-card__prize {
    font-weight: 700;
    color: #0f172a;
}

.call-card__deadline {
    color: #64748b;
    text-align: left;
    white-space: nowrap;
}

/* صفحه‌بندی لاراول — هماهنگ با کارت‌ها */
.calls-page nav[role="navigation"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.calls-page nav[role="navigation"] a,
.calls-page nav[role="navigation"] span {
    display: inline-flex;
    min-width: 2.25rem;
    justify-content: center;
    padding: 0.4rem 0.65rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    text-decoration: none;
}

.calls-page nav[role="navigation"] a:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.calls-page nav[role="navigation"] span[aria-current="page"] {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.calls-page nav[role="navigation"] span.text-gray-700 {
    border-color: transparent;
    background: transparent;
}
