/* Repository Cards Premium Design */
.repo-card {
    background-color: rgba(18, 18, 18, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.repo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #b388eb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.repo-card:hover {
    background-color: #1a1a1a;
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.4);
    border-color: #444;
}

.repo-card:hover::before {
    opacity: 1;
}

/* Header & Icon */
.repo-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.repo-icon {
    flex-shrink: 0;
}

.repo-icon img {
    border-radius: 10px;
    object-fit: cover;
}

.icon-placeholder {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #333, #222);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    border: 1px solid var(--border-color);
}

/* Info & Title */
.repo-info {
    flex-grow: 1;
    min-width: 0;
}

.repo-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.repo-info h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.repo-info h3 a {
    color: var(--txt);
    text-decoration: none;
    transition: color 0.2s;
}

.repo-info h3 a:hover {
    color: var(--accent);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 999px;
    padding: 2px 8px 2px 6px;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    user-select: none;
}

.badge.verified svg {
    display: block;
}

.installed {
    font-size: 0.8rem;
    color: #888;
    display: block;
    line-height: 1.2;
}

/* Body & Description */
.repo-body {
    flex-grow: 1;
}

.repo-description {
    color: #aaa;
    font-size: 0.9rem;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Footer & Actions */
.repo-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.repo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.icon-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

/* Buttons */
.repo-actions button {
    margin: 0;
    height: 36px;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    border: none;
    flex-grow: 1;
    max-width: 120px;
}

.btn-primary:hover {
    background-color: #9d4edd;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.btn-danger {
    background-color: rgba(220, 38, 38, 0.15);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.3);
    flex-grow: 1;
    max-width: 120px;
}

.btn-danger:hover {
    background-color: rgba(220, 38, 38, 0.25);
    border-color: #f87171;
}

.btn-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    flex-grow: 1;
    max-width: 120px;
}

.btn-success:hover {
    background-color: rgba(34, 197, 94, 0.25);
    border-color: #4ade80;
}

.btn-icon {
    background: transparent;
    border: 1px solid transparent;
    width: 36px;
    padding: 0;
    border-radius: 8px;
}

.btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--txt);
    border-color: #333;
    transform: translateY(-2px);
}

.has-update {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent) inset;
}
