/* Grid — columns & gap are controlled via Elementor responsive controls */
.sabadoor-pdf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* fallback */
    gap: 24px;
}

/* ── Card ─────────────────────────────────────────────── */
.sabadoor-pdf-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sabadoor-pdf-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ── Row 1: title block + flag ────────────────────────── */
.sabadoor-pdf-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 24px;
}

.sabadoor-pdf-card__title-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sabadoor-pdf-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #1e1e1e;
}

/* Doc type badge — lives under the title */
.sabadoor-pdf-card__type {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 100px;
    line-height: 1.6;
    align-self: flex-start;
}

/* Language flag — top-right */
.sabadoor-pdf-card__flag {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

/* ── Row 2: icon col | button col ─────────────────────── */
.sabadoor-pdf-card__bottom {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}

/* Column 1: PDF icon + filesize */
.sabadoor-pdf-card__icon-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sabadoor-pdf-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #DC2626;
    line-height: 1;
}

.sabadoor-pdf-card__icon i {
    font-size: 40px;
}

.sabadoor-pdf-card__icon svg {
    display: block;
    width: 40px;
    height: 40px;
}

/* File size — always shown beneath icon */
.sabadoor-pdf-card__size {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1;
    white-space: nowrap;
}

/* Column 2: action buttons, stacked horizontaly */
.sabadoor-pdf-card__btn-col {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
}

/* ── Buttons (icon only) ──────────────────────────────── */
.sabadoor-pdf-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #2563eb;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    line-height: 1;
    font-family: inherit;
}

button.sabadoor-pdf-card__btn {
    background: transparent;
}

.sabadoor-pdf-card__btn:hover {
    background: #2563eb;
    color: #fff;
}

.sabadoor-pdf-card__btn i {
    display: block;
    font-size: 16px;
    flex-shrink: 0;
}

.sabadoor-pdf-card__btn svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Copy link success state */
.sabadoor-pdf-card__btn.copied {
    background: #059669;
    border-color: #059669;
    color: #fff;
}
