/* ===== DEPENDENCIES PAGE SPECIFIC STYLES ===== */

.dependency-list {
    max-width: 100%;
    margin: auto;
}

.dependency {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.dependency:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--primary-dark);
}

.dependency .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.dependency h2 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.dependency h2::before {
    content: '📦';
    font-size: 1.5rem;
}

.dependency a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.dependency a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Status Badge */
.status {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.status:hover::before {
    left: 100%;
}

.status.latest {
    background: linear-gradient(135deg, var(--color-good), var(--color-good-dark));
    color: white;
    border: none;
}

.status.latest::after {
    content: '✓';
    margin-left: 0.375rem;
    font-weight: bold;
}

.status.outdated {
    background: linear-gradient(135deg, var(--color-ok), var(--color-ok-dark));
    color: white;
    border: none;
}

.status.outdated::after {
    content: '⚠';
    margin-left: 0.375rem;
}

/* Description */
.description {
    margin: var(--spacing-md) 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: normal;
    padding: var(--spacing-md);
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--info-color);
}

/* Details List */
.details {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

.details li {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.details li:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.details li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.details li:not(:has(strong)) {
    color: var(--text-secondary);
}

/* Detail Item Icons */
.details li:first-child::before { content: '🔖'; font-size: 0.875rem; }
.details li:nth-child(2)::before { content: '🏷️'; font-size: 0.875rem; }
.details li:nth-child(3)::before { content: '🏷️'; font-size: 0.875rem; }
.details li:nth-child(4)::before { content: '⭐'; font-size: 0.875rem; }
.details li:nth-child(5)::before { content: '📊'; font-size: 0.875rem; }
.details li:nth-child(6)::before { content: '📜'; font-size: 0.875rem; }

/* Responsive */
@media (max-width: 768px) {
    .dependency {
        padding: var(--spacing-lg);
    }

    .dependency .header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .dependency h2 {
        font-size: 1.125rem;
    }

    .details {
        flex-direction: column;
        align-items: stretch;
    }

    .details li {
        width: 100%;
        justify-content: flex-start;
    }
}

